Skip to content

Instantly share code, notes, and snippets.

View flexgrip's full-sized avatar

Raymond Aguilar flexgrip

View GitHub Profile
@flexgrip
flexgrip / dave email
Created October 16, 2012 15:21
dave email
Delivered-To: flexgrip@gmail.com
Received: by 10.76.122.79 with SMTP id lq15csp667373oab;
Tue, 16 Oct 2012 08:12:29 -0700 (PDT)
Received: by 10.236.76.42 with SMTP id a30mr14371300yhe.50.1350400348665;
Tue, 16 Oct 2012 08:12:28 -0700 (PDT)
Return-Path: <dhayes@bass-security.com>
Received: from barracuda.girtman.com (gmcorp.girtman.com. [66.83.140.178])
by mx.google.com with ESMTP id w47si17527297yhi.75.2012.10.16.08.12.28;
Tue, 16 Oct 2012 08:12:28 -0700 (PDT)
@flexgrip
flexgrip / gist:5158687
Created March 14, 2013 03:51
Sharepoint selector for checkboxes
<script type="text/javascript">
/* $(document).ready(function() {
var thelist = new Array();
$('input.s4-itm-cbx').change(function() {
if(this.checked) {
checker = $(this).parent().parent().attr("iid").split(',');
thelist.push(checker[1]);
alert(thelist);
}
GET "LIBHDR"
LET START() = VALOF $(
FOR I = 1 TO 5 DO
WRITEF("%N! = %I4*N", I, FACT(I))
RESULTIS 0
)$
AND FACT(N) = N = 0 -> 1, N * FACT(N - 1)
@flexgrip
flexgrip / retroand_trans.py
Created September 8, 2013 06:25
RetroAND transcoder... Brillaint
import os
import time
from multiprocessing import Event, Process, Pipe
from Queue import Queue
from retroand.config import cfg
from retroand.log import logger
def transcode_process(connection, path, stop, format='mp3', bitrate=False):
@flexgrip
flexgrip / services_from_drupal.js
Last active December 22, 2015 13:58
Get data from Drupal Services rest server to the Intel XDK. Yeah yeah yeah.
/*
_ _ _______ ______
| \ | | ____\ \ / / ___|
| \| | _| \ \ /\ / /\___ \
| |\ | |___ \ V V / ___) |
|_| \_|_____| \_/\_/ |____/
================================*/
function getBlog() {
// Pull the curtain
[{"nid":[{"value":"1"}],"uuid":[{"value":"2fad4156-76f0-43d3-8500-aa5420cb480a"}],"vid":[{"value":"1"}],"type":[{"target_id":"book"}],"langcode":[{"value":"en"}],"title":[{"value":"A Clockwork Orange"}],"uid":[{"target_id":"1","url":"\/user\/1"}],"status":[{"value":"1"}],"created":[{"value":"1455223069"}],"changed":[{"value":"1455223135"}],"promote":[{"value":"0"}],"sticky":[{"value":"0"}],"revision_timestamp":[{"value":"1455223124"}],"revision_uid":[{"target_id":"1","url":"\/user\/1"}],"revision_log":[],"revision_translation_affected":[{"value":"1"}],"default_langcode":[{"value":"1"}],"path":[],"body":[{"value":"<p>A Clockwork Orange takes place in a futuristic city governed by a repressive, totalitarian super-State. In this society, ordinary citizens have fallen into a passive stupor of complacency, blind to the insidious growth of a rampant, violent youth culture. The protagonist of the story is Alex, a fifteen-year-old boy who narrates in a teenage slang called nadsat, which incorporates elements of Russi
[Day 2 of trying to resolve marketing API bug...]
ray@ave81.com
(651) 200-9755
Hello all,
My name is Raymond Aguilar. I'm the head engineer at LeadPages™. For a little background, we make a landing page builder and optin-form generator called LeadBoxes™ which are widely used in the marketing industry.
Many of our top-level enterprise customers integrate their marketo accounts with our service so that anyone who fills out their capture forms are uploaded directly to their marketo account.
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "leadpages.net"}{
HTTP::respond 301 Location "https://www.leadpages.net[HTTP::uri]"
}
if { [string tolower [HTTP::uri]] starts_with "/blog" }{
node 104.193.18.59
}
@flexgrip
flexgrip / StripePullByDate.php
Last active August 30, 2016 00:04
StripePullByDate.php
while ($charges['has_more']) {
$charges = $stripe->getChargesByDate($start_date, $starting_after);
foreach($charges["data"] as $charge) {
// DEBUG
Log::info($charges['has_more']);
// Reset the data for the pager. Have to do this first in case we skip a dirty record.
$starting_after = $charge['id'];
@flexgrip
flexgrip / get_rhs.sh
Created January 17, 2017 22:04
Grabs all of the rhs mods from the workshop onto a linux server with steamcmd installed. Make sure you auth steamcmd with the user you specify at least once before running or it will fail.
#!/bin/bash
declare -A PACK
# EDIT THESE
#
# choose which packs you want to get by uncommenting them
PACK[afrf]=843425103
#PACK[usaf]=843577117
#PACK[gref]=843593391
#PACK[saf]=843632231