Skip to content

Instantly share code, notes, and snippets.

View carlos8f's full-sized avatar

Starbuck Starfish carlos8f

View GitHub Profile
@carlos8f
carlos8f / gist:0a73f27c5dd28ed39e67867a76f852f9
Created July 9, 2016 08:38
zenbot 2.6.0 sim results (roi = 1.923)
Carloss-Mac-mini:zenbot carlos8f$ zenbot sim
7/9/2016, 1:36:40 AM PDT motley: boot
7/9/2016, 1:36:40 AM PDT motley-mongo: connecting...
7/9/2016, 1:36:40 AM PDT motley-mongo: connected to mongodb://localhost:27017/zenbot
7/9/2016, 1:36:40 AM PDT motley: boot complete.
7/9/2016, 1:36:40 AM PDT motley: mount
7/9/2016, 1:36:40 AM PDT motley: mount complete.
7/9/2016, 1:36:40 AM PDT zenbot/2.6.0 booting!
7/9/2016, 1:36:40 AM PDT [param] min_vol = 750
7/9/2016, 1:36:40 AM PDT [param] trade_amt = 0.9999863171085893
@carlos8f
carlos8f / incident.md
Last active June 14, 2016 20:32
sentry incident

Sentry Security Incident (June 13 2016)

Recently we've been made aware of a vulnerability which would have allowed an attacker to gain access to various Sentry metadata. This information includes various account details, as well as credentials for integrations and Sentry's web API (both keys and auth tokens). We have no reason to believe this information was compromised, but are addressing that possibility as aggressively as we can.

You should do the following as soon as possible:

Sentry API

Any existing API keys or authentication tokens used with our web API (such as to upload release artifacts) should be rotated. Create a new key or token, update your systems, and then remove the previously used keys.

@carlos8f
carlos8f / test.json
Last active May 25, 2016 20:05
lightweight request module
req.post('https://s8f.org/posts', {data...})
returns readable stream
headers event
req.get('https://s8f.org/gpg.txt', function (err, resp, body) {
// resp.statusCode etc
// body is object for json, buffer for binary stuff, string for text stuff
})

Keybase proof

I hereby claim:

  • I am carlos8f on github.
  • I am carlos8f (https://keybase.io/carlos8f) on keybase.
  • I have a public key ASANZIMkGUxDsNPMB1dExKy4Uc1gjAv8OH6nZwG66gIk6Ao

To claim this, I am signing this object:

-----BEGIN SALTY WALLET-----
Proc-Type: 4,ENCRYPTED
DEK-Info: AES-256-CBC,3F5BDB221BFB3AE49CCD44CA11771ADA
UUjPDtIlPlDjwgQHgg6dgvBf2rKeKQadKUJD4PtaWaiN6qPEBRc/Djz9UTzGIeB8
YH2BQYRn7WynTc4rmwzMMvYkYr+XzxOnmtlBMzc/57Ah79lPb7dZtBMigeW37Meq
sMG8nfr4xUwAQV45pylL2TBVQyFrDN6xxfqYBpM5Kzm/Xx8g+IiO8Xn8O/zHlGOq
GUSoKruPWcSso5f+DVkTA8bz1sMQf72keB6Yr0TJhR2YO1Q6ucC9qciXOhKElVkJ
uqtc8BDHrmh6cAmdWMy7/Jjn8YOz+QmSCyHDKxwlIVjBWNNM88wdZuiRMFNgFCIV
sb+JWelNCspCuQxR+UduWoJt/evEI4zjSpObnwErB4yq+6OeB6jNgr2bF7jHYygf
@carlos8f
carlos8f / rolento_frame_data.txt
Created July 14, 2015 22:48
rolento frame data
<close>
CLOSE STANDING PUNCHES
st. lp
- 4 startup
- +6/+3
st. mp
- 6 startup
@carlos8f
carlos8f / gist:1413a6c55c7a5dce6485
Created June 30, 2015 15:35
swap partition on ubuntu ec2
sudo dd if=/dev/zero of=/var/swapfile bs=1M count=4096
sudo chmod 600 /var/swapfile
sudo mkswap /var/swapfile
echo /var/swapfile none swap defaults 0 0 | sudo tee -a /etc/fstab
sudo swapon -a
@carlos8f
carlos8f / resume.md
Last active August 29, 2015 14:23
quick resume

Quick resume for segment.io

I built the company Terra Eclipse Inc. 10 years ago, and we have done stuff like:

  • Rep. Ron Paul's official presidential campaign, circa 2007 (ronpaul2008.com)
  • Ron Paul's custom donation engine which broke records, taking in around $35 million during "Money Bomb" events - https://en.wikipedia.org/wiki/Moneybomb#Origin
  • Social network with 275k users (Freedom Connector), built with Drupal 6, MongoDB, and custom geocoding engine - http://connect.freedomworks.org/
  • Many, many open source projects on NPM and github - https://www.npmjs.com/~carlos8f
  • iPad and browser-based 3d games
  • A decentralized crypto identity service (salty) similar to keybase.io
-----BEGIN PGP MESSAGE-----
Version: Keybase OpenPGP v2.0.8
Comment: https://keybase.io/crypto
wcFMA/pwau89BF8gARAAi+BJ8RMNIdKtgtUacp9LOpGYOIrz0LGlSrGHcsW92WTr
deQfYAwURHEaFX9mbdLepbnTxg7NkbXhARqDCvaKR90KPecy5hP+R2iewFgEzPd4
cZo+BQ58asWvhCxLmI9522QjWlNWltpE/oUWgLEdbhoPVAHT/DPWU9YDBofC7Nno
QgyAqMUdq/fvFZG3hHvpn+quKUiQ+PYgzrIVYL+ruhnqTmeniMW/tO82xywFBX0L
6TjQ4vbETwQVBCIZX5gA/ueNcqmqDUTIGk7USsUDreU+NxN4+gpoEjpQD5P9425f
YUm/7upKE4dwznHrTw4ahN7Vht3yIkGHA4G9Ri8M576CPaPQxWxtfcJN6ECTXEAD