Skip to content

Instantly share code, notes, and snippets.

@jgilmour
jgilmour / user.php
Created January 29, 2014 17:30
retrieve list of users in google group and format output into html
<?php
//
//
// pass url as http://site/[email protected]
//
//
$clientLibraryPath = '/usr/local/lib/ZendGdata-1.11.11/library';
$oldPath = set_include_path(get_include_path() . PATH_SEPARATOR . $clientLibraryPath);
require_once 'Zend/Loader.php';
@jgilmour
jgilmour / bitcoin-secureRandom-list-2
Created August 12, 2013 22:34
html list of bitcoin-secureRandom weak addresses - found on https://people.xiph.org/~greg/dupr.html
<html>
<body>
<br/>
<font face='"Lucida Console", Monaco, monospace'>
<a href="https://blockchain.info/tx/f71ac79e5b9db7365e27766448bc5c2361013ebb0f8e14c2699fac9d10d0fe1c">TxId:</a> f71ac79e5b9db7365e27766448bc5c2361013ebb0f8e14c2699fac9d10d0fe1c vIn: 0 R:&nbsp;16E14CADF4F7EB58F8C63375E15B85950C0E14AF7890B490764A08514685D92D
<ul>
<li>1AyTNQRvz6fo7EvebGpKfJB7jJeppxY4yc <a href="https://blockchain.info/address/1AyTNQRvz6fo7EvebGpKfJB7jJeppxY4yc">(https bc.info)</a> <a href="http://blockchain.info/address/1AyTNQRvz6fo7EvebGpKfJB7jJeppxY4yc">(non-https)</a> <a href="http://blockexplorer.com/address/1AyTNQRvz6fo7EvebGpKfJB7jJeppxY4yc">(blockexplorer)</a> <a href="https://www.google.com/search?q=1AyTNQRvz6fo7EvebGpKfJB7jJeppxY4yc">(google)</a></li>
</ul><br/><br/><a href="https://blockchain.info/tx/bb932a0de92e9ad2ae2c37695ebf0e1d1285df7e970ff06bd7c2260c7aeb889e">TxId:</a> bb932a0de92e9ad2ae2c37695ebf0e1d1285df7e970ff06bd7c2260c7aeb889e vIn: 0 R:&nbsp;16E14CADF4F7EB58F8C63375E15B85950C0E14AF7890B490764A08514685D9
@jgilmour
jgilmour / bitcoin-secureRandom-affected-list-1
Created August 12, 2013 22:33
Bitcoin secureRandom affected address list - #1
from: http://people.xiph.org/~greg/rvals.txt
f71ac79e5b9db7365e27766448bc5c2361013ebb0f8e14c2699fac9d10d0fe1c 0 16E14CADF4F7EB58F8C63375E15B85950C0E14AF7890B490764A08514685D92D
bb932a0de92e9ad2ae2c37695ebf0e1d1285df7e970ff06bd7c2260c7aeb889e 0 16E14CADF4F7EB58F8C63375E15B85950C0E14AF7890B490764A08514685D92D
fedf2731c3f649633d705c14d125fbf9418f29959b05b666d458c8ed2304579f 0 5A17AA621A79D0910314AE6AC8C807769879B3F939FC09665AF81DCE340DA07E
e8fcf51916318ee4f21bcce31a86925987f6d4696624bfc71b8f2963496b6a65 0 5A17AA621A79D0910314AE6AC8C807769879B3F939FC09665AF81DCE340DA07E
6122bfca98e9b00424dd2173bdfa8ffd8d2f1fa3037feafa91b9a83387073cf2 0 9BA2D6F988DA1F387E1C0C787A314BC72F20FBD2DAD7D1A188CD46B41E32E96A
5890bc0ef869d9c093423e99e2eb39ad41b6292d3808253128af62f0425bbba2 0 9BA2D6F988DA1F387E1C0C787A314BC72F20FBD2DAD7D1A188CD46B41E32E96A
dac290588573d91f5aa71b3f552822e194bd3a24cbbc2caaadb98b42430cbccc 0 6B63D3D6983F58A5E4783D1167F0C0424E546F2F987D796DEDA32EEAD26CAC53
#!/bin/sh
yum -y groupinstall "Development Tools"
wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
rpm -Uvh epel-release-5*.rpm
rpm -Uvh remi-release-5*.rpm
yum -y install python-devel screen
yum --enablerepo=remi install libcurl-devel -y
mkdir /opt/miner
cd /opt/miner
@jgilmour
jgilmour / gist:4734621
Last active December 12, 2015 07:09
CS 193P iPhone Application Development - Homework for Lecture 2 - Matchismo
//
// CardGameViewController.m
// Matchismo
//
// Created by Josh Gilmour on 2/6/13.
// Copyright (c) 2013 Josh Gilmour. All rights reserved.
//
#import "CardGameViewController.h"
@jgilmour
jgilmour / TradeKing-Quote.py
Created January 30, 2013 14:51
Pulls stock quotes from tradeking's api into json format
#!/usr/bin/python
# Python script to pull a stock symbol using TradeKings API
# The 'stock' variable can be multiple stocks ie: "AAPL,CRM,CARB"
# The response output's in json, but can be other formats as well depending
# upon the apiurl request
import oauth2 as oauth
apiurl = "https://api.tradeking.com/v1/market/ext/quotes.json?symbols="
stock = "AAPL"
@jgilmour
jgilmour / OracleEBS-All-FlexField-Values.sql
Last active February 14, 2021 20:36
Oracle EBS SQL Query to pull down all flexfield values based upon a specified flex value set name.
# Oracle EBS SQL Query to pull down all flexfield
# values based upon a specified flex value set name.
SELECT fv.*
FROM applsys.fnd_flex_values fv,applsys.fnd_flex_value_sets fvs
WHERE fvs.flex_value_set_id = fv.flex_value_set_id
AND fvs.flex_value_set_name = '<FLEX_FIELD_VALUE_NAME>';
@jgilmour
jgilmour / OracleEBS-Employee-Supervisor-TreeView.sql
Last active December 11, 2015 14:09
Oracle EBS SQL Query which will take an employees person_id (on line 8), and run a query to the organizational hierarchy for that employee. Output: Employee1 Name -> Employee1 Manager Name -> Director of Whatever Name -> CEO Name
# Oracle EBS SQL Query which will take an employees person_id (on line 8),
# and run a query to the organizational hierarchy for that employee.
# Output: Employee1 Name -> Employee1 Manager Name -> Director of Whatever Name -> CEO Name
SELECT lpad('->',8*(level-1)) ||
(
select distinct full_name from per_all_people_f
where person_id = paf.person_id
and sysdate between effective_start_date and effective_end_date
) TREE
@jgilmour
jgilmour / OracleEBS-Employee_IDs.sql
Last active December 11, 2015 14:09
Oracle EBS SQL Query which will pull down the person_id and full name for all employees in per_all_people_f Outputs as [person_id, full employee name], and orders by full_name
# Oracle EBS SQL Query which will pull down the person_id
# and full name for all employees in per_all_people_f
# Outputs as [person_id, full employee name], and orders by full_name
SELECT DISTINCT person_id, full_name from hr.per_all_people_f
ORDER BY full_name;
@jgilmour
jgilmour / OracleEBS-Employee-Supervisor-Query.sql
Last active March 19, 2021 08:22
Oracle EBS SQL Query that will list all employees in the hr.per_all_assignments_f table and their supervisor, in readable format. Output is [employee full name, employee number, supervisor full name, supervisor employee number], and ordered by employee name.
# Oracle EBS SQL Query that will list all employees in the hr.per_all_assignments_f
# table and their supervisor, in readable format. Output is [employee full name,
# employee number, supervisor full name, supervisor employee number], and ordered
# by employee name.
SELECT DISTINCT papf1.full_name leve1_full_name
, papf1.employee_number level1_empno
, papf2.full_name leve2_full_name
, papf2.employee_number level2_empno
FROM hr.per_all_people_f papf1