Skip to content

Instantly share code, notes, and snippets.

@Mr-LiuDC
Mr-LiuDC / pipeline-syntax.gdsl
Last active November 19, 2024 10:15
GDSL supporting jenkins pipeline.
/**
* 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())
@xmeng1
xmeng1 / wsl2-network.ps1
Created July 14, 2019 06:50
WSL2 Port forwarding port to linux
$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;
}
@baymaxium
baymaxium / content.md
Created October 18, 2017 09:13
探索物流预测珠峰:苏宁智能运输路线技术设计

原文:CSDN大数据

↑ 点击上方蓝字关注我们,和小伙伴一起聊技术!

作者 | 俞恺、李盛强

责编 | 何永灿

来自物流的挑战

@fandean
fandean / .opt-java-8-oracle.jinfo
Last active October 18, 2020 01:44
Ubuntu安装oracle jdk alternatives和配置update-java-alternatives的脚本
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
@alsanchez
alsanchez / install_busybox.sh
Created November 23, 2015 09:42
Install busybox on the x86 Android emulator
#!/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"
@nerdalert
nerdalert / Netfilter-IPTables-Diagrams.md
Last active April 16, 2025 02:11
Linux NetFilter, IP Tables and Conntrack Diagrams

Linux NetFilter, IP Tables and Conntrack Diagrams

IPTABLES TABLES and CHAINS

IPTables has the following 4 built-in tables.

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