Skip to content

Instantly share code, notes, and snippets.

View hugovk's full-sized avatar

Hugo van Kemenade hugovk

View GitHub Profile
@tablatronix
tablatronix / user48736353001_discog_2015
Last active August 29, 2015 14:14
user48736353001 discography 2015-soundcloud / fly away babies, good luck!
-1|status|tag|no|name|duration|about
112||afx||luke vibert spiral staircase [future music competition] [afx remix]|5:05
111||afx|19|[Slo]w early morning clissold sunrise|4:49|
110||afx|7|lsb [slo]|4:05|
109||afx|4|Red Calx[slo]|5:41|
108||Art|2|Dual Acid Ab6|4:36|94 ish, fuk knows
107||afx|5|How To Science 2 Ab6|4:51|
106||afx|4|how to science ab6|3:47|
105||afx|3|hollow alias ab6|2:14|ab6
@hugovk
hugovk / .jshintrc
Last active April 29, 2016 11:50
Gruntfile for Drupal to compile Less to CSS with source maps
{
"node": true,
"browser": true,
"esnext": true,
"bitwise": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"immed": true,
"indent": 4,
@hugoboos
hugoboos / trakt-remove-history.js
Created February 14, 2015 12:14
Remove history from Trakt
// Run in console on the history page (http://trakt.tv/users/<username>/history)
// Will remove all the items, on that page, from the watched history.
$(".posters .grid-item").each(function(){
var $this = $(this);
historyRemove($this, $this.data("history-id"));
})
@albyr
albyr / file-type-link-icons.css
Last active January 22, 2021 18:38
How to add file-type icons to links with CSS
@davidneedham
davidneedham / .bash_profile
Last active March 17, 2016 13:06
Pantheon Development Workflow (pdw): Commands to improve your Pantheon to local development experience. Just copy these commands into your .bash_profile or .bashrc, update the pdw-auth command to use your credentials, install Terminus (https://github.com/pantheon-systems/cli/wiki/Installation), and go!
#------------------------------------------
# PANTHEON DEVELOPMENT WORKFLOW v1.01
# Using the Pantheon CLI (terminus) v0.71
#------------------------------------------
# Authenticate with Pantheon. The first step, most of the time.
# This is a little insecure, as it lists your password here. But it's convenient.
alias pdw-auth='terminus auth login YOURPANTHEONEMAILADDRESS --password=YOURPANTHEONPASSWORD'
# Update your local Pantheon site aliases
@davidmintz
davidmintz / drush-turn-off-aggregate-assets.txt
Last active September 9, 2015 12:21 — forked from chrisl8888/drush-turn-off-aggregate-assets.txt
drush disable js/css aggregation
// To turn on JS Aggregation
drush vset preprocess_js 1 --yes
// To clear all Cache
drush cc all
// To disable JS Aggregation
drush vset preprocess_js 0 --yes
// To clear cache of JS and CSS only
import urllib
import os
import tweepy
import csv
import time
import PIL
from PIL import Image, ImageOps
@jmolivas
jmolivas / inject-service-drupal-8.md
Last active December 26, 2023 20:21
Inject a service from the service container

Inject a Service in Drupal 8

Is a good practice to inject a service whenever is possible.

You can verify the service name by:

Looking at the Drupal Static Service Container wrapper class.

Reading the code on the Drupal Class you can find the httpClient method:

 /**
@lmarkus
lmarkus / README.MD
Last active November 27, 2025 15:56
Extracting / Exporting custom emoji from Slack

Extracting Emoji From Slack!

Slack doesn't provide an easy way to extract custom emoji from a team. (Especially teams with thousands of custom emoji) This Gist walks you through a relatively simple approach to get your emoji out.

If you're an admin of your own team, you can get the list of emoji directly using this API: https://api.slack.com/methods/emoji.list. Once you have it, skip to Step 3

HOWEVER! This gist is intended for people who don't have admin access, nor access tokens for using that list.

Follow along...

Most downloaded projects

SELECT
  file.project,
  COUNT(*) as total_downloads,
FROM
  TABLE_DATE_RANGE(
    [the-psf:pypi.downloads],
    TIMESTAMP("20160114"),