Skip to content

Instantly share code, notes, and snippets.

View indygwyn's full-sized avatar

Thomas W. Holt Jr. indygwyn

  • Indianapolis, IN US
View GitHub Profile
@indygwyn
indygwyn / asshole.js
Created May 24, 2011 12:17 — forked from Kilian/annoying.js
How to be an asshole
/**
* Annoying.js - How to be an asshole to your users
*
* DO NOT EVER, EVER USE THIS.
*
* Copyright (c) 2011 Kilian Valkhof (kilianvalkhof.com)
* Visit https://gist.github.com/767982 for more information and changelogs.
* Licensed under the MIT license. http://www.opensource.org/licenses/mit-license.php
*
*/
Verifying myself: My Bitcoin username is +indygwyn. https://onename.io/indygwyn

Keybase proof

I hereby claim:

  • I am indygwyn on github.
  • I am indygwyn (https://keybase.io/indygwyn) on keybase.
  • I have a public key whose fingerprint is 7939 4FA7 7205 2F80 9F1D BD0E 36C4 A198 7DBA D8A4

To claim this, I am signing this object:

@indygwyn
indygwyn / 0_reuse_code.js
Created June 8, 2016 04:15
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
Verifying that +indygwyn is my blockchain ID. https://onename.com/indygwyn
@indygwyn
indygwyn / git-pushing-multiple.rst
Created December 28, 2018 16:46 — forked from rvl/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

@indygwyn
indygwyn / pulp-admin.sh
Created January 28, 2019 19:24 — forked from tchellomello/pulp-admin.sh
pulp-admin.sh
#!/bin/bash
STATE=""
for TASK in `pulp-admin tasks list | egrep '^Task Id:|^State:' | sed -e 's,^Task Id: ,,' -e 's,^State: ,,'`; do
if [ "$STATE" = "" ]; then
STATE=$TASK
else
if [ $STATE != Successful ] && [ $STATE != Cancelled ] && [ $STATE != Failed ]; then
pulp-admin tasks details --task-id=$TASK
pulp-admin tasks cancel --task-id=$TASK
fi
#!/bin/bash
#Heavily inspired by clivewalkden/centos-7-package.sh
# ( https://gist.github.com/clivewalkden/b4df0074fc3a84f5bc0a39dc4b344c57 )
#However, this one was tested... 2017-JAN-09
vagrant init centos/7
vagrant up
vagrant ssh -c "sudo yum -y update"
vagrant ssh -c "sudo yum -y install wget nano kernel-devel gcc"
@indygwyn
indygwyn / fixvbox608onmacos10145.md
Created May 20, 2019 13:59
Fix Virtualbox 6.0.8 on macOS 10.14.5

You have to boot into recovery mode, open a terminal and do the following to add the kernel extension to the whitelist

spctl kext-consent add VB5E2TV963

"Beginning in macOS 10.14.5, all new or updated kernel extensions and all software from developers new to distributing with Developer ID must be notarized in order to run. In a future version of macOS, notarization will be required by default for all software."

@indygwyn
indygwyn / dedupkeeporder.sh
Last active May 20, 2019 14:10
remove duplicate lines preserve file order #bash #awk
awk '!visited[$0]++' your_file > deduplicated_file