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 ls-remote --tags origin | cut -f 2 | grep -v {} | grep '1.0.0..*' | sed "s/refs\/tags\///g" | xargs git push --delete origin |
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/sh | |
archtectureStr=`lipo -info $1 | awk '$0 = substr($0, index($0, "are: ") + 5)'` | |
archtectures=(`echo $archtectureStr`) | |
tempFileStr="" | |
for i in `seq 1 ${#archtectures[@]}` | |
do |
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 i in `git branch -r | grep -v HEAD | grep -v master | sed 's:origin/::g'` | |
do | |
git checkout --track -b $i origin/$i | |
done | |
git checkout master |
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
function gi() { curl https://www.gitignore.io/api/$@ ;} | |
function rails_new(){ | |
while read -p "Please enter project name: " railsName ; do | |
if [ -n "$railsName" ] ; then | |
break | |
fi | |
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
def assertResults = prev.assertionResults; | |
def response = prev.responseDataAsString | |
def statusCode = prev.responseCode | |
def postBody | |
if(response.contains('ERROR') || assertResults.any{it.isFailure()} || statusCode != '200') { | |
postBody = ['body':'Error !'] | |
}else { | |
postBody = ['body':'Success !'] |
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
def response = prev.getResponseDataAsString() | |
def isLoggedin = false | |
if(response.contains("ログインしています")){ | |
isLoggedin = true | |
} | |
vars.put('script.isLoggedin', isLoggedin.toString()) |
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
<properties> | |
<root.basedir>${project.parent.basedir}</root.basedir> | |
</properties> | |
<profiles> | |
<profile> | |
<id>conf</id> | |
<build> | |
<plugins> |
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
powershell Set-ExecutionPolicy RemoteSigned | |
powershell iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')) | |
powershell Set-ExecutionPolicy Restricted | |
set PATH=%PATH%;C:\Chocolatey\bin; | |
call cinst .\packages.config | |
pause |
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
public class EclipseJavaMerger { | |
private final JMerger merger = new JMerger(buildMergeRule()); | |
public String merge(String source, String target) { | |
try { | |
if (target == null) { | |
return source; | |
} | |
merger.setSourceCompilationUnit(merger.createCompilationUnitForContents(source)); |
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
qiita_user: user_name | |
qiita_display_count: 5 | |
default_asides:[custom/asides/qiita.html] |
NewerOlder