- courtesy of simonwjackson
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
# | |
# File: all_public_repos_to_internal.rake | |
# Author: https://gist.github.com/c0psrul3 | |
# Original Author: https://gist.github.com/ptierno | |
# Original Gist: https://gist.github.com/ptierno/ef57a83afac4442e2a13 | |
# | |
# | |
# Gitlab stuff | |
# ------------ |
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
[ | |
{ | |
"name": "Corne, default layer", | |
"author": "https://github.com/c0psrul3", | |
"plate": false, | |
"keyboard-layout-editor": "http://www.keyboard-layout-editor.com/#/gists/adfa7c3cd8f0c6d3a7b9155c6eab1748#file-corne-crkbd_c0psrul3-default-json", | |
"qmk-config": "https://config.qmk.fm/#/crkbd/rev1/LAYOUT" | |
}, | |
[ | |
{ |
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
#``````````````````````````````````````````````````````````````````````````````` | |
# LS_COLORS | |
#=============================================================================== | |
# Author: Mike Nichols <[email protected]> | |
# URL: {@link https://gist.github.com/c0psrul3/70e31aaf9f8b12c7b683d9b2781f1dae} | |
# GPG: 7EF5C63700A0F93C {@link https://keybase.io/c0psrul3/pgp_keys.asc} | |
#------------------------------------------------------------------------------- | |
# Original Source: | |
# @url: {@link https://github.com/trapd00r/LS_COLORS} | |
# @author: Magnus Woldrich <[email protected]>, Ryan Delaney <[email protected]> |
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
# The command finds the most recent tag that is reachable from a commit. | |
# If the tag points to the commit, then only the tag is shown. | |
# Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object | |
# and the abbreviated object name of the most recent commit. | |
git describe | |
# With --abbrev set to 0, the command can be used to find the closest tagname without any suffix: | |
git describe --abbrev=0 | |
# other examples |
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
" /* vim: set filetype=vim : */ | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" When started as "evim", evim.vim will already have done these settings. | |
if v:progname =~? "evim" | |
finish | |
else | |
" Vim >= 5.0 support syntax highlighting. This line enables it by default. | |
syntax on |
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/python | |
import ansible.inventory | |
import ansible.playbook | |
import ansible.runner | |
from ansible import utils | |
from ansible import callbacks | |
def run_playbook(**kwargs): |
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 python | |
# | |
# MongoDB-backed dynamic inventory script for Ansible | |
# http://docs.ansible.com/intro_dynamic_inventory.html | |
import os | |
from argparse import ArgumentParser | |
import pymongo |
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
ansible_ssh_host | |
The name of the host to connect to, if different from the alias you wish to give to it. | |
ansible_ssh_port | |
The ssh port number, if not 22 | |
ansible_ssh_user | |
The default ssh user name to use. | |
ansible_ssh_pass | |
The ssh password to use (this is insecure, we strongly recommend using --ask-pass or SSH keys) | |
ansible_sudo_pass | |
The sudo password to use (this is insecure, we strongly recommend using --ask-sudo-pass) |
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
#!/bin/bash | |
# copied from examples provided by Linuxtopia | |
# [[http://www.linuxtopia.org/online_books/advanced_bash_scripting_guide/textproc.html#ROT13]] | |
# rot13.sh: Classic rot13 algorithm, | |
# encryption that might fool a 3-year old. | |
# Usage: ./rot13.sh filename | |
# or ./rot13.sh <filename | |
# or ./rot13.sh and supply keyboard input (stdin) |
NewerOlder