Skip to content

Instantly share code, notes, and snippets.

@m3y54m
m3y54m / terminal-proxy-settings.md
Last active September 8, 2025 21:19
Set Proxy in Terminal (Bash, CMD, PowerShell, etc.)
@yougg
yougg / proxy.md
Last active October 10, 2025 06:51
complete ways to set http/socks/ssh proxy environment variables

set http or socks proxy environment variables

# set http proxy
export http_proxy=http://PROXYHOST:PROXYPORT

# set http proxy with user and password
export http_proxy=http://USERNAME:PASSWORD@PROXYHOST:PROXYPORT

# set http proxy with user and password (with special characters)
@renkin
renkin / KeePass_URL_Overrides_for_MobaXterm.bat
Created January 4, 2018 16:12
KeePass URL Overrides for SSH Scheme using MobaXterm
cmd://"C:\Program Files (x86)\Mobatek\MobaXterm\MobaXterm.exe" -newtab "ssh {USERNAME}@{URL:RMVSCM}"
@ekreutz
ekreutz / ansible_variable_precedence.md
Last active October 2, 2025 09:48
Ansible variable precedence (order, hierarchy)
@visualskyrim
visualskyrim / modify_ulimit.yml
Last active August 18, 2022 09:27
A ansible playbook to modify ulimit
- hosts: all
become: true
tasks:
- name: configure system settings, file descriptors and number of threads
pam_limits:
domain: <--your-username-->
limit_type: "{{item.limit_type}}"
limit_item: "{{item.limit_item}}"
value: "{{item.value}}"
with_items:
@Faheetah
Faheetah / Jenkinsfile.groovy
Last active October 7, 2025 15:42
Jenkinsfile idiosynchrasies with escaping and quotes
node {
echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1'
echo 'No quotes, pipeline command in single quotes'
sh 'echo $BUILD_NUMBER' // 1
echo 'Double quotes are silently dropped'
sh 'echo "$BUILD_NUMBER"' // 1
echo 'Even escaped with a single backslash they are dropped'
sh 'echo \"$BUILD_NUMBER\"' // 1
echo 'Using two backslashes, the quotes are preserved'
sh 'echo \\"$BUILD_NUMBER\\"' // "1"
@maxivak
maxivak / 00.md
Last active May 1, 2021 13:54
Teamcity install on Centos

Teamcity install on Centos