Skip to content

Instantly share code, notes, and snippets.

View c0psrul3's full-sized avatar

Mike c0psrul3

View GitHub Profile
@c0psrul3
c0psrul3 / all_public_repos_to_internal.rake
Last active July 6, 2020 22:07 — forked from ptierno/all_to_private.rake
Gitlab rake task to set all project's visibility level to private (0)
#
# 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
# ------------
@c0psrul3
c0psrul3 / README.md
Last active January 23, 2020 13:09
Corne crkbd_c0psrul3 (config.qmk.fm)
@c0psrul3
c0psrul3 / Corne.crkbd_c0psrul3.default.json
Last active March 11, 2024 07:49
Corne keyboard layout
[
{
"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"
},
[
{
@c0psrul3
c0psrul3 / .dir_colors
Last active February 10, 2020 13:12
dir_colors
#```````````````````````````````````````````````````````````````````````````````
# 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]>
@c0psrul3
c0psrul3 / get-latest-tag-on-git.sh
Created April 24, 2019 11:15 — forked from rponte/get-latest-tag-on-git.sh
Getting latest tag on git repository
# 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
@c0psrul3
c0psrul3 / vimrc.standalone
Last active March 12, 2018 11:40
vimrc with dein
" /* 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
@c0psrul3
c0psrul3 / ansible_lambda.py
Created August 22, 2017 13:37 — forked from jacoelho/ansible_lambda.py
ansible lambda
#!/usr/bin/python
import ansible.inventory
import ansible.playbook
import ansible.runner
from ansible import utils
from ansible import callbacks
def run_playbook(**kwargs):
@c0psrul3
c0psrul3 / mongo-ansible.py
Created May 23, 2017 11:05 — forked from DavidWittman/mongo-ansible.py
MongoDB-backed dynamic inventory script for Ansible
#!/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
@c0psrul3
c0psrul3 / ansible.inventory_params
Created May 23, 2017 11:01 — forked from sw00/ansible.inventory_params
List of ansible inventory behaviour parameters.
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)
@c0psrul3
c0psrul3 / rot13.sh
Last active April 19, 2017 13:51
lol.... ROT-13
#!/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)