Skip to content

Instantly share code, notes, and snippets.

View jacobsalmela's full-sized avatar
:octocat:
To all that makes us unique

Jacob Salmela jacobsalmela

:octocat:
To all that makes us unique
View GitHub Profile
@jacobsalmela
jacobsalmela / yt
Last active March 20, 2018 00:37
yt
googlevideo.com
r4.snnx5e6n76.googlevideo.com
r14.sn5hnedn76.googlevideo.com
r9.snoguesn76.googlevideo.com
r3.snnx57yn76.googlevideo.com
r9.snn8v7zn76.googlevideo.com
r4.snnx5e6ne6.googlevideo.com
r5.snnx5e6ne6.googlevideo.com
r6.sn4g5e6nl6.googlevideo.com
r13.snoguesnl6.googlevideo.com
#!/bin/bash
# Jacob Salmela
# 11 February 2014
# Updated: 2015-05-12
# https://github.com/jacobsalmela
# Copy ALPIndex.app into /Applications on each machine that the script will run on
#----------VARIABLES---------
# Variable to store the location of the ALPIndex binary, which is inside the .app bundle
@jacobsalmela
jacobsalmela / random_mnemonic.zsh
Created January 8, 2021 20:52 — forked from alexlovelltroy/random_mnemonic.zsh
This script uses the menemonic_wordlist from the mnemonic encoding project to generate a set of word pairs
#!/usr/bin/env zsh
#
# This script uses the menemonic_wordlist from the mnemonic encoding project to generate a set of word pairs
# I use them for software release naming conventions and I like choices
# You can get it for yourself with curl
# curl -Lo menmonic_wordlist.txt http://web.archive.org/web/20091003023412/http://tothink.com/mnemonic/wordlist.txt
#
#
MNEMONIC_FILE="$HOME/Documents/mnemonic_wordlist.txt"
function random_word {
@jacobsalmela
jacobsalmela / elf.h
Created November 28, 2022 12:34 — forked from mlafeldt/elf.h
elf.h for OSX
/* This is the original elf.h file from the GNU C Library; I only removed
the inclusion of feature.h and added definitions of __BEGIN_DECLS and
__END_DECLS as documented in
https://cmd.inp.nsk.su/old/cmd2/manuals/gnudocs/gnudocs/libtool/libtool_36.html
On macOS, simply copy the file to /usr/local/include/.
Mathias Lafeldt <[email protected]> */
/* This file defines standard ELF types, structures, and macros.
@jacobsalmela
jacobsalmela / go-build-all.sh
Created March 13, 2023 11:22 — forked from makew0rld/go-build-all.sh
Cross compile for all possible Golang targets. This script will always be updated, because it uses the `go` command to see what can be built.
#!/usr/bin/env bash
# Based on https://gist.github.com/eduncan911/68775dba9d3c028181e4
# but improved to use the `go` command so it never goes out of date.
type setopt >/dev/null 2>&1
contains() {
# Source: https://stackoverflow.com/a/8063398/7361270
[[ $1 =~ (^|[[:space:]])$2($|[[:space:]]) ]]