Skip to content

Instantly share code, notes, and snippets.

View rderewianko's full-sized avatar

Ross Derewianko rderewianko

View GitHub Profile
@devStepsize
devStepsize / slack_webhook_post.py
Last active December 14, 2024 22:20
POST a JSON payload to a Slack Incoming Webhook using Python requests
'''
This is an example of how to send data to Slack webhooks in Python with the
requests module.
Detailed documentation of Slack Incoming Webhooks:
https://api.slack.com/incoming-webhooks
'''
import json
import requests
@devdazed
devdazed / slack-pagerduty-oncall.py
Last active September 10, 2024 20:00
Updates a Slack User Group with People that are on call in PagerDuty
#!/usr/bin/env python
from __future__ import print_function
import json
import logging
from urllib2 import Request, urlopen, URLError, HTTPError
from base64 import b64decode
@dderusha
dderusha / Cache_Cleaner.sh
Last active May 31, 2016 18:56
Clean OS X caches
#!/bin/sh
#created By Dan De Rusha modified 10-8-14
### DELETE UTC CACHES
rm -r /Library/Extensis
mkdir /Library/Extensis
chmod 777 /Library/Extensis
### DELETE MICROSOFT CACHES
rm /Users/*/Library/Preferences/Microsoft/Office\ Font\ Cache*
rm /Users/*/Library/Preferences/Microsoft/Office\ 2008/Office\ Font\ Cache*
@opragel
opragel / cipher.sh
Last active August 29, 2015 14:25
Updates ciphers in Tomcat server.xml for JSS 9.73
#!/bin/bash
# It's your funeral
LINUX_TOMCAT_USER="tomcat7"
LINUX_TOMCAT_GROUP="tomcat7"
LINUX_SERVER_XML_PATH="/usr/local/jss/tomcat/conf/server.xml"
LINUX_SERVER_XML_BACKUP_PATH="/usr/local/jss/tomcat/conf/server.xml.bak"
MAC_TOMCAT_USER="_appserver"
MAC_TOMCAT_GROUP="_appserveradmin"
MAC_SERVER_XML_PATH="/Library/JSS/Tomcat/conf/server.xml"
MAC_SERVER_XML_BACKUP_PATH="/Library/JSS/Tomcat/conf/server.xml.bak"