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 / 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 / mixin-ouput.css
Created February 25, 2016 15:18 — forked from rianrainey/mixin-ouput.css
Use Bourbon's mixin, @font-face, to easily include Fonts into your project.
/* @include font-face(SourceSansPro, '/fonts/Source_Sans_Pro/SourceSansPro-Regular'); */
@font-face {
font-family: SourceSansPro;
font-weight: normal;
font-style: normal;
src: url(/assets/Source_Sans_Pro/SourceSansPro-Regular.eot);
src: url(/assets/Source_Sans_Pro/SourceSansPro-Regular.eot?#iefix) format("embedded-opentype"),
url(/assets/Source_Sans_Pro/SourceSansPro-Regular.woff) format("woff"),
url(/assets/Source_Sans_Pro/SourceSansPro-Regular.ttf) format("truetype"),
@rey
rey / site.yml
Created November 5, 2015 12:06
git clone for private repo using Ansible
- hosts: node1
sudo: yes
tasks:
- name: copy ssh key
copy: src=/Users/vinta/.ssh/your_project_deploy_key
dest=/home/ubuntu/.ssh/your_project_deploy_key
mode=0400
- name: git clone
git: [email protected]:your/project.git
dest=/home/ubuntu/your_project
@rey
rey / slackDownloadThenDelete.py
Last active February 28, 2016 19:43 — forked from jayliu50/slackDownloadThenDelete.py
Download then delete files older than 14 days from Slack
import sys
import requests
import json
import calendar
from datetime import datetime, timedelta
# This script will download, then delete the non-external files older than 14 days.
_token = "" # administrator token, from https://api.slack.com/web
_project = "" # project name, from http://[project].slack.com
@rey
rey / garbify.sh
Last active August 29, 2015 14:11 — forked from ftrain/garbify.sh
#!/bin/bash
#
# _ _ __
# __ _ __ _ _ __| |__ (_)/ _|_ _
# / _` |/ _` | '__| '_ \| | |_| | | |
#| (_| | (_| | | | |_) | | _| |_| |
# \__, |\__,_|_| |_.__/|_|_| \__, |
# |___/ |___/
#
#
@rey
rey / sig.html
Last active August 29, 2015 14:10 — forked from dieseltravis/sig.html
<!-- The div's id should be something unique -->
<div id="hcard-FirstName-LastName" class="vcard hcard h-card" itemscope itemtype="http://schema.org/Person">
<br /><br />
<p>
<b class="fn n p-name" itemprop="name">
<span class="given-name p-given-name" itemprop="givenName">FirstName</span> <span class="family-name p-family-name" itemprop="familyName">LastName</span>
</b><br />
<span class="p-job-title" itemprop="jobTitle">Job Title</span><br />
</p>
<p>