Skip to content

Instantly share code, notes, and snippets.

View daxgames's full-sized avatar

Dax T Games daxgames

View GitHub Profile
@daxgames
daxgames / Upstream_Issues.txt
Last active December 5, 2019 18:08
Cmder Upstream Issues
Hey there,
Cmder uses ConEmu as terminal emulator, if you are experiencing a problem or have a question, please open an issue over at https://github.com/Maximus5/ConEmu
Thank you! :-)
# Insrtall YADR
sh -c "`curl -fsSL https://raw.githubusercontent.com/skwp/dotfiles/master/install.sh`"
# macvim with Lua
brew install macvim --with-lua
# vim with Lua
brew install vim --with-lua --with-override-system-vi --with-gettext --with-tcl
@daxgames
daxgames / .bashrc
Created October 6, 2018 21:24 — forked from thewyzard44/.bashrc
chefdk + chruby in WSL/bash
umask 022
export PATH=~/bin:`echo $PATH | sed 's|:/bin:|&/opscode/chefdk/bin:/mnt/c/Users/Sean/AppData/Local/chefdk/gem/ruby/2.4.0/bin:/opscode/chefdk/embedded/bin:|'`
@daxgames
daxgames / wsl_chefdk.ps1
Created October 6, 2018 21:23 — forked from bdwyertech/wsl_chefdk.ps1
Windows Subsystem for Linux - ChefDK
# Update to Latest Windows 10 Spring Refresh
# Install WSL
# Get Ubuntu installed
wsl.exe
# Install ChefDK deb package
@daxgames
daxgames / jenkins-container-killa.sh
Last active August 13, 2018 12:25
kill all docker containers except specific named containers
for i in `docker ps -a |grep -v "jenkins_master\|jenkins_httpd" |awk '{print $1}'`; do docker rm -f $i; done
@daxgames
daxgames / geet_methods_and_properties.groovy
Created August 10, 2018 13:21
Methods to get properties and methods of a Groovy object
def printMethodsOf(thing) {
return thing.metaClass.methods*.name.sort().unique().each { methodName -> println methodName }
}
def printPropertiesOf(thing) {
return thing.metaClass.properties.each { foundProperty -> println foundProperty.name }
}
def propertiesOf(thing) {
return thing.metaClass.properties*.name.sort().unique()
@daxgames
daxgames / find-dead-executors.groovy
Created August 10, 2018 13:15
Jenkins script to find dead executors and remove them.
// get handle to build output
def config = new HashMap()
def bindings = getBinding()
config.putAll(bindings.getVariables())
def out = config['out']
for (aSlave in hudson.model.Hudson.instance.slaves) {
// check if executor is dead
execList = aSlave.getComputer().getExecutors()
for( exec in execList ) {
@daxgames
daxgames / kill_jenkins_slaves.groovy
Created August 10, 2018 13:02
Kill All Jenkins Slaves
hudson.model.Hudson.instance.slaves.each {
if(it.getComputer().isOffline()) {
println "Deleting ${it.name}"
it.getComputer().doDoDelete()
}
}
println "Done."
@daxgames
daxgames / user-profile.cmd
Created September 16, 2017 05:38 — forked from lukescammell/user-profile.cmd
This enables portable SSH keys in cmder, enabling you to have full SSH access using cmder portably on a USB (for example). Please note that when you ssh-keygen, it will still default to %USERPROFILE%, so you will either have to change the path on generation, or manually move the keys to your %CMDER_ROOT%\config\.ssh directory.
:: use this file to run your own startup commands
:: use in front of the command to prevent printing the command
:: call "%GIT_INSTALL_ROOT%/cmd/start-ssh-agent.cmd"
:: set "PATH=%CMDER_ROOT%\vendor\whatever;%PATH%"
:: LS 2017-09-12_17.35.11
:: ======================
:: Copied from %CMDER_ROOT%\vendor\init.bat