Skip to content

Instantly share code, notes, and snippets.

View rfilmyer's full-sized avatar
😌
Vibing

Roger Filmyer rfilmyer

😌
Vibing
View GitHub Profile
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 23, 2024 19:59
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@TomAugspurger
TomAugspurger / add_rec_bars.py
Created April 16, 2013 14:50
Adding recession bars to matplotlib axes.
import pandas as pd
def add_rec_bars(ax, dates=None):
if dates is None:
dates = pd.read_csv('/Users/tom/bin/rec_dates.csv',
parse_dates=['Peak', 'Trough'])
for row in dates.iterrows():
x = row[1]
y1, y2 = ax.get_ylim()
@glw
glw / load_shp_to_AWS
Last active June 21, 2024 18:52
load shapefile into Amazon RDS PostGIS
shp2pgsql -s 4326 -d -g the_geom shapefilename.shp shapefilename |psql -U username --password -p 5432 -h reallylonghostnametoamazonaws.com dbname
@Belphemur
Belphemur / transmission-ssl
Last active June 28, 2024 08:41
Configuration to use nginx as reverse proxy for Transmission BT with SSL/HTTP2 protected with auth
upstream transmission {
server 127.0.0.1:9091; #Transmission
}
server {
listen 443 ssl http2;
server_name example.com;
auth_basic "Server Restricted";
auth_basic_user_file /var/www/myWebSite/web/.htpasswd;
# Path to the root of your installation
@lolzballs
lolzballs / HelloWorld.java
Created March 22, 2015 00:21
Hello World Enterprise Edition
import java.io.FileDescriptor;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
public class HelloWorld{
private static HelloWorld instance;
public static void main(String[] args){
instantiateHelloWorldMainClassAndRun();
@adg29
adg29 / index.html
Last active August 16, 2018 13:39 — forked from zross/index.html
Animate path on Leaflet map using D3
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css" />
<script src="http://d3js.org/d3.v3.min.js" type="text/javascript"></script>
<script src="http://cdn.leafletjs.com/leaflet-0.7/leaflet.js"></script>
<script src='https://api.tiles.mapbox.com/mapbox.js/v1.6.4/mapbox.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox.js/v1.6.4/mapbox.css' rel='stylesheet' />
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cjlano
cjlano / README.md
Last active June 7, 2021 23:38
Nextcloud OVH object storage as primary storage

Use OVH Public Cloud Object Storage as "Primary Storage" in Nextcloud configuration

Pointers:

Instructions

Download the "openRC.sh": https://www.ovh.com > My Account > Public Cloud > Project Management / Users & roles > Your user > (...) > Download openStack RC file

All OS_ variable should be replaced by their value in config.php