Skip to content

Instantly share code, notes, and snippets.

View jwhett's full-sized avatar
:shipit:
Enhance

Joshua Whetton jwhett

:shipit:
Enhance
View GitHub Profile
@shakna-israel
shakna-israel / LetsDestroyC.md
Created January 30, 2020 03:50
Let's Destroy C

Let's Destroy C

I have a pet project I work on, every now and then. CNoEvil.

The concept is simple enough.

What if, for a moment, we forgot all the rules we know. That we ignore every good idea, and accept all the terrible ones. That nothing is off limits. Can we turn C into a new language? Can we do what Lisp and Forth let the over-eager programmer do, but in C?


@kkrishan
kkrishan / rdoc-example.rb
Created January 19, 2017 05:50 — forked from nicholasjhenry/rdoc-example.rb
RDoc Example
# * Style guide based on Rails documention
module Namespace #:nodoc: don't document this
# Generic Namespace exception class
class NamespaceError < StandardError
end
# Raised when...
class SpecificError < NamespaceError
end
@fat-tire
fat-tire / puzzle.py
Last active September 30, 2018 07:35
Solution to puzzle at http://www.recruitahacker.net/Puzzle
#!/usr/bin/python3
# Vigenere Cipher solver thing
# by fattire / github.com/fat-tire
# for puzzle at http://www.recruitahacker.net/Puzzle
# For more, see: https://en.wikipedia.org/wiki/Vigen%C3%A8re_cipher
import string
key = "aaaaaaaaaaaaaaaaaa" # Gotta start somewhere
newkey = ""
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active September 26, 2024 14:16
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@dupuy
dupuy / README.rst
Last active August 17, 2024 09:20
Common markup for Markdown and reStructuredText

Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.

@chrisroos
chrisroos / gpg-import-and-export-instructions.md
Created September 9, 2011 10:49
Instructions for exporting/importing (backup/restore) GPG keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Backup the public and secret keyrings and trust database

cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/

or, instead of backing up trustdb...