Skip to content

Instantly share code, notes, and snippets.

View Thomashighbaugh's full-sized avatar
:octocat:
W O R K I N G

Thomas Leon Highbaugh Thomashighbaugh

:octocat:
W O R K I N G
View GitHub Profile
@asabaylus
asabaylus / gist:3071099
Created July 8, 2012 14:12
Github Markdown Heading Anchors

Anchors in Markdown

To create an anchor to a heading in github flavored markdown. Add - characters between each word in the heading and wrap the value in parens (#some-markdown-heading) so your link should look like so:

[create an anchor](#anchors-in-markdown)

@vunb
vunb / ffmpeg-convert-mp3-to-wave
Created November 7, 2013 04:52
Convert mp3 to wave format using ffmpeg
ffmpeg -i input.mp3 -acodec pcm_s16le -ac 1 -ar 16000 output.wav
# To convert all mp3 files in a directory in Linux:
for f in *.mp3; do ffmpeg -i "$f" -acodec pcm_s16le -ac 1 -ar 16000 "${f%.mp3}.wav"; done
# Or Windows:
for /r %i in (*) do ffmpeg -i %i -acodec pcm_s16le -ac 1 -ar 16000 %i.wav
@alexdantas
alexdantas / autoscroll.lua
Last active January 3, 2022 04:10 — forked from mason-larobina/autoscroll.lua
Autoscroll script for the Luakit browser
-- Autoscroll script for luakit (luakit.org).
-- Originally by @mason-larobina
-- (https://gist.github.com/mason-larobina/726550)
--
-- Install instructions:
-- * Add to rc.lua before window spawning code
-- Or
-- * Save to $XDG_CONFIG_HOME/luakit/autoscroll.lua and
-- add `require "autoscroll"` to your rc.lua
----------------------------------------------------------------
@stared
stared / software_for_scientists.md
Last active December 5, 2023 17:16
Software for scientists: community-edited list of general-purpose software for scientists.

Software for scientists

Some things takes much less time and stress once you know the right tool. Below, there is a community edited list of software for scientists.

Text editors

in General purpose text/code editors. It may be better to have a good editor for everything, than different ones for different languages, scripts, notes.

@austinhappel
austinhappel / making-webfonts.md
Created May 23, 2014 23:39
Quick gist on making webfonts - converting otf to ttf to eot.

Converting Fonts

This is a quick and dirty process for converting otf fonts to TTF fonts, then converting those TTF fonts into M$-compatible eot fonts.

NOTE This process has only been tested to work in osx, using macports.

Requirements

@satreix
satreix / custom_archlinux_live_USB.md
Last active March 15, 2024 10:32
Custom Arch Linux live USB

Custom Arch Linux live USB

Setup

Install the dependencies for the archiso package:

(root): pacman -S make squashfs-tools libisoburn dosfstools patch lynx devtools git

I recommend archiso getting them from git, there is a package in the repositories, however, at this time of writing, it will not work with the instructions below. So, grab the most recent version from git and install it:

(user): git clone git://projects.archlinux.org/archiso.git && cd archiso

@lukehedger
lukehedger / ffmpeg-compress-mp4
Last active April 18, 2024 21:00
Compress mp4 using FFMPEG
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4
@janeczku
janeczku / README.md
Last active April 21, 2020 03:49
Batch delete those unused stale forked repositories in your Github account

Cleaning up your Github account from those repositories you once forked and then forgot about is a tedious process when done manually.

Lets speed up this process with some automagic:

  1. Open all repositories that you want to delete in new browser tabs
  2. Use https://chrome.google.com/webstore/detail/onetab/chphlpgkkbolifaimnlloiipkdnihall?hl=en to shorten them to a list and export the URL's as a text file
  3. In a text editor shorten the URL's to just the last part (username/repositoryname)
  4. Create a new personal API token with capability to delete repositories and paste that token in the script
  5. Run ./clean-repos.sh
@ajouellette
ajouellette / Setup.md
Last active August 21, 2023 07:47
Raspberry Pi Setup Guide (Arch Linux ARM)

Problem

In Arch Linux mkinitcpio -p linux

shows

Possibly missing firmware for module: aic94xx
 Possibly missing firmware for module: wd719x