Skip to content

Instantly share code, notes, and snippets.

@jqtrde
jqtrde / archinstall.md
Created June 4, 2017 19:43 — forked from miguelfrde/archinstall.md
Preinstalled Windows 8.1 and Arch Linux dual boot

Arch Linux installation (preinstalled Windows 8.1 dual boot)

Before

  1. Disable Windows Fast-Startup
  2. Disable Secure Boot

Partitioning

@jqtrde
jqtrde / WORKSHOP.md
Created August 22, 2017 15:15 — forked from aman-tiwari/WORKSHOP.md
Document containing install instructions and cool links for the Making Maps with ML workshop!

Messing with Maps and ML quickstart

This document: https://goo.gl/AqGoE8

Installation instructions

By far the most annoying part of getting started with messing with ML is installing researcher-made code and turning it into something fun to play with.

Before doing any of these, please install Miniconda. If you don't have it installed already, here's how:

For OSX, this is:

@jqtrde
jqtrde / .Xresources
Created September 3, 2017 14:07 — forked from VovanR/.Xresources
Atom One Light color theme for xterm and urxvt
! Atom One Light theme
xterm*background: #f9f9f9
xterm*foreground: #383a42
xterm*cursorColor: #d0d0d0
xterm*color0: #000000
xterm*color1: #E45649
xterm*color2: #50A14F
xterm*color3: #986801
xterm*color4: #4078F2
xterm*color5: #A626A4
@jqtrde
jqtrde / shh.rb
Created March 8, 2018 16:19 — forked from robinsloan/shh.rb
Disable RTs from all the people you follow on Twitter.
require "rubygems"
require "twitter"
# get these from apps.twitter.com
CONSUMER_KEY = "foo"
CONSUMER_SECRET = "bar"
OAUTH_TOKEN = "blee"
OAUTH_TOKEN_SECRET = "baz"
TWITTER_USER = "your_username" # needs to be the one associated with keys above
import random
import time
import json
import threading
import click
def send_message(msg, async=True):
"""Logs the msg (presumably a JSON object) to firehose
@jqtrde
jqtrde / tutorial.md
Created July 17, 2018 13:21 — forked from swalkinshaw/tutorial.md
Designing a GraphQL API

Tutorial: Designing a GraphQL API

This tutorial was created by Shopify for internal purposes. We've created a public version of it since we think it's useful to anyone creating a GraphQL API.

It's based on lessons learned from creating and evolving production schemas at Shopify over almost 3 years. The tutorial has evolved and will continue to change in the future so nothing is set in stone.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from botocore.credentials import RefreshableCredentials
from botocore.session import get_session
from boto3 import Session
def assumed_session(role_arn, session_name, session=None):
"""STS Role assume a boto3.Session
With automatic credential renewal.
@jqtrde
jqtrde / README.md
Created March 15, 2020 19:46 — forked from clhenrick/README.md
PostgreSQL & PostGIS cheatsheet (a work in progress)