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 chown -R $USER ~/.npm | |
sudo chown -R $USER /usr/local/lib/node_modules |
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
APACHEUSER=`ps aux | grep -E '[a]pache|[h]ttpd' | grep -v root | head -1 | cut -d\ -f1` | |
sudo chmod -R +a "$APACHEUSER allow delete,write,append,file_inherit,directory_inherit" storage | |
sudo chmod -R +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" storage |
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 f | xargs -n 10 nkf -Lu --overwrite |
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
・シェル | |
echo "data:image/png;base64,"$(base64 ファイル名) | |
・コマンドにする | |
echo 'function datauri() { echo "data:image/png;base64,"$(base64 $1); }' >> .bash_profile | |
source .bash_profile | |
datauri ファイル名 |
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
awk '!a[$0]++' FILE |
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
https://www.gitignore.io/api/linux,osx,windows,intellij,rubymine,phpstorm,ruby,composer,bower,node,laravel,cakephp,symfony,rails,python,pycharm |
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 AUTO_INCREMENT FROM information_schema.TABLES WHERE TABLE_SCHEMA = "databaseName" AND TABLE_NAME = "tableName"; |
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
# Archiver | |
cask 'the-unarchiver' | |
# Browser | |
cask 'google-chrome' | |
# Client | |
cask 'sequel-pro' | |
cask 'tunnelblick' |
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
#検索文字列 | |
^(.*)$ | |
#置換文字列 | |
'$1' => '$1', |
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
[user] | |
name = Hoge Huga | |
email = hogehuga@example.com | |
[color] | |
ui = auto | |
[core] | |
#editor = /usr/bin/vim | |
editor = /usr/local/bin/vim | |
quotepath = false | |
[alias] |
NewerOlder