Skip to content

Instantly share code, notes, and snippets.

ryankearney / Cisco 2901 Rollback
Created February 10, 2014 17:59
Cisco 2901 Configuration Rollback
TESTGW01#archive config
TESTGW01#sh archive
The maximum archive configurations allowed is 10.
There are currently 10 archive configurations saved.
The next archive file will be named flash:backups-<timestamp>-78
Archive # Name
1 flash:backupsFeb--3-11-55-49.089-DST-68
2 flash:backupsFeb--4-11-57-43.957-DST-69
3 flash:backupsFeb--5-11-59-38.981-DST-70
4 flash:backupsFeb--6-12-01-35.430-DST-71
public static void BinarySearch(String Filename) throws IOException {
//int index = -1;
int lower = 0;
int upper = elementCount -1; //stateCollection.length - 1;
int current;
boolean found = false;
int probe = 0;
String searchKey;
String c;
String p;
ryankearney / gist:8552425
Created January 22, 2014 02:20
hn 7098737
ssl on;
ssl_certificate /etc/ssl/certs/mycert.pem;
ssl_certificate_key /etc/ssl/private/mykey.pem;
ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_session_timeout 5m;
ssl_session_cache builtin:1000 shared:SSL:10m;
add_header Strict-Transport-Security max-age=31536000;
ryankearney / gist:4315681
Created December 17, 2012 04:02
CS:Go Crash
Process: csgo_osx [346]
Path: /Users/USER/Library/Application Support/Steam/*/csgo_osx
Identifier: csgo_osx
Version: ???
Code Type: X86 (Native)
Parent Process: bash [343]
User ID: 501
Date/Time: 2012-12-16 21:59:24.986 -0600
OS Version: Mac OS X 10.8.2 (12C60)
ryankearney / ComcastInject.html
Last active June 10, 2023 14:40
This is the code Comcast is injecting into its users web traffic.
<script language="JavaScript" type="text/javascript">
// Comcast Cable Communications, LLC Proprietary. Copyright 2012.
// Intended use is to display browser notifications for critical and time sensitive alerts.
var SYS_URL='/e8f6b078-0f35-11de-85c5-efc5ef23aa1f/aupm/';
// var image_url='';
var image_url='';
var headertext1='<strong>Comcast Courtesy Notice</strong>';
var textline1='You have reached 90% of your <b>monthly data usage allowance</b>.';
var textline2='Please sign in for more information and to remove this alert.';
var acknowledgebutton='<a href=\"#\" onClick="document.location.href=\''+SYS_URL+'?dispatch=redirect&redirectName=login&paramName=bmUid\'" title="Sign in to acknowledge" style="color: #FFFFFF;"><img alt="Sign in to acknowledge" src="'+image_url+'/mt_signin.png"/></a>';
ryankearney / Stripe CTF Level 06.js
Created August 30, 2012 11:24
JavaScript payload to force user to submit a form with their password.
//jQuery Payload
function(data) {
// Strings changed to String.fromCharCode() to avoid filtering of ' and " in posts.
ryankearney / god.vbs
Created October 17, 2011 18:24
Make Excel Cells Hyperlinks
Do While Not IsEmpty(ActiveCell)
ActiveCell.Hyperlinks.Add ActiveCell, ActiveCell.Value
ActiveCell.Offset(1, 0).Range("A1").Select
#include <stdio.h>
#include <time.h>
#include <netinet/in.h>
typedef struct {
int ID;
char * title;
char * link;
char * date;
int upVotes;
int downVotes;