Skip to content

Instantly share code, notes, and snippets.

View mdusher's full-sized avatar

Michael Usher mdusher

View GitHub Profile
@mdusher
mdusher / gist:0848c6ed2600f07f8b8e7b2e2330fe68
Created November 29, 2023 06:56
Windows Terminal Theme - Dainty TTY
{
"background": "#0C0C0C",
"black": "#0C0C0C",
"blue": "#0037DA",
"brightBlack": "#767676",
"brightBlue": "#3B78FF",
"brightCyan": "#61D6D6",
"brightGreen": "#16C60C",
"brightPurple": "#B4009E",
"brightRed": "#E74856",
"""
Check if libjemalloc was built with `--enable-prof` (and thus has
memory profiling capabilities) or not.
Author: Ori Livneh
No copyright restriction
Original Source: https://gist.github.com/atdt/736137113e577795e5fc
Able to specify the path to libjemalloc as the first argument.
"""
import ctypes

Keybase proof

I hereby claim:

  • I am mdusher on github.
  • I am mdusher (https://keybase.io/mdusher) on keybase.
  • I have a public key ASCwHZCrSNbCwrs_vR90yN7lW0lobEMMzWq0mghYI2Vl-go

To claim this, I am signing this object:

#!/usr/bin/env ruby
require 'twitter'
client = Twitter::REST::Client.new do |config|
config.consumer_key = ""
config.consumer_secret = ""
config.access_token = ""
config.access_token_secret = ""
end
@mdusher
mdusher / safetydance.rb
Last active July 19, 2018 01:29
safetydance.rb
#!/usr/bin/env ruby
require 'twitter'
client = Twitter::REST::Client.new do |config|
config.consumer_key = "YOUR_CONSUMER_KEY"
config.consumer_secret = "YOUR_CONSUMER_SECRET"
config.access_token = "YOUR_ACCESS_TOKEN"
config.access_token_secret = "YOUR_ACCESS_SECRET"
end
// ==UserScript==
// @name NewTweetClicker
// @version 0.1
// @description Clicks the new tweet bar automatically
// @author Michael Usher
// @match https://www.twitter.com/*
// @match https://twitter.com/*
// @grant none
// ==/UserScript==
/* jshint -W097 */
@mdusher
mdusher / ImproveTwitterWeb.user.js
Last active July 15, 2016 01:13
Improves usability of Twitter Web
// ==UserScript==
// @name ImproveTwitterWeb
// @version 0.1
// @description Improves usability of Twitter Web
// @author Michael Usher
// @match https://www.twitter.com/*
// @match https://twitter.com/*
// @grant none
// ==/UserScript==
/* jshint -W097 */
@mdusher
mdusher / Caddyfile
Created April 11, 2016 00:48
Caddyfile for Owncloud (work-in-progress)
cloud.usher.is {
tls root@usher.is
root /owncloud
errors {
403 /core/templates/403.php
404 /core/templates/404.php
}
@mdusher
mdusher / keybase.io
Created March 25, 2016 05:28
Keybase
### Keybase proof
I hereby claim:
* I am mdusher on github.
* I am mushyyyy (https://keybase.io/mushyyyy) on keybase.
* I have a public key whose fingerprint is 1384 562D FA88 CDEB 0CA4 7C74 B308 6501 3043 ABD5
To claim this, I am signing this object:
@mdusher
mdusher / WebTwitterplusplus.user.js
Last active January 18, 2016 23:51
I hate some of the crap Twitter has put in the timeline.
// ==UserScript==
// @name WebTwitter++
// @version 0.1
// @description WebTwitter++
// @author Michael Usher <mail@usher.is>
// @match *://twitter.com/*
// @grant none
// @run-at document-end
// ==/UserScript==
/* jshint -W097 */