Skip to content

Instantly share code, notes, and snippets.

View selfup's full-sized avatar
💻
doing the most

Regis Boudinot selfup

💻
doing the most
View GitHub Profile
#!/usr/bin/env bash
######
# This script assumes you are on Ubuntu 18.04 LTS
# Everything will be setup/installed in your home dir
######
set -e
cd $HOME
mkdir -p /usr/local
mkdir -p /usr/local/bin
mkdir -p /usr/local/lib
mkdir -p /usr/local/include
cp hl /usr/local/bin
cp libhl.dylib /usr/local/lib
cp *.hdll /usr/local/lib
cp src/hl.h src/hlc.h src/hlc_main.c /usr/local/include
#!/usr/bin/env bash
set -e
if [[ $1 == '' ]]
then
echo 'please provide a branch name to savagely squash from'
echo 'exiting'
exit 1
fi
<?xml version="1.0" encoding="UTF-8"?>
<Ableton MajorVersion="4" MinorVersion="9.0_305" SchemaChangeCount="10" Creator="1010 music bitbox">
<LiveSet>
<Tracks>
<AudioTrack Id="0">
<Name>
<EffectiveName Value=""/>
<UserName Value=""/>
</Name>
<ColorIndex Value="152"/>
<?xml version="1.0" encoding="UTF-8"?>
<document>
<session>
<cell row="0" column="0" layer="0" filename="SoundtrackLoops\SL LoFi Hip Hop Kit\KI O LoFi Pad01 Kick.WAV" type="sample">
<params gaindb="0" pitch="0" panpos="0" samtrigtype="0" loopmode="1" loopmodes="0" midimode="0" midioutchan="0" reverse="0" cellmode="0" envattack="0" envdecay="0" envsus="1000" envrel="200" samstart="0" samlen="33691" loopstart="0" loopend="33691" quantsize="3" synctype="5" actslice="1" outputbus="0" monomode="0" slicestepmode="0" chokegrp="0" dualfilcutoff="0" rootnote="60" beatcount="0" fx1send="0" fx2send="0" multisammode="0" interpqual="0" grainsize="0" graincount="3" gainspreadten="0" grainreadspeed="1000" recpresetlen="0" recquant="3" recinput="0" recusethres="0" recthresh="-20000" recmonoutbus="0"/>
<modsource dest="gaindb" src="midivol" slot="2" amount="1000"/>
<modsource dest="panpos" src="midipan" slot="2" amount="1000"/>
<modsource dest="gaindb" src="velocity"
@selfup
selfup / okokokok.sh
Last active September 18, 2019 17:08
git branch -r | grep -v /HEAD
for remote in `git branch -r | grep -v /HEAD`; do; git checkout --track $remote; done
git checkout master
git filter-branch --index-filter 'git rm -rf --cached --ignore-unmatch my_dir/' --prune-empty --tag-name-filter cat -- --all
git for-each-ref --format="%(refname)" refs/original/ | xargs -n 1 git update-ref -d
#!/usr/bin/env bash
set -e
DIRNAME=$1
if [[ $DIRNAME == '' ]]
then
echo 'NO DIRECTORY SPECIFIED'
echo 'exiting..'
package main
import (
"flag"
"fmt"
"log"
"os"
"path/filepath"
"runtime"
"sync"
#!/usr/bin/env bash
REPOS=$1
CURRENT_DIR=$(pwd)
if [[ $REPOS == "" ]]
then
echo "please provide a directory with repositories to sync"
exit 1
fi
goroutine 102442 [semacquire]:
os.openDir(0xc006a5faa0, 0x60, 0x0, 0x0, 0x0)
C:/Go/src/os/file_windows.go:112 +0x504
os.openFileNolog(0xc006a5faa0, 0x60, 0x0, 0x0, 0xc006a5faa0, 0xc001f21620, 0x5a4c01)
C:/Go/src/os/file_windows.go:162 +0x17b
os.OpenFile(0xc006a5faa0, 0x60, 0x0, 0xc000000000, 0x5a4cc0, 0xc0017ebe20, 0x440d66)
C:/Go/src/os/file.go:284 +0x66
os.Open(...)
C:/Go/src/os/file.go:265
io/ioutil.ReadDir(0xc006a5faa0, 0x60, 0xc006a5faf2, 0xc00012de00, 0xe, 0x60, 0xc006a5faa0)