Skip to content

Instantly share code, notes, and snippets.

View csanz's full-sized avatar
🎯
Focusing

Christian Sanz csanz

🎯
Focusing
View GitHub Profile
@csanz
csanz / getFile.vb
Created December 15, 2010 07:11
cool file downloader... talk about REST 0.1 ahha
Call Ask()
Sub Ask()
Dim intDoIt
Dim WSHShell
Set WSHShell = WScript.CreateObject("WScript.Shell")
strPage = InputBox("Enter Domain you wish to Grab","GRAB TOOL 1.2 - by Chris Sanz", "http://")
strPage = strPage
if strPage = "" then
@csanz
csanz / blastPayPlans.sql
Created December 15, 2010 07:02
SQL for pulling pay plans
/*
1) What are all the payplans that exist in GoReg that are associated with all the
various Blast products (i.e. clubblast, clubblast_scholastic, ...)
- break total down by product
- How many invoices exist in total that include one of these payplans?
Identify payplans that do not have a corresponding invoice (i.e. never used)
*/
SELECT PAY_PLAN.*, AFFILIATE.name As aff_name, PRODUCT.*,
@csanz
csanz / tradingPost.asp
Created December 15, 2010 06:57
I wrote this very simple API for one of the flash programmers. I ported this over to java a few weeks later.
<%
'//##Misc Methods
'//-------------
'//#######################################
sub view(string) '//process string and add delimeter
response.write(string) & ";"
end sub
@csanz
csanz / proxyManager.cpp
Created December 15, 2010 06:53
I wrote this a long time ago during my time at Disney Online... Nothing secret about, just a proxy changer I wrote for the devs.
/*************************************
load libraries
*************************************/
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <fstream>
using namespace std;
/*************************************
initialize functions
for a t-shirt? yeah right... ;)
@csanz
csanz / to generate a human readable time range using ruby on rails
Created November 9, 2010 18:58
to generate a human readable time range using ruby on rails
def humanize secs
[[60, :seconds], [60, :minutes], [24, :hours], [1000, :days]].inject([]){ |s, (count, name)|
if secs > 0
secs, n = secs.divmod(count)
s.unshift "#{n.to_i} #{name}"
end
s
}.join(' ')
end
Six Truths in Life:
1. You cannot stick your tongue out and look up at the ceiling at the same time, a physical impossibility.
2. All idiots, after reading #1 will try it.
3. And discover #1 is a lie.
Front End Engineer
Fox Sports Interactive is looking for 2 Front End Developers for a rebuild project. They are moving the 14 Regional Sports sites from their existing platforms to a new platform. They need developers with HTML, CSS & Javascript experience. Java experience is preferred. Candidates with a background in media and working with publishing/content management systems is ideal. Any candidates with background in Struts framework is a plus.
Back End Engineer
System development and deployment for current and upcoming projects; .Develop comprehensive unit test harnesses for all code developed. Requirements: .BS/MSCS or equivalent or 6+ years of commercial Java software development; .Demonstrable in-depth experience in core J2EE, Java EE technologies; .Strong knowledge of existing and latest Java core libraries (Lang, Collections, Concurrency, Annotations, JDBC) and popular open source frameworks Spring, Hibernate, etc. .Solid database experience w/ MySQL or Oracle; .Strong passion in developing/progr
after starting the server
csanz:diaspora csanz$ bundle exec thin start
>> Using rack adapter
>> Thin web server (v1.2.7 codename No Hup)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:3000, CTRL+C to stop
I got to localhost:3000 and try to log on using the tom account and I get this
csanz:~ csanz$ redis-cli set mykey "{'myhash':{'name':'value'}}"
OK
csanz:~ csanz$ redis-cli get mykey
{'myhash':{'name':'value'}}
csanz:~ csanz$
csanz:~ csanz$ redis-server
14 Sep 23:29:01 * Warning: no config file specified, using the default config. In order to specify a config file use 'redis-server /path/to/redis.conf'
14 Sep 23:29:01 - Server started, Redis version 1.01