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
div.background
background-image: url("images/background_desktop.png")
// mixin for mobile breakpoint
+bp(mobile_screen)
background-image: url("images/background_mobile.png")
// (function clearStyle(){c='';$('link[rel=stylesheet]').attr('href',c);$('style').html(c);$('*').attr('style',c);})()
!function(){c="",$("link[rel=stylesheet]").attr("href",c),$("style").html(c),$("*").attr("style",c)}();
@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

## Links

@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: repo=git@github.com:your/project.git
dest=/home/ubuntu/your_project
  • Music streaming solution + speakers
  • Sofa(s)
  • Beanbag(s)
  • Bookcase(s)
  • Being able to put stuff on the walls
  • Good quality monitors (2 per desk + monitor arms)
  • Large whiteboards (or glass walls/partitions) for scribbling
  • Large cork board for kanban
  • Desk beers on Friday
  • Break-out space with large monitor for demos
@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"),
#!/bin/bash
runDiskFree() {
echo "Running df -h"
echo
df -h
echo
}
getDeviceName() {
@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:

@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