This file contains 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
require 'aws-sdk' | |
require 'thread' | |
require 'pathname' | |
require 'logger' | |
class S3BulkUploader | |
attr_reader :thread_count, | |
:path, | |
:relative_path_from, | |
:region, |
This file contains 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
SELECT column FROM table1 WHERE EXISTS (SELECT column2 FROM table2 WHERE table1.column1 = table2.column2.id); |
This file contains 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
sudo add-apt-repository ppa:ubuntu-wine/ppa | |
sudo apt-get update | |
sudo apt-get install wine1.8 | |
sudo apt-get install wine-mono4.5.6 wine-gecko2.40 | |
sudo apt-get install unrar | |
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks | |
chmod +x winetricks | |
winetricks d3dx9 |
- install xcode and accept license
- install brew -
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install wget
brew install vim
brew install git
- install nvm
- generate ssh keys
brew install watchman
brew install flow
This file contains 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
SprocketsStatsWebpackPlugin.prototype.apply = function(compiler) { | |
var customStatsKey = this._customStatsKey; | |
var blacklistRegex = this._ignore; | |
var sprockets = {}; | |
compiler.plugin('this-compilation', function(compilation) { | |
compilation.plugin('optimize-assets', function(assets, callback) { | |
Object.keys(assets).forEach(function(file) { | |
var asset; | |
var content; |
This file contains 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
/** | |
* Script based on @roman01la's webpack-sri. | |
* | |
* https://github.com/roman01la/webpack-sri | |
* | |
*/ | |
'use strict'; | |
var WebpackStats = require('webpack/lib/Stats'); |
This file contains 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
ok: [127.0.0.1] => { | |
"var": { | |
"docker_started_containers": { | |
"ansible_facts": { | |
"docker_containers": [ | |
{ | |
"Id": "49d5004432161235d759d9b92866e9e7cb07e74d5a7f19219d1ba26d6bcdc7c1", | |
"Warnings": null | |
} | |
] |
This file contains 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
FROM williamyeh/ansible:ubuntu14.04 | |
MAINTAINER mikechau | |
RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d | |
COPY test_inventories/.insecure_keys/test_key.rsa.pub /home/root/.ssh/authorized_keys | |
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y openssh-server locales | |
RUN mkdir -p /var/run/sshd |
This file contains 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
/** | |
* jQuery plugin for Sortable | |
* @author RubaXa <[email protected]> | |
* @license MIT | |
*/ | |
(function (factory) { | |
"use strict"; | |
if (typeof define === "function" && define.amd) { | |
define(["jquery"], factory); |