Skip to content

Instantly share code, notes, and snippets.

View carlos8f's full-sized avatar

Starbuck Starfish carlos8f

View GitHub Profile
@carlos8f
carlos8f / Satoshi_Nakamoto.asc
Created October 27, 2018 05:20
Satoshi Nakamoto's PGP key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.7 (MingW32)
mQGiBEkJ+qcRBADKDTcZlYDRtP1Q7/ShuzBJzUh9hoVVowogf2W07U6G9BqKW24r
piOxYmErjMFfvNtozNk+33cd/sq3gi05O1IMmZzg2rbF4ne5t3iplXnNuzNh+j+6
VxxA16GPhBRprvnng8r9GYALLUpo9Xk17KE429YYKFgVvtTPtEGUlpO1EwCg7FmW
dBbRp4mn5GfxQNT1hzp9WgkD/3pZ0cB5m4enzfylOHXmRfJKBMF02ZDnsY1GqeHv
/LjkhCusTp2qz4thLycYOFKGmAddpVnMsE/TYZLgpsxjrJsrEPNSdoXk3IgEStow
mXjTfr9xNOrB20Qk0ZOO1mipOWMgse4PmIu02X24OapWtyhdHsX3oBLcwDdke8aE
gAh8A/sHlK7fL1Bi8rFzx6hb+2yIlD/fazMBVZUe0r2uo7ldqEz5+GeEiBFignd5
@carlos8f
carlos8f / gist:b09a734cf626ffb9bb3bcb1ca35f3db4
Last active October 13, 2022 11:17
zenbot sim result, BTC-USD, 90 days, 195.45% profit, 61.06% over buy/hold
2017-05-11 16:00:00 1832.97 USD -0.06% 619.75 + 0.0447 null 1.91% 0.031060 BTC 2897.41 USD 195.43% +61.48%
{ days: 90,
profit_stop_enable_pct: 10,
profit_stop_pct: 1,
sell_rate: -0.006,
trend_ema: 36,
period: '1h',
strategy: 'trend_ema_rate',
sell_stop_pct: 4,
buy_stop_pct: 0,
@carlos8f
carlos8f / zen.txt
Last active February 20, 2022 12:32
101 zen stories
Abraham Lincoln once asked one of his secretaries, If you call a tail a leg, how many legs does a horse
have?.
Five, replied the secretary.
No, said the President, The answer is four. Calling a tail a leg doesn't make it a leg.
A group of frogs were traveling through the woods, when two of them fell into a deep pit. All the other
frogs gathered around the pit. When they saw how deep it was, they told the two frogs that they were as
good as dead.
The two frogs ignored the comments and tried to jump up out of the pit with all of their might. The other
frogs kept telling them to stop, that they were as good as dead. Finally, one of the frogs took heed to what
@carlos8f
carlos8f / account_controller.js
Created June 13, 2014 07:52
simple blog with LevelDB persistence, built with Motley
module.exports = function (app) {
return app.controller()
// just upsert a user and log them in
.post('/login', function (req, res, next) {
function logIn (err, user) {
if (err) return next(err);
if (user) {
req.login(user);
res.redirect('/');
}

I am autistic. I have a rare type of autism called Savant Syndrome. It is rare and no one talks about it. But, I have lived my whole life like this and no one told me what I had. I found out just recently. I got books on it but they were all written for parents of children. I don't know who to turn to.

I tried to see a doctor but they wanted a diagnosis first. I went to the diagnosis person and they wanted $1000. I couldn't afford it. I left and I knew I had autism and no one understands. I also have Synesthesia, I am an open source programmer, I have a fighting game channel on youtube, I am a chess player, I know every note on hundreds of jazz records. I can recite all this music from heart. I have perfect pitch. Plz help.

@carlos8f
carlos8f / index.md
Last active October 22, 2021 22:11
twitter bot framework

constructor

  • oauth - (required) mikeal/request oauth object
  • aiml - dir path containing .aiml files
  • bot - bot metadata as a hash
  • track - array of additional keywords to include in the feed
  • db - dir path to db for persistent brain

twitter-related methods

@carlos8f
carlos8f / btc-e.js
Created April 9, 2013 01:04
btc-e trading api
/**
* BTC-e JavaScript Trading API
* https://btc-e.com/api/documentation
*
* Author: jsCoin
* BTC : 151vumzopVBZMV9CtswFiumQBbEHcULPnG
* LTC : Laoq3qsLvQFCnnbfcFGpQyjy5kcK58bpen
*
* Dependencies:
* jQuery - http://jquery.com/
@carlos8f
carlos8f / gist:3473107
Last active September 5, 2020 15:44
siege Mac OS X caveats
Mac OS X has only 16K ports available that won't be released until socket
TIME_WAIT is passed. The default timeout for TIME_WAIT is 15 seconds.
Consider reducing in case of available port bottleneck.
You can check whether this is a problem with netstat:
# sysctl net.inet.tcp.msl
net.inet.tcp.msl: 15000
# sudo sysctl -w net.inet.tcp.msl=100
@carlos8f
carlos8f / natl_zccd.csv
Last active May 13, 2020 20:11
CONGRESSIONAL DISTRICTS BY ZIP CODE TABULATION AREA (ZCTA) (NATIONAL)
State ZCTA Congressional District
01 30165 03
01 31905 03
01 35004 03
01 35005 06
01 35005 07
01 35006 04
01 35006 06
01 35006 07
01 35007 06