Skip to content

Instantly share code, notes, and snippets.

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
Get Git Contributor List
View contributor-list.sh
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 May 22, 2019 — forked from kacieh80/kube_gitlab.md
Install Kubernetes on Digital Ocean and run Gitlab
View kube_gitlab.md

Installing Gitlab with DigitalOcean and Kubernetes

Prerequisites

Create a Kubernetes Cluster

  • In your DigitalOcean account create an empty project and go to Manage > Kubernetes
View popup.js
// 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.
*/
View team-names.txt
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 Aug 29, 2015
Normalize Over Positive and Negative Weights
View gist:01de59ae142cefef3138
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 Dec 8, 2020
Android Live Root Image
View android-root.md

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 Aug 29, 2015
OpenStack Image Objects Prescribed Architecture
View gist:8fc6d42ffc154ae0682b

Architecture

High-Level Architecture

 +------------+
 |            |
 |    Nova  +----------------------+
 |          | |                    |
 +------------+ Glance Middleware  +----+
@CrashenX
CrashenX / debian-on-cubox-i.markdown
Last active Feb 23, 2021
Installing Debian on the CuBox-i
View debian-on-cubox-i.markdown
@CrashenX
CrashenX / vim git head
Last active Aug 29, 2015
Opens all files modified since specified revision of a git repo in vim and Gdiff them
View vim git head
#!/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 Jan 4, 2016
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
View libvirt-mininet.xml
<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/>