2014-2018 by fallwith
sequence | meaning |
---|---|
<C-a> | Ctrl + a |
\ | Shift + v |
#!/usr/bin/env bash | |
# Generate an Exuberant Ctags file for a Ruby project | |
# | |
# - Accepts an optional argument of the starting search directory or file. | |
# - The starting path will be walked up until either a tags file or other | |
# project root indicating file/dir can be found. | |
tags_file=.tags | |
declare -a root_markers=(.git .hg .svn .bzr _darcs) |
#!/bin/sh | |
# build and install a fully patched bash 4.3 to mitigate shellshock | |
# | |
# to determine vulnerability: | |
# %> env x='() { :;}; echo vulnerable' bash -c "echo this is a test" | |
mkdir bash_src | |
cd bash_src | |
wget http://ftp.gnu.org/gnu/bash/bash-4.3.tar.gz |
#!/usr/bin/env bash | |
string="$*" | |
if [ -z "$string" ]; then | |
echo "Usage: $0 <string>" | |
exit -1 | |
fi | |
fonts="3-d 3x5 5lineoblique acrobatic alligator alligator2 alphabet avatar banner banner3 banner3-D banner4 barbwire basic bdffonts/ bell big bigchief binary block broadway bubble bulbhead calgphy2 caligraphy catwalk chunky coinstak colossal computer contessa contrast cosmic cosmike crawford cricket cursive cyberlarge cybermedium cybersmall decimal diamond digital doh doom dotmatrix double drpepper dwhistled eftichess eftifont eftipiti eftirobot eftitalic eftiwall eftiwater epic fender fourtops fraktur fuzzy goofy gothic graceful gradient graffiti hex hollywood invita isometric1 isometric2 isometric3 isometric4 italic ivrit jazmine jerusalem katakana kban l4me larry3d lcd lean letters linux lockergnome madrid marquee maxfour mike mini mirror mnemonic morse moscow mshebrew210 nancyj nancyj-fancy nancyj-underlined nipples ntgreek nvscript o8 octal ogre os2 pawp peaks pebbles pepper poison puffy pyramid rectangle |
#include <stdio.h> | |
#include <unistd.h> | |
#include <pthread.h> | |
void *greet(void *name_ptr) { | |
sleep(1); | |
printf("Hello, %s\n", name_ptr); | |
return NULL; | |
} |
#!/usr/bin/env bash | |
set -euo pipefail | |
NAME=mp4it | |
VERSION=0.0.12 | |
# | |
# mp4it | |
# | |
# ffmpeg front-end to take an input source (likely in mkv or m2ts format) | |
# and produce an h.265 formatted mp4 output file at the given location |
#!/usr/bin/env bash | |
set -euo pipefail | |
ffmpeg_pid=$(ps auwx | grep ffmpeg | grep -v grep | awk '{print $2}') | |
if [ "$ffmpeg_pid" == "" ]; then | |
echo "Cannot find an ffmpeg pid!" | |
exit -1 | |
fi |
#!/bin/bash | |
# This file was originally taken from iterm2 https://github.com/gnachman/iTerm2/blob/master/tests/24-bit-color.sh | |
# | |
# This file echoes a bunch of 24-bit color codes | |
# to the terminal to demonstrate its functionality. | |
# The foreground escape sequence is ^[38;2;<r>;<g>;<b>m | |
# The background escape sequence is ^[48;2;<r>;<g>;<b>m | |
# <r> <g> <b> range from 0 to 255 inclusive. | |
# The escape sequence ^[0m returns output to default |
# gruvbox-dark colorscheme for kitty | |
# snazzy theme used as base | |
# https://gist.github.com/lunks/0d5731693084b2831c88ca23936d20e8 | |
foreground #ebdbb2 | |
background #272727 | |
selection_foreground #655b53 | |
selection_background #ebdbb2 | |
url_color #d65c0d |
#!/usr/bin/env ruby | |
# frozen_string_literal: true | |
require 'base64' | |
# | |
# View is a simple terminal image viewer | |
# | |
# NOTE: currently only iTerm is supported | |
# |