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
| configuration { | |
| modi: "window,run,ssh,drun"; | |
| show-icons: true; | |
| font: "Inconsolata 10, Fira Code 10"; | |
| icon-theme: "Papirus-Dark"; | |
| } | |
| // theme | |
| * { |
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 | |
| # | |
| # Parses DHCP options from openvpn to update resolv.conf | |
| # To use set as 'up' and 'down' script in your openvpn *.conf: | |
| # up /etc/openvpn/update-resolv-conf | |
| # down /etc/openvpn/update-resolv-conf | |
| # | |
| # Used snippets of resolvconf script by Thomas Hood <[email protected]> | |
| # and Chris Hanson | |
| # Licensed under the GNU GPL. See /usr/share/common-licenses/GPL. |
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
| call plug#begin('~/.config/nvim/.plugged') | |
| " operators | |
| Plug 'tpope/vim-surround' | |
| Plug 'christoomey/vim-sort-motion' | |
| " textobj | |
| Plug 'wellle/targets.vim' | |
| " workflow |
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
| # ~/.bashrc | |
| eval "$(starship init bash)" |
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
| /** | |
| * Copyright (c) 2015-present, Facebook, Inc. | |
| * | |
| * This source code is licensed under the MIT license found in the | |
| * LICENSE file in the root directory of this source tree. | |
| */ | |
| package com.facebook.react.uimanager; | |
| import static android.view.View.MeasureSpec.AT_MOST; | |
| import static android.view.View.MeasureSpec.EXACTLY; |
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
| #!/bin/bash | |
| SLACK_HOOK_URL="https://hooks.slack.com/services/SOME/SPECIAL/TOKEN" | |
| SLACK_CHANNEL="#production-logs" | |
| tail -n0 -F "$1" | while read LINE; do | |
| (echo "$LINE") && curl -X POST --silent --data-urlencode \ | |
| "payload={\"channel\": \"$SLACK_CHANNEL\", \"mrkdwn\": true, \"text\": \"$(echo $LINE | sed "s/\"/'/g") | File: ${1} | Server: $(hostname)\"}" $SLACK_HOOK_URL; | |
| 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
| <?php | |
| /** | |
| composer.json | |
| { | |
| "name": "predis-copy-keys", | |
| "require": { | |
| "predis/predis": "^1.1" | |
| }, | |
| "authors": [ |
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
| #!/bin/bash | |
| # git-mv-with-history -- move/rename file or folder, with history. | |
| # https://git.wiki.kernel.org/index.php/GitFaq#Why_does_Git_not_.22track.22_renames.3F | |
| function usage() { | |
| echo "How to use it: `basename $0` [-d/--dry-run] [-v/--verbose] <srcname>=<destname> <...> <...>" | |
| [ -z "$1" ] || echo $1 | |
| exit 1 | |
| } |
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
| #!/bin/bash | |
| # es-maintenance-script.sh | |
| # Notes: | |
| # - https://www.elastic.co/guide/en/elasticsearch/guide/current/retiring-data.html | |
| # - http://tech.superhappykittymeow.com/?p=296 | |
| # | |
| # Author: Gabriel C <[email protected]> | |
| # Display instructions | |
| help() |
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
| #!/bin/bash | |
| while [[ $# > 1 ]] | |
| do | |
| key="$1" | |
| case $key in | |
| -i|--initial) | |
| INITIAL_COMMIT="$2" | |
| shift # past argument |
NewerOlder