Skip to content

Instantly share code, notes, and snippets.

View SivaDotRender's full-sized avatar

Sivathmican Sivakumaran SivaDotRender

View GitHub Profile
@SivaDotRender
SivaDotRender / CCS.md
Created February 8, 2019 14:02
Climbing Cheat Sheet
import requests
import sys
import os
PLUGIN = 'credentials'
BACKDIR_COUNT = 10
if len(sys.argv) != 3:
print 'usage:\n\tpython CVE-2018-1999002.py [jenkins base url] [absolute file path]'
print ''
@migeorge
migeorge / custom.sh
Created February 15, 2017 02:27
DD-WRT DigitalOcean Dynamic DNS
IPADDR=$(nvram get wan_ipaddr)
DO_KEY="Your DigitalOcean API Key"
DOMAIN="yourdomain.name"
DO_RECORD_ID=id_for_record_you_want_to_update
echo $IPADDR
echo Updating name server
curl -k "https://api.digitalocean.com/v2/domains/$DOMAIN/records/$DO_RECORD_ID" \
-X PUT \
@aheckmann
aheckmann / storeImgInMongoWithMongoose.js
Created April 17, 2012 19:14
store/display an image in mongodb using mongoose/express
/**
* Module dependencies
*/
var express = require('express');
var fs = require('fs');
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
// img path