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
rwx = 111 in binary = 7 (read/write/execute) | |
rw- = 110 in binary = 6 (read/write) | |
r-x = 101 in binary = 5 (read/execute) | |
r-- = 100 in binary = 4 (read) | |
wx- = 011 in binary = 3 (write/execute) | |
w-- = 010 in binary = 2 (write) | |
x-- = 001 in binary = 1 (execute) | |
a = all, o = others, g = group, u = user | |
r = read, w = write, x = execute, | |
X = special execute, s = setuid/gid, t = sticky |
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
$ git clone --mirror [email protected]/upstream-repository.git | |
$ cd upstream-repository.git | |
# Delete the open pull if necessary | |
git show-ref | cut -d' ' -f2 | grep 'pull-request' | xargs -L1 git update-ref -d | |
$ git push --mirror [email protected]/new-location.git |
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
/etc/xinetd.d/x11vnc | |
service x11vnc | |
{ | |
port = 5900 | |
type = UNLISTED | |
socket_type = stream | |
protocol = tcp | |
wait = no | |
user = jenkins | |
server = /usr/bin/x11vnc |
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
# Getting project version from pom.xml and save the version to a file | |
mvn com.smartcodeltd:release-candidate-maven-plugin:LATEST:version \ | |
-DoutputTemplate="PROJECT_VERSION={{ version }}" \ | |
-DoutputUri="file://\${project.basedir}/version.properties" | |
#Print project version | |
mvn -q -N org.codehaus.mojo:exec-maven-plugin:1.3.1:exec \ | |
-Dexec.executable='echo' \ | |
-Dexec.args='${project.version}' | |
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
# update entitlement and query entitlement and query provisioning profile | |
/usr/libexec/PlistBuddy -c 'Set :signingStyle manual' exportOptions.plist | |
/usr/libexec/PlistBuddy -c 'Add :signingStyle string manual' exportOptions.plist | |
/usr/libexec/PlistBuddy -c "Delete :provisioningProfiles" exportOptions.plist | |
/usr/libexec/PlistBuddy -c "Add :provisioningProfiles:com.proteus.apps.proteus-mobile-gsu string fsdffsaf-sdf-Distribution-dsfads" exportOptions.plist | |
codesign -d --entitlements - "Payload/my.app/" | |
security cms -D -i "Payload/my.app/embedded.mobileprovision" | |
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
# List service | |
adb shell dumpsys -l | |
# Turn on bluetooth | |
adb shell service call bluetooth_manager 6 | |
adb shell dumpsys bluetooth_manager | |
# Wake up device ${UDID} if the screen is off | |
adb -s ${UDID} shell dumpsys power | grep "Display Power: state=ON" | xargs -0 test -z && adb -s ${UDID} shell input keyevent 26 |
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
global | |
chroot /var/lib/haproxy | |
crt-base /etc/pki/tls/certs | |
daemon | |
group haproxy | |
log 127.0.0.1 local0 | |
maxconn 2000 | |
pidfile /var/run/haproxy.pid | |
stats socket /var/lib/haproxy/stats | |
tune.ssl.default-dh-param 2048 |
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 | |
# Copyright (c) 2011 Float Mobile Learning | |
# http://www.floatlearning.com/ | |
# | |
# Extended by Ronan O Ciosoig January 2012 | |
# | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining | |
# a copy of this software and associated documentation files (the "Software"), |
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
openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 365 -out certificate.pemcopy to clipboard | |
openssl x509 -text -noout -in certificate.pemcopy to clipboard | |
openssl pkcs12 -inkey key.pem -in certificate.pem -export -out certificate.p12copy to clipboard | |
openssl pkcs12 -in certificate.p12 -noout -info | |
openssl pkcs12 -in publicAndprivate.pfx -nocerts -out privateKey.pem | |
openssl pkcs12 -in publicAndprivate.pfx -clcerts -nokeys -out publicCert.pem | |
openssl rsa -in privateKey.pem -out private.pem | |
Run the following command to export the private key: openssl pkcs12 -in certname.pfx -nocerts -out key.pem -nodes | |
Run the following command to export the certificate: openssl pkcs12 -in certname.pfx -nokeys -out cert.pem |
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
job ("generated.job") { | |
readFileFromWorkspace('your_csv_file.csv').eachLine { line -> | |
line.split(',').each { value -> | |
steps { | |
shell ("echo 'running my shell ${value}'") | |
} | |
} | |
} | |
} |