Replace oauth2-proxy.example.com
with your value and paste into NPM -> Edit Proxy Host -> Advanced tab
This file contains 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
#!/usr/bin/env python3 | |
""" | |
Rekey individually encrypted Ansible Vault variables in-place. | |
Accepts literal passwords or password files and list of file paths. | |
Usage: python ansible_vault_rekey.py .old_password_file .new_password_file $(find . -type f -name "*.yml") one.yaml two.vault.yml | |
For each input file: | |
- Read the input file and extract sequences that match the vault regex |
This file contains 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
#!/usr/bin/env python3 | |
"""Parse json and clone repos in specific directory.""" | |
import json | |
import logging | |
import subprocess | |
from multiprocessing.pool import ThreadPool | |
from pathlib import Path | |
logger = logging.getLogger(__name__) |
This file contains 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
""" | |
1. Parse markdown file and extract urls to github.com repos | |
2. Clone repos in specific directory | |
""" | |
import logging | |
import re | |
import subprocess | |
from pathlib import Path |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am spirkaa on github. | |
* I am devmemru (https://keybase.io/devmemru) on keybase. | |
* I have a public key ASDOfu7_rJ7XFeJ_sVNiTOqoO0SETmTKAVTTWp10sCAO5Ao | |
To claim this, I am signing this object: |
This file contains 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
:: piv@devmem.ru, 2021. Exclusive for DONM IT Telegram Chat. | |
:: !!! Сохранять в кодировке OEM 866 (она же CP 866) !!! | |
:: Запускать от имени админа, если не меняете путь сохранения локального файла | |
@echo off | |
:: DO NOT MODIFY THIS SECTION | |
for /f "tokens=2 delims==" %%a in ('wmic OS Get localdatetime /value') do set "dt=%%a" | |
set "YY=%dt:~2,2%" & set "YYYY=%dt:~0,4%" & set "MM=%dt:~4,2%" & set "DD=%dt:~6,2%" |
This file contains 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 functools | |
import operator | |
import django_filters | |
from django.contrib.postgres.search import SearchQuery, SearchRank, SearchVectorField | |
from django.db.models import F, Q | |
from . import models | |
class SearchVectorFilter(django_filters.CharFilter): |
This file contains 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
#!/usr/bin/sh | |
. $(dirname $0)/functions.sh | |
settitle | |
if [ $ssh_auth == 3 ]; then | |
export CURR_SSH_COMMAND="ssh -oStrictHostKeyChecking=no $ssh_proxycommand $username@$server" | |
else | |
export CURR_SSH_COMMAND="sshpass -p $password ssh -oStrictHostKeyChecking=no $ssh_proxycommand $username@$server" | |
fi |
This file contains 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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
This file contains 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
// range sliders init | |
setSlider() | |
function setSlider() { | |
var sldr = ['price', 'ru_stock', 's_config', 'capacity', 'weight', 'discharge'] | |
$.each(sldr, function(k, v) { | |
$("#" + v).slider({}); | |
console.log("#" + v) | |
}); | |
} |
NewerOlder