[req]
default_bits = 2048
distinguished_name = dn
prompt = no
default_md = sha1
[dn]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "configurations": [ | |
| { | |
| "type": "pwa-node", | |
| "name": "Specs", | |
| "request": "launch", | |
| "runtimeExecutable": "pnpm", | |
| "runtimeArgs": ["run", "specs"], | |
| "cwd": "${workspaceFolder}", | |
| "console": "integratedTerminal", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE TEMPORARY TABLE a (b int) ON COMMIT DROP; | |
| SELECT pg_current_xact_id_if_assigned() IS NOT NULL AS is_transaction; | |
| -- source: https://dba.stackexchange.com/a/311714 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker volume create --name <new_volume> | |
| docker run --rm -it -v <old_volume>:/from -v <new_volume>:/to alpine ash -c "cd /from ; cp -av . /to" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BEGIN; | |
| SET LOCAL request.jwt.claim.sub = '<uid>'; | |
| SET LOCAL ROLE authenticated; | |
| SELECT * FROM photos LIMIT 10; | |
| COMMIT; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from config.celery import celery_app | |
| celery_app.control.purge() | |
| inspect = celery_app.control.inspect() | |
| scheduled_tasks = inspect.scheduled() | |
| if scheduled_tasks: | |
| for worker, tasks in scheduled_tasks.items(): | |
| for task in tasks: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| file_path = '/Users/<username>/Library/Application Support/Arc/StorableSidebar.json' | |
| lists = {} | |
| tabs = [] | |
| with open(file_path, 'r') as f: | |
| parsed_json = json.load(f) | |
| items = parsed_json['sidebar']['containers'][1]['items'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local colors = require("kanagawa.colors").setup() | |
| local theme_colors = colors.theme | |
| vim.api.nvim_set_hl(0, 'HarpoonActive', { ctermbg = 0, fg = theme_colors.syn.identifier, bg = theme_colors.ui.bg }) | |
| vim.api.nvim_set_hl(0, 'HarpoonNumberActive', { ctermbg = 0, fg = theme_colors.syn.number, bg = theme_colors.ui.bg }) | |
| vim.api.nvim_set_hl(0, 'HarpoonInactive', { ctermbg = 0, fg = theme_colors.syn.fg, bg = theme_colors.ui.bg_p1 }) | |
| vim.api.nvim_set_hl(0, 'HarpoonNumberInactive', { ctermbg = 0, fg = theme_colors.syn.number, bg = theme_colors.ui.bg_p1 }) | |
| local function harpoon_files() | |
| local harpoon = require("harpoon") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var PluginParameters = [ | |
| { | |
| name: "Key", | |
| type: "menu", | |
| valueStrings: ["A", "Bb", "B", "C", "Db", "D", "Eb", "E", "F", "Gb", "G", "Ab"], | |
| minValue: 0, | |
| maxValue: 11, | |
| defaultValue: 0, | |
| numberOfSteps: 11 | |
| }, { |
NewerOlder