Skip to content

Instantly share code, notes, and snippets.

View t-mart's full-sized avatar

Tim Martin t-mart

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@t-mart
t-mart / netrw quick reference.md
Last active March 25, 2024 07:47
A quick reference for Vim's built-in netrw file selector.
Map Action
<F1> Causes Netrw to issue help
<cr> Netrw will enter the directory or read the file
<del> Netrw will attempt to remove the file/directory
- Makes Netrw go up one directory
a Toggles between normal display, hiding (suppress display of files matching g:netrw_list_hide) showing (display only files which match g:netrw_list_hide)
c Make browsing directory the current directory
C Setting the editing window
d Make a directory
@t-mart
t-mart / README.md
Created December 4, 2018 16:41
xmlto does not validate xmlto: Fix document syntax or use --skip-validation option I/O error : Attempt to load network entity dtd warning: failed to load external entity D DocBook XML V4.5//EN"

Problem

When compiling git from source, I often run into this problem:

% make prefix=$HOME all doc info
    SUBDIR git-gui
    SUBDIR gitk-git
    SUBDIR templates
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C Documentation all
@t-mart
t-mart / forensic_files.json
Last active January 12, 2022 06:16
Forensic Files Episodes on Netflix
[
{
"netflix_collection_number": 1,
"netflix_episode_number": 1,
"title": "If I Were You",
"series_number": 285,
"season": 11,
"season_number": 28,
"air_date": "2007-01-24"
},
@t-mart
t-mart / setup.ubuntu.solarize.sh
Created October 12, 2011 03:24
Set up Ubuntu for Solarize
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/use_theme_background" --type bool false
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/use_theme_colors" --type bool false
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/palette" --type string "#070736364242:#D3D301010202:#858599990000:#B5B589890000:#26268B8BD2D2:#D3D336368282:#2A2AA1A19898:#EEEEE8E8D5D5:#00002B2B3636:#CBCB4B4B1616:#58586E6E7575:#65657B7B8383:#838394949696:#6C6C7171C4C4:#9393A1A1A1A1:#FDFDF6F6E3E3"
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/background_color" --type string "#00002B2B3636"
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/foreground_color" --type string "#65657B7B8383"
@t-mart
t-mart / backup.sh
Created December 11, 2012 20:23
Local incremental backup of Windows' drives with RSync via Cygwin.
#!/bin/sh
#Local incremental backup of Windows' drives with RSync via Cygwin.
#Run like ./backup.sh cat_pictures_drive d g
#where d is the drive containing cat pictures
#and g is the destination of the backup.
#Backups will be made on g like G:\cat_pictures_drive_backup\backup-YY-MM...
#high-level description of the content we're backing up
kinesis = boto3.client(
'kinesis',
region_name=awsRegion,
aws_access_key_id=accessKeyId,
aws_secret_access_key =secretAccessKey
)
function getEntriesFromAElements(element) {
return element.querySelectorAll('a')
.map(e => ({ e.text : e.getAttribute('href') } ));
}
@t-mart
t-mart / lol.py
Created September 28, 2019 21:55
for i in range(5):
print(i)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.