Skip to content

Instantly share code, notes, and snippets.

View wwalker's full-sized avatar

Wayne Walker wwalker

View GitHub Profile
@wwalker
wwalker / Installing.md
Created July 16, 2021 06:26 — forked from DarinM223/Installing.md
Installing GHC Mod

Installing GHC Mod

  1. Go to ~/.stack/global-project/stack.yaml and change the resolver: section to lts-10.3.

  2. Add:

- https://hackage.haskell.org/package/ghc-mod-5.9.0.0/candidate/ghc-mod-5.9.0.0.tar.gz
- cabal-helper-0.8.0.0
@wwalker
wwalker / FF_HTMLbookmarks_toCSV.js
Created May 23, 2021 00:47 — forked from keikoro/FF_HTMLbookmarks_toCSV.js
JavaScript bookmarklet for converting HTML-formatted Firefox bookmarks into a downloadable CSV file
javascript:(function(){
/* escape quotes and commas in contents to be comma-separated */
function wrapCsvContents(content) {
if (typeof(content) === 'string') {
if (content.replace(/ /g, '').match(/[\s,"]/)) {
return '"' + content.replace(/"/g, '""') + '"';
}
}
return content;
}
@wwalker
wwalker / Steam-on-fedora.md
Created December 10, 2020 07:46 — forked from mattbell87/Steam-on-fedora.md
How to install Steam on Fedora

Installing Steam on Fedora

These instructions are currently for Fedora 30. I'll update them over the releases if anything changes.

Open Software

Press the Win/Super key, type software and press Enter.

Enable the Third party and Steam repositories

@wwalker
wwalker / README-setup-tunnel-as-systemd-service.md
Created October 23, 2019 23:29 — forked from drmalex07/README-setup-tunnel-as-systemd-service.md
Setup a secure (SSH) tunnel as a systemd service. #systemd #ssh #ssh-tunnel #ssh-forward

README

Create a template service file at /etc/systemd/system/secure-tunnel@.service. The template parameter will correspond to the name of target host:

[Unit]
Description=Setup a secure tunnel to %I
After=network.target
@wwalker
wwalker / .gitattributes
Created October 11, 2019 16:31 — forked from marceloalmeida/.gitattributes
How to show diffs for gpg-encrypted files?
*.gpg filter=gpg diff=gpg
*.asc filter=gpg diff=gpg
@wwalker
wwalker / .gitattributes
Created October 11, 2019 16:31 — forked from marceloalmeida/.gitattributes
How to show diffs for gpg-encrypted files?
*.gpg filter=gpg diff=gpg
*.asc filter=gpg diff=gpg
@wwalker
wwalker / xmarks2git.py
Created February 2, 2018 00:52 — forked from eugeneius/xmarks2git.py
Downloads every revision of your Xmarks bookmarks and saves them in a git repository.
#!/usr/bin/env python
import argparse
import getpass
import json
import re
import requests
import subprocess
parser = argparse.ArgumentParser()
@wwalker
wwalker / The Technical Interview Cheat Sheet.md
Created September 17, 2017 19:01 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@wwalker
wwalker / README.md
Created May 2, 2016 18:04 — forked from jordansissel/README.md
Sorting windows in tmux by hostname.

For this to work, it requires my tmux fork that includes what I use as the hostname in the window list.

At any rate, it'll sort my tmux sessions alphabetically by the host I'm using.

my tmux fork: https://github.com/jordansissel/tmux

Starts with:

(0) -    nightfall: zsh - /home/jls/projects/tmux/trunk                                                            

(1) carrera: screen -x irc

@wwalker
wwalker / flock.go
Created April 29, 2016 21:00 — forked from ericchiang/flock.go
Golang Flock
package main
// #include <sys/file.h>
import "C"
import (
"fmt"
"os"
"os/exec"
)