Skip to content

Instantly share code, notes, and snippets.

View underdown's full-sized avatar

Ryan Underdown underdown

  • Classy Closets
  • Phoenix, AZ
View GitHub Profile
@underdown
underdown / cwp.php
Last active October 20, 2015 05:46
how to reverse engineer some simple obfuscation
<?php
//grabbed the code from phpQUERY-oneFile.php which houses a good chunk of the setup scripts that run cwp
// found this method of obfuscation - just getting the ord (ascii value) for a character and then shifting values.
/* rewrote their script to make logical. The function decryptme must be converted back to the original function name as its called further down the line in the obnfuscated code. */
/* so far havent found anything objectionable in their code - just looking for obvious backdoors */
if(!function_exists("decryptme"))
{ function decryptme($obfuscated) {
$initialize="";
$counter=0;
$length=strlen($obfuscated);
@underdown
underdown / google-sheets-snippets.js
Created October 15, 2015 21:52
Google Sheets Snippets
=query(arrayformula(iferror(if(match(trim(B:B);trim(A:A);0)>0;"");trim(B:B)));"select Col1 where Col1<>'' order by Col1") //compare two columns
@underdown
underdown / osx-theme.sh
Last active October 6, 2015 21:27
macosx theme ubuntu 14.04
# http://www.noobslab.com/2014/11/mbuntu-macbuntu-1410-transformation.html
sudo add-apt-repository ppa:noobslab/themes
sudo add-apt-repository ppa:noobslab/apps
sudo add-apt-repository ppa:docky-core/ppa
sudo apt-add-repository -y ppa:rael-gc/scudcloud
sudo apt-get update
sudo apt-get install mbuntu-y-ithemes-v4 mbuntu-y-icons-v4 docky slingscold indicator-synapse mbuntu-y-docky-skins-v4 mbuntu-y-bscreen-v4 scudcloud
cd && wget -O config.sh http://drive.noobslab.com/data/Mac-14.10/config.sh
chmod +x config.sh;./config.sh
@underdown
underdown / google-app-script-sheets-text-to-column.js
Created August 7, 2015 18:49
google sheets text to columns
/* lifted from http://storage.pardot.com/10212/69581/text_to_columns_script.txt */
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
@underdown
underdown / autounfollow.js
Created July 24, 2015 18:01
unfollow twitter pps from the console
setInterval(function(){t=$(".following button:eq(0)");if(!t[0])window.scrollTo(0,$(document).height());else t.trigger("click")},100)
@underdown
underdown / lamp-setup
Created July 7, 2015 20:43
bash ubuntu 14.1 lamp setup
sudo apt-get update
sudo apt-get install mc apache2 mysql-server phpmyadmin
@underdown
underdown / amazon-orders-api.php
Last active December 2, 2022 12:58
Amazon MWS Orders API PHP Example
<?php
/*******************************************************************************
* Copyright 2009-2015 Amazon Services. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
*
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at: http://aws.amazon.com/apache2.0
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
@underdown
underdown / amazon-mws-signed-request
Created June 1, 2015 18:02
amazon mws signed request
define ("AWS_ACCESS_KEY_ID", "xxxxx");
define ("MERCHANT_ID", "xxxxx");
define ("MARKETPLACE_ID", "xxxxx");
define ("AWS_SECRET_ACCESS_KEY","xxxxx");
$base_url = "https://mws.amazonservices.com/Products/2011-10-01";
$method = "GET";
$host = "mws.amazonservices.com";
$uri = "/Products/2011-10-01";
@underdown
underdown / twitter-auto-unfollow.js
Last active July 15, 2017 11:20
twitter auto unfollow
/*
Just nacigate to twitter.com/following (while logged in), hit f12 (on chrome) and paste this snippet into the console tab
originally found here: http://www.easytins.com/2014/01/how-to-unfollow-many-twitter-users.html
*/
setInterval(function(){t=
$(".following button:eq
(0)");if(!t
@underdown
underdown / auto-follow-twitter.js
Last active August 4, 2023 20:20
auto follow twitter
a = setInterval(function () {
window.scrollTo(0,document.body.scrollHeight);
$('.not-following .user-actions-follow-button.js-follow-btn').click();
}, 4000);
/* changed setinterval to 4k ms - original source here https://medium.com/@karanjthakkar/how-i-grew-from-300-to-5k-followers-in-just-3-weeks-2436528da845
Just browse to someones follower list, hit F12 on chrome and plug this snippet into the console tab and hit enter