Skip to content

Instantly share code, notes, and snippets.

View wilkes's full-sized avatar

Wilkes Joiner wilkes

View GitHub Profile
@wilkes
wilkes / postgres_queries_and_commands.sql
Created July 7, 2021 14:05 — forked from rgreenjr/postgres_queries_and_commands.sql
Useful PostgreSQL Queries and Commands
-- show running queries (pre 9.2)
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(clock_timestamp(), query_start), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'

Captain Beefheart talks the guitar. (thx to Carlos Ferrao)

  1. Listen to the birds - That’s where all the music comes from. Birds know everything about how it should sound and where that sound should come from. And watch hummingbirds. They fly really fast, but a lot of times they aren’t going anywhere.
  2. Your guitar is not really a guitar - Your guitar is a divining rod. Use it to find spirits in the other world and bring them over. A guitar is also a fishing rod. If you’re good, you’ll land a big one.
  3. Practice in front of a bush - Wait until the moon is out, then go outside, eat a multi-grained bread and play your guitar to a bush. If the bush doesn’t shake, eat another piece of bread.
  4. Walk with the devil - Old Delta blues players referred to guitar amplifiers as the “devil box.” And they were right. You have to be an equal opportunity employer in terms of who you’re brining over from the other side. Electricity attracts devils and demons. Other instruments attract other spirits. An aco
she said.
feet. Florence already has
federal, state, local and
the
Wilmington roads, and traffic lights were out virtually everywhere. Residents,
travelers essentially go
and assembling living room furniture. Jerald,
Mayor
decision could change
although people
would
not the popular “resistance” of
test to his presidency unlike
across the
that the United States continued
senior staff members letting him
our republic. That is why
not what Mr. Trump has
Russia are
the president flip-flopped on
@wilkes
wilkes / resistance.txt
Last active September 10, 2018 14:09
op-ed cut-up chunkiness:5
the country for its malign great nation.
we may no longer on his downfall.
the dilemma — instability many witnessed, there were to expel so many of great
lengths to keep bad to act in a manner decision making.
although he was elected is not what mr. trump won’t.
the result is a two-track process for removing the president. his farewell letter.
all americans which is impetuous, adversarial, petty the labels in favor of first
principles that guide his the administration of people choosing off topic and off
the have sunk low with him more misguided impulses until he get boxed into further
@wilkes
wilkes / 0_reuse_code.js
Created August 29, 2016 15:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
This file has been truncated, but you can view the full file.
/home/petermancini/Downloads/text_without_headers/jeffrey skilling/text_001/3.170043.IKWXXKPFGRPZ5YPLRNQJHDAEJFNGWQKSA.txt
/home/petermancini/Downloads/text_without_headers/jeffrey skilling/text_001/3.176063.BDBSK43E2NJQ40C3PXU1MYUJFQWFHDPPA.txt
/home/petermancini/Downloads/text_without_headers/jeffrey skilling/text_001/3.176169.A1T2FPALR0N5B10RVVAT1TKAAK2DALA4A.txt
/home/petermancini/Downloads/text_without_headers/jeffrey skilling/text_001/3.168320.HQYHCK4E1OJ0SVLCDI1Q0WBASB0W24MOB.txt
/home/petermancini/Downloads/text_without_headers/jeffrey skilling/text_001/3.175958.P3MB3OJLZKBQKSDYITMRWGL2EWH5S4JSA.1.txt
/home/petermancini/Downloads/text_without_headers/jeffrey skilling/text_001/3.168868.IWPSM1CZLZQFO0BBUDBZTTAHZBWP3OXAA.txt
/home/petermancini/Downloads/text_without_headers/jeffrey skilling/text_001/3.168295.BQ5I5QQHYO41JNNRJL0CJUPPUSGV3RRZA.txt
/home/petermancini/Downloads/text_without_headers/jeffrey skilling/text_001/3.175721.BLP5EOEWMJUSP2UGVWABK0USJYIT2KULB.1.txt
/home/petermancini/Downloads/text_wi
(ns montyhall
(:require [clojure.set :as set]))
(defn make-a-deal [_]
(let [doors (shuffle [:goat :goat :car])
car? (= (doors (rand-int 3)) :car)]
(if car? 1 0)))
(defn monty-hall [n]
(let [first-guesses (reduce + 0
@wilkes
wilkes / gist:1648607
Created January 20, 2012 17:37
stacktrace from running `lein help`
Exception in thread "main" java.lang.RuntimeException: java.lang.NoSuchMethodError: clojure.lang.KeywordLookupSite.<init>(ILclojure/lang/Keyword;)V
at clojure.lang.Util.runtimeException(Util.java:165)
at clojure.lang.Compiler.eval(Compiler.java:6476)
at clojure.lang.Compiler.eval(Compiler.java:6431)
at clojure.core$eval.invoke(core.clj:2795)
at clojure.main$eval_opt.invoke(main.clj:296)
at clojure.main$initialize.invoke(main.clj:315)
at clojure.main$script_opt.invoke(main.clj:339)
at clojure.main$main.doInvoke(main.clj:426)
at clojure.lang.RestFn.invoke(RestFn.java:457)
(ns storm.starter.clj.exclamation
(:import [backtype.storm StormSubmitter LocalCluster])
(:use [backtype.storm clojure config])
(:gen-class))
(defspout test-word-spout ["word"] {:prepare false}
[collector]
(Thread/sleep 100)
(emit-spout! collector [(rand-nth ["first" "second" "third" "fourth"])]))