Skip to content

Instantly share code, notes, and snippets.

View snallami's full-sized avatar

Suresh Nallamilli snallami

  • Los angeles, CA
View GitHub Profile
@snallami
snallami / gist:0670546d66dfb2ed5219
Last active December 17, 2015 05:57
my booksmarks
1) http://techblog.netflix.com/2015/11/linux-performance-analysis-in-60s.html
2) Jenkins SSH slaves
https://docs.google.com/document/d/1Qq-EkiUnC5x8BuM4AZWo-yRUQTrkberzz8JfdCM6yuc/edit
3) http://techblog.roomkey.com/posts/too-many-files.html
1) Overide entry point of docker image
docker run -ti --entrypoint=/bin/bash my/image -s
Set-ExecutionPolicy Unrestricted
# Jenkins plugin will dynamically pass the server name and vm name.
# If your jenkins server is configured for security , make sure to edit command for how slave executes
# You may need to pass credentails or secret in the command , Refer to help by running "java -jar slave.jar --help"
$jenkinsserverurl = $args[0]
$vmname = $args[1]
# Download the file to a specific location
Write-Output "Downloading zulu SDK "
Install .NET from command line
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All
@snallami
snallami / gist:06b3d28078f769eb6c8523ee7724869a
Created August 2, 2016 17:29
Copy jenkins config.xml only
rsync -am --include='config.xml' --include='*/' --exclude='*' Source/ Destination/
@snallami
snallami / gist:604e9a62ecc7774b0d1631dd5e4ced91
Last active August 31, 2016 01:23
Configure ssh server on port 22 and 443
1) Edit /etc/ssh/sshd_config
2) Add below so that sshd listens on both port 22 and 443
Port 22
Port 443
3) Load config and restart service
sudo service sshd reload
sudo service sshd restart
@snallami
snallami / gist:8ee9514fb430eeff1aa7463994ffc54f
Last active September 1, 2016 23:17
Force git to use https:// instead of git://
git config --global url."https://github.com/".insteadOf git@github.com
http://linuxaria.com/howto/linux-memory-management
https://linuxaria.com/howto/understanding-the-top-command-on-linux
@snallami
snallami / README.md
Created January 31, 2017 21:34 — forked from dnozay/_Jenkins+Script+Console.md
jenkins groovy scripts collection.
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="443" />
<Connector protocol="org.apache.coyote.http11.Http11Protocol"
socketBuffer="500000"
tcpNoDelay="true"
port="443" maxThreads="200"
scheme="https" secure="true" SSLEnabled="true"
keystoreFile="conf\tomcatNEW.keystore" keystorePass="changeit"