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 | |
for repo in "$@"; do | |
if [ -d "$repo/.git" ]; then | |
echo "リポジトリ: $repo" | |
# ブランチの更新順を取得 (最新50件) | |
branches=$(git --git-dir="$repo/.git" --work-tree="$repo" for-each-ref --sort=-committerdate --format='%(refname:short)' refs/heads/ --count=50) | |
for branch in $branches; do |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>オフラインエディタ</title> | |
<style> | |
/* テキストエリアがリサイズ可能であることを示す */ | |
textarea { | |
resize: vertical; |
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
vagrant@ubuntu:/tmp$ docker run -d --name=test -e MYSQL_DATABASE=db -e MYSQL_ROOT_PASSWORD=pass -p 3307:3306 mysql | |
83a04cde686930ad72df76df5d2662ed927c901867c4e4562b18841a49140aa3 | |
vagrant@ubuntu:/tmp$ docker exec test cat /var/lib/mysql/db/db.opt | |
default-character-set=latin1 | |
default-collation=latin1_swedish_ci |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
[root@ip-10-120-94-184 php55]# env LANG=C yum install php55u-pecl-jsonc.x86_64 | |
Loaded plugins: priorities, update-motd, upgrade-helper | |
49 packages excluded due to repository priority protections | |
Resolving Dependencies | |
--> Running transaction check | |
---> Package php55u-pecl-jsonc.x86_64 0:1.3.5-1.ius.centos6 will be installed | |
--> Processing Dependency: /usr/bin/pecl for package: php55u-pecl-jsonc-1.3.5-1.ius.centos6.x86_64 | |
--> Processing Dependency: /usr/bin/pecl for package: php55u-pecl-jsonc-1.3.5-1.ius.centos6.x86_64 | |
--> Running transaction check | |
---> Package php55u-pear.noarch 1:1.9.4-20.ius.centos6 will be installed |
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
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "base" | |
config.vm.box_url = "http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_centos-6.5_chef-provisionerless.box" | |
config.vm.network "forwarded_port", guest: 80, host: 8080 | |
config.vm.network "private_network", ip: "192.168.33.10" | |
config.vm.synced_folder ".", "/var/www/html" |
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
[vagrant@localhost setup]$ gem install chef --version 11.10 | |
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) | |
bad response Service Unavailable 503 (https://api.rubygems.org/api/v1/dependencies?gems=highline) | |
[vagrant@localhost setup]$ gem install chef --version 11.10 | |
^CERROR: Interrupted | |
[vagrant@localhost setup]$ gem install chef --version 11.10 | |
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) | |
bad response Service Unavailable 503 (https://api.rubygems.org/api/v1/dependencies?gems=puma) | |
[vagrant@localhost setup]$ gem install chef --version 11.10 |
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
mysql -uroot dbname -S `ls -1t /var/folders/*/*/-TMP-/*/tmp/mysql.sock |head -1` |
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
# dbserver から new_serverへのコピー | |
$ mysqldump -t -n --compact -hdbserver -uuser_id \ | |
db_name table_name -w 'row_id = 111' \ | |
| mysql -hnew_server -uuser_id | |
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
$ mysqldump -t -n --compact -hdbserver -uuser_id \ | |
db_name table_name -w 'row_id = 111' | |
-- | |
-- Not dumping tablespaces as no INFORMATION_SCHEMA.FILES (ry | |
-- | |
INSERT INTO `table_name` VALUES (111,0,0,0); |
NewerOlder