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
ls -1tr | head -n -10 | xargs -d '\n' rm -f |
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 User FROM mysql.user; |
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
#!/usr/bin/env ruby | |
class Ui | |
CLEAR = `tput sgr0` | |
BOLD = `tput bold` | |
RED =`tput setaf 1` | |
YELLOW =`tput setaf 3` | |
def self.error(message) |
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
# encoding: utf-8 | |
require 'bundler' | |
require 'bundler/setup' | |
require 'berkshelf/thor' | |
require 'fileutils' | |
require 'json' | |
require 'chef/encrypted_data_bag_item' | |
require 'chef/knife' | |
require 'tempfile' |
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
# see if you have any keys already there if not do the next line, else skip to copy | |
cd ~/.ssh | |
# generate keys | |
ssh-keygen -t rsa -C "your_email@example.com" | |
# Option 1: copy keys via ssh-copy-id script | |
ssh-copy-id <username>@<host> | |
# Option 2: copy keys manually |
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
rvm --rvmrc --create {ruby_version}@{project_name} |
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
ssh vagrant@127.0.0.1 -p 2222 | |
vagrant@127.0.0.1\'s password: # pasword is vagrant |
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
find . -type d -name .svn -exec rm -rf {} \; |
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
#!/bin/bash | |
bold=`tput bold` | |
black=`tput setaf 0` # 0 Black | |
red=`tput setaf 1` # 1 Red | |
green=`tput setaf 2` # 2 Green | |
yellow=`tput setaf 3` # 3 Yellow | |
blue=`tput setaf 4` # 4 Blue | |
magenta=`tput setaf 5` # 5 Magenta | |
cyan=`tput setaf 6` # 6 Cyan |