- Related Setup: https://gist.github.com/hofmannsven/6814278
- Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
- Interactive Beginners Tutorial: http://try.github.io/
- Git Cheatsheet by GitHub: https://services.github.com/on-demand/downloads/github-git-cheat-sheet/
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
""" | |
Useful Python scripts and tips | |
""" |
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
### Useful Bash command and tips ### |
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
awk '{sub($1 FS,"" );print}' => remove 1st field and take the remaining. | |
awk '{print $NF}' => return last field | |
awk '{print ( $(NF-1) )}' => return 2nd to last field |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Resources": { | |
"MyQueue": { | |
"Properties": { | |
"QueueName": "MyQueue.fifo", | |
"FifoQueue": true, | |
"ContentBasedDeduplication": true | |
}, | |
"Type": "AWS::SQS::Queue" |
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
rename ipa to zip and unzip it | |
rm -f embedded.mobileprovision and _CodeSign folder | |
cp ~/Library/MobileDevice/Profiles/DiscoverEntProdJul2019.mobileprovision Payload/App.app/embedded.mobileprovision | |
cd Payload | |
codesign -d --entitlements - *.app > entitlements.plist | |
cat entitlements.plist | |
cd .. | |
mv Payload/entitlements.plist . | |
codesign -f -s "iPhone Distribution: Company Cert" --entitlements entitlements.plist Payload/App.app | |
KEYCHAIN_PASSWD='xyz' |
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
secretText = new StringCredentialsImpl( | |
CredentialsScope.GLOBAL, | |
"secret-text", | |
"Secret Text Description", | |
Secret.fromString("some secret text goes here")) | |
file = new File("/path/to/some/file") | |
noFileItem = [ getName: { return "" } ] as FileItem | |
FileCredentailsImpl can take a file from a do | |
secretFile = new FileCredentialsImpl( |
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
import jenkins.model.* | |
import com.cloudbees.plugins.credentials.* | |
import com.cloudbees.plugins.credentials.common.* | |
import com.cloudbees.plugins.credentials.domains.* | |
import com.cloudbees.plugins.credentials.impl.* | |
import com.cloudbees.jenkins.plugins.sshcredentials.impl.* | |
import org.jenkinsci.plugins.plaincredentials.* | |
import org.jenkinsci.plugins.plaincredentials.impl.* | |
import hudson.util.Secret | |
import hudson.plugins.sshslaves.* |
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
curl -X POST 'https://<user>:<api-key>@jenkins_url/createItem?name=job_name' --header "Content-Type: application/xml" -d @config.xml |
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
npm list -g --depth 0 |