Skip to content

Instantly share code, notes, and snippets.

View rey's full-sized avatar
🌴
On vacation

Rey Dhuny rey

🌴
On vacation
View GitHub Profile
@rey
rey / add-latest-toot-to-sidebar.html
Created September 26, 2018 10:22
How to add your latest Mastodon toot to your sidebar
<!--
1. Put the following HTML in your sidebar.php (or wherever you fancy)
-->
<p class="toot h-entry">
<span class="e-content"></span>
<a class="u-url" href>
<time class="dt-published" datetime></time>
</a>
</p>
@rey
rey / twitter-killjunk.js
Last active September 18, 2018 12:16 — forked from freem/twitter-killjunk.js
disabling extraneous twitter features
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("twitter.com") {
[data-component-context="suggest_recap"],
[data-component-context="suggest_who_to_follow"],
[data-component-context="suggest_activity"],
[data-component-context="suggest_activity_tweet"],
[data-component-context="suggest_grouped_tweet_hashtag"],
[data-component-context="suggest_recycled_tweet_inline"],
[data-component-context="suggest_recycled_tweet"]{
@rey
rey / virgin-media-throttling-youtube.markdown
Created May 16, 2018 08:21
Virgin Media throttling YouTube

Virgin Media throttling YouTube

1. Open new tab, navigate to google.com and run PING

~ $ ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1): 56 data bytes
64 bytes from 1.1.1.1: icmp_seq=0 ttl=57 time=25.412 ms
64 bytes from 1.1.1.1: icmp_seq=1 ttl=57 time=34.117 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=57 time=28.126 ms
@rey
rey / fix-mpc-essentials-plugin-on-garageband.sh
Created April 11, 2018 10:56
Fixes MPC Essentials plugin on GarageBand
cp ~/Library/Application\ Support/MPC/MPCEssentials.settings ~/Library/Containers/com.apple.garageband10/Data/Library/Application\ Support/MPC/
#!/bin/bash
WEBSITE="http://httpstat.us/200"
HTTP_CODE=`curl -s -o /dev/null -w "%{http_code}" ${WEBSITE}`
TIME=$(date +"%d/%m/%y @ %H:%M:%S")
echo "Reponse is ${HTTP_CODE} on ${TIME}"
if [ ${HTTP_CODE} != 200 ]; then
echo "Error"
@rey
rey / xubuntu_17.10_on_lenovo_thinkpad_11_e_notes.markdown
Last active February 2, 2018 17:15
Xubuntu 17.10 on a Lenovo ThinkPad 11e

Fix wifi

sudo apt-get install bcmwl-kernel-source --assume-yes

Fix shoddy trackpad

# remove synaptics
@rey
rey / name.sh
Last active October 10, 2017 16:05
#!/bin/bash
# Generates a heroku-style name
# Adjectives and nouns taken from: https://gist.github.com/afriggeri/1266756
# Useage: `name`
function name() {
# Output variable values
local debug=0
# Array of adjectives
@rey
rey / keybase.md
Created September 19, 2017 08:41

Keybase proof

I hereby claim:

  • I am rey on github.
  • I am rey (https://keybase.io/rey) on keybase.
  • I have a public key whose fingerprint is 969E 3045 4357 9E8D D444 A7EA 914C CE92 686F 6CB1

To claim this, I am signing this object:

#!/bin/bash
runDiskFree() {
echo "Running df -h"
echo
df -h
echo
}
getDeviceName() {
@rey
rey / slack-bugs.markdown
Created March 22, 2016 11:03
This is a list of Slack bugs I've encountered recently

Related:

{
  "id": "710525077742342144",
  "text": "@SlackHQ your performance has dipped in the last month or so. Noticeably in the last 2 weeks: file uploads disappearing, spotty connection",
  "created": "Thu Mar 17 17:55:54 +0000 2016"
}