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
{ | |
"apiVersion": "v1", | |
"items": [ | |
{ | |
"apiVersion": "v1", | |
"kind": "ImageStream", | |
"metadata": { | |
"creationTimestamp": null, | |
"labels": { | |
"app": "python" |
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
for filename in *.c ; do | |
mv $filename ${filename%.c}.cpp; | |
done |
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 log --committer="COMMITER NAME" --name-only --oneline > commiter.log | |
grep -v '^[0-9a-zA-Z]\{7\}' commiter.log > commister-file.log | |
sort commiter-file.log | uniq > result.log | |
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
ip addr add 10.1.2.3/24 dev eth2 | |
ip addr add 10.1.2.4/24 dev eth2 | |
ip addr add 10.1.2.5/24 dev eth2 | |
ip addr add 10.1.2.6/24 dev eth2 | |
ip addr add 10.1.2.7/24 dev eth2 | |
ip addr add 10.1.2.8/24 dev eth2 | |
ip addr add 10.1.2.9/24 dev eth2 |
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
import java.util.regex.Pattern; | |
public class Matcher { | |
private static final Pattern SIMPLE_URL_PATTERN = | |
Pattern.compile("(\\w+://)|(git@)(.+@)*([\\w\\d\\.]+)(:[\\d]+){0,1}/*(.*)"); | |
public static boolean isValid(String url) { | |
return SIMPLE_URL_PATTERN.matcher(url).matches(); | |
} |
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
deleteline1="%{?scl:%scl_prefix}build" | |
deleteline2="nodejs010-build" | |
deleteline3="ruby193-build" | |
find . -name "*.spec" -type f -print0 | xargs -0 sed -i -e /$deleteline1/d | |
find . -name "*.spec" -type f -print0 | xargs -0 sed -i -e /$deleteline2/d | |
find . -name "*.spec" -type f -print0 | xargs -0 sed -i -e /$deleteline3/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
#!/bin/bash | |
dd if=/dev/zero of=floppy2.img bs=512 count=2880 | |
as test2.S -o test2.o | |
ld -Ttext 0x7c00 --oformat=binary test2.o -o test2.bin | |
dd if=test2.bin of=floppy2.img | |
qemu-kvm -fda floppy2.img -boot a -no-fd-bootchk |
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
# http://d.hatena.ne.jp/haru-s/20110405/1302006637 に答えがそのままあるが、一応メモ | |
# github fork 追従 で見つけた | |
$ git remote | |
origin | |
# 本家のリモートリポジトリの短縮名を登録する. | |
$ git remote add github git://github.com/liquidz/misaki.git | |
# 本家の更新をローカルで反映させる. |
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
# pwd | |
/usr/share/openshift/examples | |
# find db-templates xpaas-templates quickstart-templates -type f | gawk -F'[/.]' '{print $1 " \t " $2}' | |
db-templates mongodb-ephemeral-template | |
db-templates mongodb-persistent-template | |
db-templates mysql-ephemeral-template | |
db-templates mysql-persistent-template | |
db-templates postgresql-ephemeral-template | |
db-templates postgresql-persistent-template | |
xpaas-templates amq6-persistent |
OlderNewer