Skip to content

Instantly share code, notes, and snippets.

@gld1982ltd
gld1982ltd / style.js
Created January 16, 2016 07:18 — forked from MichalZalecki/style.js
Script transpiling CSS with cssnext
const cssnext = require("cssnext");
const fs = require("fs");
const watch = require("node-watch");
const program = require("commander");
program
.version("0.0.1")
.option("-s, --source [path]", "Source file")
.option("-d, --destination [path]", "Destination file")
.option("-w, --watch [path]", "Watch directory")
@gld1982ltd
gld1982ltd / daltonmaag.com
Created January 6, 2016 16:02 — forked from samdaltonmaag/daltonmaag.com
server setup
## /etc/nginx/sites-available/daltonmaag.com
# create an upstream for the node server
upstream node_app {
server 127.0.0.1:3000;
}
server {
listen 0.0.0.0:80;
server_name testing.daltonmaag.com testweb;
#!/bin/bash
#
# Provision for Vagrant box ArchLinux
#
# Insert to Vagrantfile:
# config.vm.provision "shell", path: "https://gist.github.com/smaknsk/8165875/raw"
#
#
# Run nginx, httpd, php-fpm as user:
@gld1982ltd
gld1982ltd / nginx.conf
Created December 31, 2015 23:07 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@gld1982ltd
gld1982ltd / bobross.css
Created December 26, 2015 02:33 — forked from thomaspark/bobross.css
Bob Ross’ color palette in CSS
.sap-green {
background-color: #0A3410;
}
.sap-green-text {
color: #0A3410;
}
.sap-green-border {
border-color: #0A3410;
}
@gld1982ltd
gld1982ltd / merge-css.js
Created December 10, 2015 17:12 — forked from pritambaral/merge-css.js
Merge Duplicate CSS rules; detected by selector
#!/usr/bin/env node
if (process.argv.length < 3) {
console.error('Usage:', process.argv.join(' '), '/path/to/file.css');
process.exit(1);
}
file = process.argv[2];
var fs = require('fs');
@gld1982ltd
gld1982ltd / clone-all-user-github-repos.sh
Last active November 26, 2015 06:07 — forked from caniszczyk/clone-all-twitter-github-repos.sh
Clone all repos from a GitHub organization
user="gld1982ltd"
curl -s https://api.github.com/users/$user/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}'
@gld1982ltd
gld1982ltd / gist:f06a7ddc9158972a84a0
Last active December 20, 2015 03:37 — forked from justinmc/gist:9149719
Sample Gulpfile
var gulp = require('gulp');
var clean = require('gulp-clean');
var jshint = require('gulp-jshint');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var imagemin = require('gulp-imagemin');
var bases = {
app: 'app/',
@gld1982ltd
gld1982ltd / flexbox.less
Last active August 29, 2015 14:07 — forked from jayj/flexbox.less
Flexbox Less Mixins
// --------------------------------------------------
// Flexbox LESS mixins
// The spec: http://www.w3.org/TR/css3-flexbox
// --------------------------------------------------
// Flexbox display
// flex or inline-flex
.flex-display(@display: flex) {
display: ~"-webkit-@{display}";
display: ~"-moz-@{display}";
@gld1982ltd
gld1982ltd / wordlist.py
Last active December 19, 2015 14:49 — forked from samuraisam/wordlist.py
random words
This file has been truncated, but you can view the full file.
import random
def random_words(num, separator='-'):
"""
Return `num`-random concatinated to each other.
They will be joined by `separator`
"""
words = []