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
| # one-liner for adding a retry function in bash | |
| # usage: | |
| # retry <number of tries> <delay between each try> <command> | |
| retry () { tries=0 ; max_tries="$1" ; delay="$2" ; shift 2 ; while [ "$tries" -lt "$max_tries" ] && ! $* ; do sleep "$delay" ; >&2 echo "Retrying..." ; ((tries++)) ; done } |
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
| LC_CTYPE="pt_BR.UTF-8" |
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
| #!/usr/bin/env bash | |
| input_file=$0 | |
| output_file=$1 | |
| x264_params="cabac=1:ref=5:analyse=0x133:me=umh:subme=9:chroma-me=1:deadzone-inter=21:deadzone-intra=11:b-adapt=2:rc-lookahead=60:vbv-maxrate=10000:vbv-bufsize=10000:qpmax=69:bframes=5:b-adapt=2:direct=auto:crf-max=51:weightp=2:merange=24:chroma-qp-offset=-1:sync-lookahead=2:psy-rd=1.00,0.15:trellis=2:min-keyint=23:partitions=all" | |
| ffmpeg -y -vsync 0 -i "$input_file" -copy_unknown -map_metadata 0 -map 0 -codec copy -c:v libx264 -crf 27 \ | |
| -x264-params "$x264_params" -c:a aac -ar 44100 -b:a 128k "$output_file" |
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
| variant: fcos | |
| version: 1.5.0 | |
| passwd: | |
| users: | |
| - name: faccenda | |
| groups: | |
| - sudo | |
| - wheel | |
| - docker | |
| ssh_authorized_keys: |
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
| { | |
| "\UF729" = "moveToBeginningOfLine:"; | |
| "\UF72B" = "moveToEndOfLine:"; | |
| "$\UF729" = moveToBeginningOfLineAndModifySelection:; // shift-home | |
| "$\UF72B" = moveToEndOfLineAndModifySelection:; // shift-end | |
| "^\UF729" = moveToBeginningOfDocument:; // ctrl-home | |
| "^\UF72B" = moveToEndOfDocument:; // ctrl-end | |
| "^$\UF729" = moveToBeginningOfDocumentAndModifySelection:; // ctrl-shift-home | |
| "^$\UF72B" = moveToEndOfDocumentAndModifySelection:; // ctrl-shift-end | |
| } |
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
| # make backward-kill-word (ctrl+w or ctrl+backspace) behave the same as in bash | |
| autoload -U select-word-style | |
| select-word-style whitespace |
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
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDE7jliYUTETUohLdPO083k2CVi7gNqRp86ehyOxuSvG7ZlDFjAt5sgsjJDKanKQRK6wqvGZPv9fPxhfmKOX3sQREGQDZYKQKbWcrzyGg59D72IX4o2oYn0c7s6QCTGSE2jkcCseYcO7z4kQet3n4EGMpdWrB5UO5fxS4/YWr/N8OacKB3nY8CDTDejO2R206ehnW1H6Z88LVnOIprAOPj+3EoNY67n2yiZa6+0BgxN1iHLi5vBC7Ixbe1jqjheg/Jiaiftq5nPXFEXCdW7603oDffHJoJ4v6U8bI6n4QT7CUpot71BFSaapAkDW27IoEfvR/h7eDusGYfHhuvpqGQx |
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
| hs.hotkey.bind({}, "§", function() hs.eventtap.keyStroke({}, "`") end ) | |
| hs.hotkey.bind({ "cmd" }, "§", function() hs.eventtap.keyStroke({ "cmd" }, "`") end ) | |
| hs.hotkey.bind({ "shift" }, "§", function() hs.eventtap.keyStroke({ "shift" }, "`") end ) | |
| hs.hotkey.bind({ "cmd", "shift" }, "§", function() hs.eventtap.keyStroke({ "cmd", "shift" }, "`") end ) |
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
| #!/usr/bin/env python3 | |
| import os | |
| import argparse | |
| from github import Github | |
| parser = argparse.ArgumentParser(description='Give access to a Team on all repositories from a Organization') | |
| parser.add_argument('--team', help='Team name', required=True) | |
| parser.add_argument('--org', help='Organization name', required=True) |
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
| [MASTER] | |
| init-hook="if os.environ.get('VIRTUAL_ENV'): sys.path.append(os.path.join(os.environ['VIRTUAL_ENV'], 'lib', 'site-packages'))" | |
| load-plugins=pylint_quotes | |
| [MESSAGES CONTROL] | |
| disable=missing-docstring, missing-class-docstring, missing-module-docstring, too-few-public-methods | |
| [REPORTS] | |
| format=parseable |
NewerOlder