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
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock:ro -v /var/lib/docker:/var/lib/docker martin/docker-cleanup-volumes |
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/sh | |
echo "Traveling back in time..." | |
date 0318125013 | |
echo "Opening Sketch..." | |
open -a Sketch | |
echo "Traveling to present time..." | |
ntpdate -u time.apple.com | |
echo "Done..." | |
exit 0 |
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 | |
branch_name=$(git branch | sed -e '/^[^*]/d' -e "s/* \(.*\)/\1/") | |
echo "Removing old cordova directory" | |
rm -rf cordova | |
echo "Creating cordova app to ${branch_name}..." | |
echo "WARNING: say 'no' to the next prompts" | |
ember generate cordova-init "my.company.${branch_name}" --platform=android |
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
#include <stdio.h> | |
int main(int argc, char const *argv[]) { | |
int a, b, temp; | |
scanf("%d", &a); | |
scanf("%d", &b); | |
temp = a; | |
a = b; | |
b = temp; | |
printf("\n Agora a=%d e b=%d\n", a, b); |
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 Ember from 'ember'; | |
import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin'; | |
export default Ember.Route.extend(AuthenticatedRouteMixin, { | |
session: Ember.inject.service('session') | |
beforeModel() { | |
const userType = this.get('session.authenticated.type'); | |
if(userType !== 'admin') { | |
this.tranistionTo('login') | |
} |
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
/tmp $> nvm install iojs [ ruby-2.2.2p95 ] | |
######################################################################## 100,0% | |
WARNING: checksums are currently disabled for io.js | |
Now using io.js v3.0.0 (npm v2.13.3) | |
/tmp $> npm install -g node-sass [ ruby-2.2.2p95 ] | |
/home/duke/.nvm/versions/io.js/v3.0.0/bin/node-sass -> /home/duke/.nvm/versions/io.js/v3.0.0/lib/node_modules/node-sass/bin/node-sass | |
> [email protected] install /home/duke/.nvm/versions/io.js/v3.0.0/lib/node_modules/node-sass | |
> node scripts/install.js |
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
require 'celluloid/current' | |
require 'rest-client' | |
require 'benchmark' | |
class ModelX | |
attr_accessor :url | |
def initialize(url) | |
@url = url | |
end | |
end |
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
cd /tmp | |
# Theme Arc | |
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/Horst3180/xUbuntu_15.04/ /' >> /etc/apt/sources.list.d/arc-theme.list" | |
wget http://download.opensuse.org/repositories/home:Horst3180/xUbuntu_15.04/Release.key | |
sudo apt-key add - < Release.key | |
# Nuvola | |
sudo sh -c "echo 'deb https://tiliado.eu/nuvolaplayer/repository/deb/ vivid stable' >> /etc/apt/sources.list.d/tiliado-nuvolaplayer.list" | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 40554B8FA5FE6F6A |
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
DFILE="go$VERSION.linux-amd64.tar.gz" | |
wget https://storage.googleapis.com/golang/$DFILE -O /tmp/go.tar.gz | |
tar -C /usr/local -xzf /tmp/go.tar.gz |
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
{ | |
"processed": 587, | |
"failed": 21, | |
"jobs": { | |
"sync": [ | |
{ | |
"message": { | |
"args": 101, | |
"at": 1.431663506e+09, |