Skip to content

Instantly share code, notes, and snippets.

View paulwratt's full-sized avatar

Paul Wratt paulwratt

View GitHub Profile
@paulwratt
paulwratt / gist-file.sh
Last active May 6, 2020 02:31
List raw urls of a users gist.github files (using: curl grep jq sed )
#!/bin/sh
# 2020-05-06 - paulwratt@github
# ( 'jq' is a command line json tool )
# ( https://stedolan.github.io/jq/tutorial/ )
# https://gist.github.com/paulwratt/c8199d1e2162a82d475d7777a67d6f13
#
if [ "$1" = "" -o "$1" = "--help" ]; then
echo "List raw urls of gist.github files (uses: curl grep jq sed)"
@paulwratt
paulwratt / cross-mint-ppa-arm.sh
Last active February 6, 2021 02:45
ARM non-Ubuntu PPA use of Vincents 'cross-mint' m68k Atari ST GCC 4.6.4 toolchain (no build)
#!/bin/sh
# install Vincint Riviera Ubuntu PPA repo v1.0.0-20200506
# then install all ARM packages in right order (APT/DPKG)
# https://gist.github.com/paulwratt/98de1ce795b5b355c300e73bdb13af37
#
# this script is based on the original source build script:
# https://gist.github.com/paulwratt/b401937124906803628cb3a34d3d36f1
#
# you can download the latest versions from command line using this:
# https://gist.github.com/paulwratt/c8199d1e2162a82d475d7777a67d6f13
@paulwratt
paulwratt / cross-mint-ppa-build.sh
Last active February 6, 2021 02:35
non-Ubuntu PPA use of Vincents 'cross-mint' m68k Atari ST GCC 4.6.4 toolchain (build from source)
#!/bin/sh
# install Vincint Riviera Ubuntu PPA repo v1.0.0-20210206
# build from source all packages in right order (DPKG)
# https://gist.github.com/paulwratt/b401937124906803628cb3a34d3d36f1
#
# ARM install only script (works with i386 & amd64 as well):
# https://gist.github.com/paulwratt/98de1ce795b5b355c300e73bdb13af37
#
# you can download the latest versions from command line using this:
# https://gist.github.com/paulwratt/c8199d1e2162a82d475d7777a67d6f13
@paulwratt
paulwratt / build-tcc.sh
Created May 10, 2019 07:36 — forked from TheBrokenRail/build-tcc.sh
Build TinyCC
#!/bin/bash
set -e
PATH="$(pwd)/tinycc/temp:$(pwd)/tinycc/build/bin:$(pwd)/google-ndk:$(pwd)/google-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin:${PATH}"
if [[ -d tinycc ]]; then
rm -rf tinycc
fi