Skip to content

Instantly share code, notes, and snippets.

Jesper Eskilson jesperes

Block or report user

Report or block jesperes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jesperes
jesperes / tmux.md
Last active Jul 10, 2018
tmux cheatsheet
View tmux.md

tmux cheatsheet

Until these commands are in my muscle memory, I keep them here. C-b means, of course, the prefix key.

  • C-b % split pane vertically (into a left and right pane)
  • C-b " split pane horizontaly (into an upper and a lower pane)
  • C-b <arrowkey> switch to another pane
  • C-b C-<arrowkey> enlarge the current pane
  • C-b q show pane numbers (press key to jump to pane)
View nocase-fs.sh
# Commands to create a case-insensitive NTFS-filesystem on linux
# Disclaimer: run these commands at you own risk!
# Create the image file. Adjust size to your liking.
dd if=/dev/zero of=fs.img bs=1G count=40
# Create the NTFS file system. -F flag is necessary to make mkfs.ntfs accept
# that fs.img is not a block device.
mkfs.ntfs -F fs.img
@jesperes
jesperes / know-your-local-cachers.rb
Last active Jan 2, 2016
Ruby script to check if you are eligible to log the "Know your local cacher". I've used in particular on http://coord.info/GC447Q2, but it should be easily adaptible to other similar caches. It will print a list of all cache owners of which you have logged at least three caches (of a certain) kind.
View know-your-local-cachers.rb
#
# Installation instructions for Nokogiri can be found at
# http://nokogiri.org/tutorials/installing_nokogiri.html
require 'nokogiri'
#
# Usage: ruby #{$0} /path/to/MyFinds.gpx
if ARGV.size == 0
puts "Usage: ruby #{$0} /path/to/MyFinds.gpx"
exit 1
@jesperes
jesperes / xmas-challenge.rb
Last active Dec 31, 2015
Ruby script to check challenge compliance with XMAS Challenge 2011: http://coord.info/GC39Q62.
View xmas-challenge.rb
#
# Installation instructions for Nokogiri can be found at
# http://nokogiri.org/tutorials/installing_nokogiri.html
require 'nokogiri'
#
# Usage: ruby xmas-challenge.rb /path/to/MyFinds.gpx
if ARGV.size == 0
puts "Usage: ruby #{$0} /path/to/MyFinds.gpx"
exit 1
You can’t perform that action at this time.