原文:CSDN大数据
↑ 点击上方蓝字关注我们,和小伙伴一起聊技术!
作者 | 俞恺、李盛强
责编 | 何永灿
来自物流的挑战
/** | |
* JENKINS_HOST/job/pipeline-job/pipeline-syntax/gdsl | |
* https://gist.github.com/Mr-LiuDC/8a1fbe27e8fbd42361185b06085ef4c3 | |
* | |
* All pipeline steps can be found here: https://www.jenkins.io/doc/pipeline/steps/ | |
*/ | |
// The global script scope | |
def ctx = context(scope: scriptScope()) |
$remoteport = bash.exe -c "ifconfig eth0 | grep 'inet '" | |
$found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'; | |
if( $found ){ | |
$remoteport = $matches[0]; | |
} else{ | |
echo "The Script Exited, the ip address of WSL 2 cannot be found"; | |
exit; | |
} |
原文:CSDN大数据
↑ 点击上方蓝字关注我们,和小伙伴一起聊技术!
作者 | 俞恺、李盛强
责编 | 何永灿
来自物流的挑战
name=opt-java-8-oracle | |
alias=opt-java-8-oracle | |
priority=300 | |
section=non-free | |
jre ControlPanel /opt/jdk1.8.0_91/jre/bin/ControlPanel | |
jre java /opt/jdk1.8.0_91/jre/bin/java | |
jre javaws /opt/jdk1.8.0_91/jre/bin/javaws | |
jre jcontrol /opt/jdk1.8.0_91/jre/bin/jcontrol | |
jre jjs /opt/jdk1.8.0_91/jre/bin/jjs |
1. Setup a project | |
2. Add groovy SDK support: | |
https://www.bonusbits.com/wiki/HowTo:Add_Groovy_SDK_to_IntelliJ_IDEA | |
3. Download http://(yourjenkinsurl)/job/(yourpipelinejob)/pipeline-syntax/gdsl | |
- this will give you the .gdsl file - download this to the src folder of your project. | |
4. Finally follow this step - right click on the src folder -> Mark directory as -> Sources Root |
#!/bin/bash | |
wget "http://www.busybox.net/downloads/binaries/latest/busybox-i486" -O /tmp/busybox | |
adb push /tmp/busybox /data/data/busybox | |
adb shell "mount -o remount,rw /system && mv /data/data/busybox /system/bin/busybox && chmod 755 /system/bin/busybox && /system/bin/busybox --install /system/bin" |
1) Filter Table
Filter is default table for iptables. So, if you don’t define you own table, you’ll be using filter table. Iptables’s filter table has the following built-in chains.
git config --global https.proxy http://127.0.0.1:1080 | |
git config --global https.proxy https://127.0.0.1:1080 | |
git config --global --unset http.proxy | |
git config --global --unset https.proxy | |
npm config delete proxy |