This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## /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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .sap-green { | |
| background-color: #0A3410; | |
| } | |
| .sap-green-text { | |
| color: #0A3410; | |
| } | |
| .sap-green-border { | |
| border-color: #0A3410; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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"]} ]}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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/', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // -------------------------------------------------- | |
| // 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}"; |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import random | |
| def random_words(num, separator='-'): | |
| """ | |
| Return `num`-random concatinated to each other. | |
| They will be joined by `separator` | |
| """ | |
| words = [] |