Skip to content

Instantly share code, notes, and snippets.

View tylergets's full-sized avatar

Tyler Getsay tylergets

View GitHub Profile
@Andrewpk
Andrewpk / OSX-junos_pulse_listenToMe.sh
Last active April 16, 2022 03:01
wtf juniper. Anyone else find it irritating that junos pulse services and pulse tray must always running in OS X regardless of whether or not you're currently connected? Yeah, me too. I added the following as aliases to my shell to fix this problem. Be sure to change your /Library/LaunchAgents/net.juniper.pulsetray.plist file to reflect the `Kee…
#################################################################################
# start and stop the vpn from the command line from now on with these two commands
# or rename the aliases as you see fit.
#################################################################################
alias startvpn="sudo launchctl load -w /Library/LaunchDaemons/net.juniper.AccessService.plist; open -a '/Applications/Junos Pulse.app/Contents/Plugins/JamUI/PulseTray.app/Contents/MacOS/PulseTray'"
alias quitvpn="osascript -e 'tell application \"PulseTray.app\" to quit';sudo launchctl unload -w /Library/LaunchDaemons/net.juniper.AccessService.plist"
@rosshadden
rosshadden / checkClass.sh
Created July 24, 2013 03:06
Script that takes one argument (a class id) and tells you how many seats are available for the class at University of Cincinnati.
#!/bin/bash
curl 'https://webapps2.uc.edu/scheduleofclasses/Details.asmx/Class' -H 'Pragma: no-cache' -H 'Origin: https://webapps2.uc.edu' -H 'Accept-Encoding: gzip,deflate,sdch' -H 'Host: webapps2.uc.edu' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1568.0 Safari/537.36' -H 'Content-Type: application/json; charset=UTF-8' -H 'Accept: */*' -H 'Cache-Control: no-cache' -H 'X-Requested-With: XMLHttpRequest' -H 'Cookie: __qca=P0-1621544612-1365361687310; ASP.NET_SessionId=gnsrz1rul2nvx51h4f2zblzq; webapps2uceducookie=ey5hOkc7j+t/KpNyYpKoOeYlNKHEwOQcVbv8g/JMr5HSxFjEI92jFDEib/DGPIvDXNRCeVWiP7lgUQ==; CookiesChecked=true; .ASPXAUTH=6A0499BF7BCD661E80CA972504265E9A47B8E972104A357E8BB09E3EA29D7E91A9E83E9EC27F80EE8BD798A4785B2B7A5E13C21E5F19379EB2C9F0518CC9338B3043B731C82959DC8101524738A70257E92F0B9BC0773037CD1100817828E862321B5241746AFFB3234DA4B4E4A9AFD06BF8B85B; __RequestVerificationToken_L1N0dWRlbnRJQVBSZXZpZXc_=qhB91oG/zb+WOPt