Skip to content

Instantly share code, notes, and snippets.

View CrashenX's full-sized avatar
🍪
Ohm nom nom

Jesse J. Cook CrashenX

🍪
Ohm nom nom
  • Greater St. Louis
View GitHub Profile
@CrashenX
CrashenX / contributor-list.sh
Last active May 1, 2019 23:42
Get Git Contributor List
ORG='libvirt' REPO='libvirt'; for i in {1..5}; do curl "https://api.github.com/repos/$ORG/$REPO/contributors?per_page=100&page=$i" 2>/dev/null | jq -r '.[] | "\(.contributions)\t\(.html_url)"'; done
@CrashenX
CrashenX / kube_gitlab.md
Last active October 14, 2021 17:23 — forked from kacieh80/kube_gitlab.md
Install Kubernetes on Digital Ocean and run Gitlab

Installing Gitlab with DigitalOcean and Kubernetes

Prerequisites

Create a Kubernetes Cluster

  • In your DigitalOcean account create an empty project and go to Manage > Kubernetes
// Copyright (c) 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Get the current URL.
*
* @param {function(string)} callback - called when the URL of the current tab
* is found.
*/
@CrashenX
CrashenX / team-names.txt
Last active September 29, 2015 22:33
Team Names
Unikitty
French Toast Mafia
Wacky Waving Inflatable Flailing Arm Tube People
Fire Breathing Rubber Duckies
Mighty Morphin Flower Arrangers
e-LEMON-ators
Kung Fu Pandas
Jumping Amazing Super Optimistic Noodle Squad
Soup-A-Stars
Space Monkey Mafia
@CrashenX
CrashenX / gist:01de59ae142cefef3138
Last active August 29, 2015 14:23
Normalize Over Positive and Negative Weights
from math import e, exp
def print_8_cent_0(l0, l1):
print(l0)
print(l1)
print(sum(l1))
print(l1[3]/l1[0])
print(l1[7]/l1[4])
print(l1[3]/l1[1])
@CrashenX
CrashenX / android-root.md
Last active June 25, 2023 06:31
Android Live Root Image

Root Access to Android Device Without "Rooting" (The Hard Way)

Intro

N.B., This is for educational purposes only. If you want an easier method, compile an engineering build of the recovery.img and boot it: https://source.android.com/source/building.html

N.B., This is a work in progress. I'm updating for Nexus 5X and Android 6.0.0. Booting the modified recovery.img does not currently start adbd. I've created

@CrashenX
CrashenX / gist:8fc6d42ffc154ae0682b
Last active August 29, 2015 14:08
OpenStack Image Objects Prescribed Architecture

Architecture

High-Level Architecture

 +------------+
 |            |
 |    Nova  +----------------------+
 |          | |                    |

+------------+ Glance Middleware +----+

@CrashenX
CrashenX / debian-on-cubox-i.markdown
Last active February 23, 2021 18:47
Installing Debian on the CuBox-i
@CrashenX
CrashenX / vim git head
Last active August 29, 2015 14:02
Opens all files modified since specified revision of a git repo in vim and Gdiff them
#!/bin/bash
# You'll need to get vim-fugitive:
# https://github.com/tpope/vim-fugitive
if [ $# -eq 0 ]
then
since='HEAD^'
show_diff=false
else
@CrashenX
CrashenX / libvirt-mininet.xml
Last active January 4, 2016 01:59
Libvirt Domain XML for Mininet Guest ** N.B., I converted the vmdk to a qcow2 using virt-convert ** N.B., Make sure to specify the actual path to your qcow2 disk image
<domain type='kvm'>
<name>mininet</name>
<memory unit='KiB'>1048576</memory>
<currentMemory unit='KiB'>1048576</currentMemory>
<vcpu placement='static'>1</vcpu>
<os>
<type arch='x86_64' machine='pc'>hvm</type>
</os>
<features>
<acpi/>