Skip to content

Instantly share code, notes, and snippets.

View kaosf's full-sized avatar
🏠
Working from home

ka kaosf

🏠
Working from home
View GitHub Profile
ll -dF $PWD/**/* > files-directories.txt
cat files-directories.txt | grep '^d' -v > files.txt
cat files.txt | grep '^-rwx' > executable-files.txt
cat executable-files.txt | awk '{print $9}' > executable-filenames.txt
cat executable-filenames.txt | sed 's/\*//' -i executable-filenames.txt
cat executable-filenames.txt | xargs chmod -x
chmod +x script/rails
rm files-directories.txt files.txt executable-files.txt executable-filenames.txt
@kaosf
kaosf / shirasagi-setup.sh
Last active August 29, 2015 14:07
Shirasagi https://github.com/shirasagi/shirasagi installation commands for Ubuntu 14.04
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt-get -y update
sudo apt-get -y install git curl build-essential \
zlib1g-dev libssl-dev libreadline6-dev libffi-dev \
libxslt1-dev libxml2-dev \
libldap2-dev libsasl2-dev \
imagemagick libmagickwand-dev \
mongodb-org
git clone https://github.com/sstephenson/rbenv.git $HOME/.rbenv
for i in \
lib/tasks/yard.rake \
lib/tasks/cms/role.rake \
lib/tasks/cms/page.rake \
lib/tasks/ss/site.rake \
lib/tasks/ss/crypt.rake \
lib/tasks/ss/user.rake \
lib/tasks/ss/deploy.rake \
lib/tasks/ss/update.rake \
lib/tasks/unicorn.rake \
## List up VMs
VBoxManage list vms

20140823 プリキュアハッカソン作業

Clojarsサインアップ.

git clone git@github.com:kaosf/clocure.git; cd clocure

gpg --gen-key.名前をkaosfでメールアドレスをka.kaosf-=at=-gmail.comにした.パスフレーズ空にしたんだけどこれまずいのかどうかもよく分からん.

ランダムな値が必要やねんでと言われたのでfind / > /dev/nullしたりブラウザ操作したりした.

# ref. http://qiita.com/joker1007/items/9c114a37560d6a29fe81
ctags-exuberant --langmap=RUBY:.rb --exclude="*.js" --exclude=".git*" -R .
#ctags --langmap=RUBY:.rb --exclude="*.js" --exclude=".git*" -R .
@kaosf
kaosf / Vagrantfile
Last active August 29, 2015 14:05
Vagrantfile for rsync Rails project between host and guest
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# ...
# ref.
# http://www.ubuntuupdates.org/ppa/ubuntu_mozilla_security
# https://launchpad.net/~ubuntu-mozilla-security/+archive/ppa
sudo add-apt-repository ppa:ubuntu-mozilla-security/ppa
# ref. http://askubuntu.com/questions/307/how-can-ppas-be-removed
#sudo add-apt-repository --remove ppa:ubuntu-mozilla-security/ppa
sudo aptitude update
sudo aptitude safe-upgrade
alias ctags=/usr/bin/ctags
alias emacs-ctags=$HOME/local/bin/ctags
@kaosf
kaosf / Gemfile
Created July 24, 2014 07:01
cron + curl with only Ruby
source 'https://rubygems.org'
gem 'clockwork'