Skip to content

Instantly share code, notes, and snippets.

View sethhorsley's full-sized avatar
🦾
who knows

Seth Horsley sethhorsley

🦾
who knows
View GitHub Profile

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@squarism
squarism / iterm2.md
Last active September 24, 2025 12:54
An iTerm2 Cheatsheet

In the below keyboard shortcuts, I use the capital letters for reading clarity but this does not imply shift, if shift is needed, I will say shift. So + D does not mean hold shift. + Shift + D does of course.

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
@rwarbelow
rwarbelow / running_app_in_production_locally.markdown
Created November 11, 2015 18:26
How to Run a Rails App in Production Locally
  1. Add gem 'rails_12factor' to your Gemfile. This will add error logging and the ability for your app to serve static assets.
  2. bundle
  3. Run RAILS_ENV=production rake db:create db:migrate db:seed
  4. Run rake secret and copy the output
  5. From the command line: export SECRET_KEY_BASE=output-of-rake-secret
  6. To precompile your assets, run rake assets:precompile. This will create a folder public/assets that contains all of your assets.
  7. Run RAILS_ENV=production rails s and you should see your app.

Remember to clobber your assets (rake assets:clobber) and re-precompile (rake assets:precompile) if you make changes.

@jrunning
jrunning / 01_mustache_liquid_benchmark.rb
Last active March 27, 2022 23:09 — forked from anonymous/01_mustache_liquid_benchmark.rb
Mustache vs. Liquid templates benchmark (naïve)
# This is a very basic benchmark of Mustache (1.0.2) vs.
# Liquid (3.0.6) rendering. It does two sets of benchmarks: One with
# "precompiled" templates (i.e. the Mustache::Template or
# Liquid::Template object is kept between runs) and one without (a new
# Template object is instantiated for each run). This benchmark tests
# a basic loop; no other features e.g. partials or conditionals
# are tested.
require "benchmark/ips"
require "mustache"
@noelboss
noelboss / git-deployment.md
Last active August 12, 2025 18:16
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.

@lyquix-owner
lyquix-owner / lamp-ubuntu14.sh
Last active April 25, 2017 14:29
Bash script to setup LAMP server on Ubuntu 14.04
#!/bin/bash
# Check if script is being run by root
if [[ $EUID -ne 0 ]]; then
printf "This script must be run as root!\n"
exit 1
fi
DIVIDER="\n***************************************\n\n"
@GlowingAshes
GlowingAshes / memes
Last active January 30, 2017 07:03
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
int main() {
int userDay = 0;
int userYear = 0;
int userMonth = 0;
@sethhorsley
sethhorsley / memes
Created January 30, 2017 07:03 — forked from GlowingAshes/memes
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
int main() {
int userDay = 0;
int userYear = 0;
int userMonth = 0;
@ctesta01
ctesta01 / qsf_explanation.md
Last active August 7, 2025 20:28
How does a Qualtrics Survey File work?

Quickstart Guide to undertsanding the Qualtrics Survey File

This information is likely to quickly become outdated when Qualtrics next changes the formatting of the QSF file. This guide was started February 2017. I hope that it is a useful introduction to understanding the contents of the QSF file that one can download from Qualtrics.

This document includes:

/*
* SEP firmware split tool
*
* Copyright (c) 2017 xerub
*/
#include <fcntl.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>