Skip to content

Instantly share code, notes, and snippets.

View zachlatta's full-sized avatar
🏴‍☠️

zach latta zachlatta

🏴‍☠️
View GitHub Profile
@afair
afair / tmux.cheat
Last active June 3, 2024 23:26
Tmux Quick Reference & Cheat sheet - 2 column format for less scrolling!
========================================== ==========================================
TMUX COMMAND WINDOW (TAB)
========================================== ==========================================
List tmux ls List ^b w
New new -s <session> Create ^b c
Attach att -t <session> Rename ^b , <name>
Rename rename-session -t <old> <new> Last ^b l (lower-L)
Kill kill-session -t <session> Close ^b &
@deepak
deepak / Dockerfile
Last active March 6, 2020 06:01
Dockerfile for installing ruby using rbenv
# DOCKER-VERSION 0.4.8
# am facing issue
# https://github.com/dotcloud/docker/issues/1123
FROM ubuntu:12.04
MAINTAINER Deepak Kannan "[email protected]"
RUN apt-get -y install python-software-properties
anonymous
anonymous / night-before-opsmas.txt
Created December 24, 2013 07:19
Twas the night before Opsmas..
'Twas the night before Christmas, when all through the racks
Not a server was alerting, not even Compaqs.
The backups were written to tapes with care
In hopes that later the data would be there.
The machines were nestled all snug in their sleds
Whilst visions of vengeance danced in their heads;
And oncall in his three-wolf and I in my rack.
Had just settled down for some syn and some ack.
@remixz
remixz / README.md
Last active August 29, 2015 14:03
YO CAM

instructions

  1. deploy server.js somewhere (i just used heroku)
  2. create an API yo account on http://developer.justyo.co/, set the callback URL to http://<server url>/yo
  3. run client.js on your computer (make sure you've edited the socket.io URL)
  4. send yo's to your API account

notes

this is very specific to my usecase: sending a photo of me from my webcam to a group chat i have with my friends on facebook. because facebook doesn't have a chat API for group chats, i use selenium to control a browser to upload stuff. it's ugly, but it works!

@coolaj86
coolaj86 / github-pages-https-lets-encrypt.md
Last active November 16, 2021 22:36
Github Pages: Let's Encrypt!
@m-ou-se
m-ou-se / replace-debian-with-arch.txt
Last active October 22, 2023 12:16
Instructions to replace a live Debian installation with Arch
# Download latest archlinux bootstrap package, see https://www.archlinux.org/download/
wget 'ftp://ftp.nluug.nl/pub/os/Linux/distr/archlinux/iso/latest/archlinux-bootstrap-*-x86_64.tar.gz'
# Make sure you'll have enough entropy for pacman-key later.
apt-get install haveged
# Install the arch bootstrap image in a tmpfs.
mount -t tmpfs none /mnt
cd /mnt
tar xvf ~/archlinux-bootstrap-*-x86_64.tar.gz --strip-components=1

Public Statement about the Apple Developer Program License Agreement

I'm about to agree to the Apple Developer Program License Agreement. I wasn't planning to make a public statement about it, until I read section 9.4:

9.4 Press Releases and Other Publicity

You may not issue any press releases or make any other public statements regarding this Agreement, its terms and conditions, or the relationship of the parties without Apple’s express prior written approval, which may be withheld at Apple’s discretion.

So if I ever want to make a public statement about this agreement, I guess I better do it now, because I won't be allowed to do this after I agree to its terms.

@sosedoff
sosedoff / 1_simple.go
Created July 16, 2016 18:45
Golang Custom Struct Tags Example
package main
import (
"fmt"
"reflect"
)
// Name of the struct tag used in examples
const tagName = "validate"
@progandy
progandy / README.md
Last active September 26, 2023 08:27
Sway output mirror and screencast

Sway output mirror and screencast

Mirror

wf-recorder

With wf-recorder it is possible to record one output. When ffmpeg is compiled with sdl support, then it is possible to use "sdl" as the muxer and replay the recorded video instead of writing it to a file.

Comment on this gist with all the clues we know for sure, I will edit and put them here.

  • TRAINS: this def. has something to do with trains:
    • Maybe, sam said it was for a history project

    • Sam posted in #CDN photos of trains from California_Zephyr_Colorado_River_Western_Colorado.
    • Sam downloaded train horn sound effect
    • The lights in the bottom of the second clue are from a train (also in #CDN)
    • Max is a train engineer
    • Orpheus' profile pic looks like a train engineer, and caleb practlically confirmed this.
  • First Clue: coords lead here, near spacex