Skip to content

Instantly share code, notes, and snippets.

@JayRaparla
JayRaparla / gist:371efdbc6966a5374f4b75cc943cb375
Created May 23, 2018 15:04 — forked from ehuynh/gist:2572398
Start and Stop Jenkins on OSX
# start
sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist
# stop
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
@JayRaparla
JayRaparla / clone_remote_branch.md
Created May 22, 2018 20:31 — forked from ff6347/clone_remote_branch.md
clone remote branch with git
@JayRaparla
JayRaparla / Regex.java
Created January 15, 2017 00:43 — forked from rhyskeepence/Regex.java
Simplify the insanity of Regex in Java
import com.googlecode.totallylazy.Callable1;
import com.googlecode.totallylazy.Option;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import static com.googlecode.totallylazy.Option.none;
import static com.googlecode.totallylazy.Option.some;
import static com.googlecode.totallylazy.numbers.Numbers.range;
@JayRaparla
JayRaparla / jvbscript.vbs
Created January 11, 2017 18:00
vbscript useful statements and examples
#Use microsoft text to speech api.
Set Sapi=Wscript.CreateObject("SAPI.spVoice")
Sapi.speak "Your apk is ready"
@JayRaparla
JayRaparla / batch.bat
Last active April 5, 2024 09:30
batch scripts fundamentals and examples
## list available environment variables
SET
#Useful dynamic variables
%CD% %DATE% %TIME% %RANDOM% %ERRORLEVEL% %CMDEXTVERSION% %CMDCMDLINE% %HIGHESTNUMANODENUMBER%
#The environmental variable %ERRORLEVEL% contains the return code of the last executed program or script.
IF %ERRORLEVEL% NEQ 0 (
REM do something here to address the error
)
# To execute a follow-on command after sucess, we use the && operator:
@JayRaparla
JayRaparla / init.coffee
Last active December 6, 2020 11:01
Atom's init.coffee file with interesting commands for frequent use
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
atom.workspace.observeTextEditors (editor) ->
editor.onDidSave ->