Skip to content

Instantly share code, notes, and snippets.

View ambethia's full-sized avatar
🐼
PANDAS!

Jason L Perry ambethia

🐼
PANDAS!
View GitHub Profile
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@ambethia
ambethia / push_pull.md
Created June 12, 2014 18:33
Heroku DB pull and push.

Pull

curl -o db.dump `heroku pgbackups:url` 
pg_restore --verbose --clean --no-acl --no-owner -d DATABASE_NAME db.dump

Push

heroku pg:reset DATABASE_URL

pg_dump -xO DATABASE_NAME | psql heroku config:get DATABASE_URL

Keybase proof

I hereby claim:

  • I am ambethia on github.
  • I am ambethia (https://keybase.io/ambethia) on keybase.
  • I have a public key whose fingerprint is 4A38 F268 346D 0587 EB3F F0EB 5C4C 4B56 FE10 40FE

To claim this, I am signing this object:

Order
--------------------------------
ID | 1
CustomerID | 69
5minutesEnabled | true
10MinutesEnabled | false
D5ZgzuAq9UBXwiBZCWX8hRmP1Vhearwy82
def xor_salsa8(x, a, b)
x00 = x[a + 0] ^= x[b + 0]
x01 = x[a + 1] ^= x[b + 1]
x02 = x[a + 2] ^= x[b + 2]
x03 = x[a + 3] ^= x[b + 3]
x04 = x[a + 4] ^= x[b + 4]
x05 = x[a + 5] ^= x[b + 5]
x06 = x[a + 6] ^= x[b + 6]
x07 = x[a + 7] ^= x[b + 7]
x08 = x[a + 8] ^= x[b + 8]
#! /bin/sh
### BEGIN INIT INFO
# Provides: cgminer
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts cgminer
# Description: Start script for cgminer
### END INIT INFO
#!/bin/sh
export DISPLAY=:0
export GPU_MAX_ALLOC_PERCENT=100
export GPU_USE_SYNC_OBJECTS=1
cgminer --config multipools.conf
5jifjj3GfwhqFdcujC6i5117mgZMnfZ4GP
@ambethia
ambethia / bitcoin-network.py
Last active August 6, 2018 09:52
NyanCoin settings for P2Pool
nyancoin=math.Object(
P2P_PREFIX='fbc0b8db'.decode('hex'), # TODO: I think you can find it in main.cpp at pchMessageStart[4]=... Using this specific value as the P2P_PREFIX fixed the problem for me.
P2P_PORT=17778,
ADDRESS_VERSION=21,
RPC_PORT=17779,
RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
'nyancoinaddress' in (yield bitcoind.rpc_help()) and
not (yield bitcoind.rpc_getinfo())['testnet']
)),
SUBSIDY_FUNC=lambda height: 50*100000000, # TODO: SUBSIDY_FUNC can be found in the source code, specifically in main.cpp, search for nSubsidy, you'll find a line that looks a lot like nSubsidy >>= (nHeight / 8400000);