Skip to content

Instantly share code, notes, and snippets.

View c0psrul3's full-sized avatar

Mike c0psrul3

View GitHub Profile
@c0psrul3
c0psrul3 / TrueOS_EFI_boot_manual_setup.txt.md
Last active February 6, 2017 16:34
TrueOS EFI boot re-configure, from legacy PCBSD update using GRUB.

These instructions were originally written for use of GELI with EFI on TrueOS. They can also be applied to "upgraded" installs, which are coming from PCBSD.. see: [trueos/trueos-core#114]

This may help you manually setup EFI booting

...as TrueOS does not support GRUB and upgrades using pc-updatemanager will not affect available boot environments in, using a GRUB boot loader.


@c0psrul3
c0psrul3 / graphite-api.wsgi
Last active August 21, 2017 17:53
Graphite-api config and uWSGI start (for use with Grafana)
[uwsgi]
processes = 2
http-socket = localhost:8001
uid = 165
gid = 165
module = graphite_api.app:app
daemonize2 = /var/log/uwsgi-graphiteapi.log
env = GRAPHITE_API_CONFIG=/usr/local/etc/graphite-api.yaml
@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)
@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 / 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_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 / 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 / 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 / .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 / Corne.crkbd_c0psrul3.default.json
Last active February 3, 2025 05:46
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"
},
[
{