Skip to content

Instantly share code, notes, and snippets.

View jonasbits's full-sized avatar

Jonas Anton Östman jonasbits

View GitHub Profile
/*
easy to work css, remove in the end
*/
div.finders,.sprites{float:left;}
.finder{margin: 10px 10px 700px 10px;}
.finder,
.celebrity,.timeMilestones,.elFiesta,.bronze24km,.silver40km,.gold80km,
.platinum160km,.bronze15mile,.silver25mile,.gold50mile,.platinum100mile,.threeTimesWeek,
.fiveTimesWeek,.sevenTimesWeek,.threeWeeksInRow,.fourWeeksInRow,.fiveWeeksInRow,.sixWeeksInRow,
@jonasbits
jonasbits / store_url_rewrite
Last active December 16, 2015 03:09
Squid Secondlife texture script found at http://wiki.phoenixviewer.com/squid_proxy_cache
#!/usr/bin/perl
$| = 1;
while (<>) {
chomp;
if (m/sim(.*?)\.agni\.lindenlab\.com(.*?)\/cap\/(.*?)\/\?texture_id=(.*)/) {
print "http://agni.lindenlab.com/texture/" . $4 . "\n";
} else {
print $_ . "\n";
@jonasbits
jonasbits / grailbird.js
Last active December 20, 2015 18:48
Trying to identify http links in Twitter export, and add the ability to click them
Grailbird.data.tweets_2011_07 =
[ {
"source" : "<a href=\"http://www.google.com/\" rel=\"nofollow\">Google</a>",
"entities" : {
"user_mentions" : [ {
@jonasbits
jonasbits / offer.lsl
Created September 26, 2013 22:49
MetaverseArchive Offer Inventory script
default {
state_entry()
{
llAllowInventoryDrop(TRUE);
llSetText("", <1,1,1>, 1.5);
llSetPayPrice(1, [PAY_HIDE,PAY_HIDE,PAY_HIDE,PAY_HIDE]);
}
money(key id, integer amount)
@jonasbits
jonasbits / url-gcs.py
Created September 27, 2013 17:24
url-gcs - url grand central station - to always open link in the active browser of choice, not the "default" browser. And also be able to open all 3 url files over the 3 major systems. (linux, mac, windwos)
#!/usr/bin/env python
import argparse
import webbrowser
parser = argparse.ArgumentParser(description='Forward URL to current browser')
parser.add_argument('--url', help="url help line")
args = parser.parse_args()
print args.url
ff = webbrowser.get("firefox")
import time
import sys
import os
import ctypes
ES_CONTINUOUS = 0x80000000
ES_AWAYMODE_REQUIRED = 0x00000040
ES_SYSTEM_REQUIRED = 0x00000001
ES_DISPLAY_REQUIRED = 0x00000002
# Raw transaction API example work-through
# Send coins to a 2-of-3 multisig, then spend them.
#
# For this example, I'm using these three keypairs (public/private)
# 0491bba2510912a5bd37da1fb5b1673010e43d2c6d812c514e91bfa9f2eb129e1c183329db55bd868e209aac2fbc02cb33d98fe74bf23f0c235d6126b1d8334f86 / 5JaTXbAUmfPYZFRwrYaALK48fN6sFJp4rHqq2QSXs8ucfpE4yQU
# 04865c40293a680cb9c020e7b1e106d8c1916d3cef99aa431a56d253e69256dac09ef122b1a986818a7cb624532f062c1d1f8722084861c5c3291ccffef4ec6874 / 5Jb7fCeh1Wtm4yBBg3q3XbT6B525i17kVhy3vMC9AqfR6FH2qGk
# 048d2455d2403e08708fc1f556002f1b6cd83f992d085097f9974ab08a28838f07896fbab08f39495e15fa6fad6edbfb1e754e35fa1c7844c41f322a1863d46213 / 5JFjmGo5Fww9p8gvx48qBYDJNAzR9pmH5S389axMtDyPT8ddqmw
# First: combine the three keys into a multisig address:
./bitcoind createmultisig 2 '["0491bba2510912a5bd37da1fb5b1673010e43d2c6d812c514e91bfa9f2eb129e1c183329db55bd868e209aac2fbc02cb33d98fe74bf23f0c235d6126b1d8334f86","04865c40293a680cb9c020e7b1e106d8c1916d3cef99aa431a56d253e69256dac09ef122b1a9
@jonasbits
jonasbits / mkbootstrap.sh
Created October 20, 2013 22:58
bitcoin-qt bash script to make bootstrap.dat of all the blocks, and check that the client is shutdown, if that matters
#! /bin/bash
echo $PWD
if ps aux | grep -q "[b]itcoin" ; then
echo "bitcoin is running, shut it down before running this script again"
ps aux | grep "[b]itcoin"
exit
fi
for i in blk*.dat
do
@jonasbits
jonasbits / jsforth.js
Last active December 26, 2015 02:28
I want to make this forth simulator take bitcoin OP commands
/**
@preserve
JS-Forth
http://www.forthfreak.net/index.cgi?jsforth
Licensed under th GNU GPL.
Disclaimer: JS-Forth is delivered as-is. No warranties,
implicit or explicit, towards its function, usability, fitness
for any purpose are given. It is distributed for educative
@jonasbits
jonasbits / xeger.py
Created December 23, 2013 20:33
vanitygen bitcoin regex is possible, but oclvanitygen does not have this option... so i have to make a list
comment = '''1L1ddeLL
1L1dd3LL
1L1ddELL
1L1dDeLL
1L1dD3LL
1L1dDELL
1L1DdeLL
1L1Dd3LL
1L1DdELL
1L1DDeLL