0x0078E498b87A1E683A7A7CdF5E4EDfEb463dA763
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
# export to CSV file | |
psql -d <database> -c "COPY (SELECT * FROM <table_name>) TO '/full/path/to.csv' WITH CSV" | |
# import from CSV | |
psql -d <database> -c "COPY <table_name> FROM '/full/path/to.csv' DELIMITER ',' CSV" | |
# import SQL file | |
psql -d <database> -f <filename> |
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
# Creating an engine, RefineryCMS 2.0.9 | |
rails generate refinery:engine home_image title:string description:text image:image |
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
source "https://rubygems.org" | |
#ruby "1.9.3" | |
gem "rails", "3.2.14" | |
gem "pg" | |
gem "unicorn" | |
group :development do | |
gem "heroku_san" |
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 . -name \.AppleDouble -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
git branch --merged | grep -v "\*" | xargs -n 1 git branch -d |
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
cache = Dalli::Client.new | |
cache.flush |
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
-Go to the starting point of the project | |
>> git checkout origin master | |
-fetch all objects | |
>> git fetch origin | |
-Make the branch from the tag | |
>> git branch new_branch tag_name | |
-Checkout the branch | |
>> git checkout new_branch | |
-Push the branch up | |
>> git push origin new_branch |
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
'use strict' | |
const _ = require('underscore') | |
const fs = require('fs') | |
const path = require('path') | |
const readDir = require('readdir') | |
const templateStore = require(path.join(__dirname, '/../templates/store')) | |
const walk = require('walkdir') | |
const visiblePageRe = /^\d+-/ |
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/node | |
const fs = require('fs') | |
const path = require('path') | |
const args = process.argv | |
if (!args && args[2]) { | |
process.exit(1) | |
} |
OlderNewer