Skip to content

Instantly share code, notes, and snippets.

View dokeeffe's full-sized avatar

Derek OKeeffe dokeeffe

  • Dell EMC
  • Cork Ireland
View GitHub Profile
@cihanmehmet
cihanmehmet / CVE-2020-5902.md
Last active July 27, 2024 03:07
BIGIP CVE-2020-5902 Exploit POC

🚨BIGIP CVE-2020-5902 Exploit POC 🔥🧱🔨👀


Shodan Seaarch

title:"Big-IP®" org:"Organization Name"
http.title:"BIG-IP®- Redirect" org:"Organization Name"
http.favicon.hash:-335242539 "3992" org:"Organization Name"

🔸LFI

@wassname
wassname / jupyter_logging.py
Last active November 11, 2022 10:11
simple logging for jupyter or python which outputs to stdout (or a console or terminal) and a log file
"""
In jupyter notebook simple logging to console
"""
import logging
import sys
logging.basicConfig(stream=sys.stdout, level=logging.INFO)
# Test
logger = logging.getLogger('LOGGER_NAME')
@TYsewyn
TYsewyn / index.html
Created January 27, 2018 15:46
Visualizing your Spring Integration Components & Flows
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Visualizing your Spring Integration Components &amp; Flows</title>
<script type="text/javascript" src="http://d3js.org/d3.v4.min.js"></script>
<script type="text/javascript" src="http://d3js.org/d3-selection-multi.v1.min.js"></script>
<style>
@spalladino
spalladino / mysql-docker.sh
Created December 22, 2015 13:47
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
crontab -e
*/5 * * * * /usr/bin/sudo -H /home/pi/my-scripts/checkwifi.sh >> /dev/null 2>&1
@neilellis
neilellis / README.md
Last active May 26, 2020 13:09
Build large maven projects quicker on OS X, this gist will ensure a ramdisk is mounted in /Volumes/ramdisk and triggers a profile that redirects output to a ram disk. It also only builds modules which have changed and their dependent modules. This is done by supplying the target directory of the ultimate artifact you are interested in.

Make sure you have a profile called quick that redefines the location of maven's output to the ramdisk. To do this ensure all of the below are in your parent POM.

<properties><my.build.directory>target</my.build.directory></properties>

<build><directory>${my.build.directory}</directory></build

<profile>
  <id>quick</id>
@matshofman
matshofman / gist:4145718
Created November 25, 2012 22:41
RA Dec to Alt Az converter
using System;
namespace RaDecToAltAz
{
/// <summary>
/// Explenation of the calculations at http://www.stargazing.net/kepler/altaz.html
/// </summary>
class RaDecToAltAz
{
double RA = 250.425; // 16 h 41.7 m * 15
@sirleech
sirleech / gist:2660189
Created May 11, 2012 14:42
Python Read JSON from HTTP Request of URL
# Load Json into a Python object
import urllib2
import json
req = urllib2.Request("http://localhost:81/sensors/temperature.json")
opener = urllib2.build_opener()
f = opener.open(req)
json = json.loads(f.read())
print json
print json['unit']