Skip to content

Instantly share code, notes, and snippets.

View cameri's full-sized avatar
∞/21M

Ricardo Arturo Cabral Mejía cameri

∞/21M
View GitHub Profile
google-site-verification: googlea7ba5d46268a1e21.html

Keybase proof 

I hereby claim:    * I am cameri on github.   * I am cameri (https://keybase.io/cameri) on keybase.   * I have a public key ASD3R8XnWmCDUHz5HmlKhW0uBWy9KcNKQLgegkT7a5ShhQo  To claim this, I am signing this object: 

{   "body": {     "key": {       "eldest_kid": "0120f747c5e75a6083507cf91e694a856d2e056cbd29c34a40b81e8244fb6b94a1850a",       "host": "keybase.io",       "kid": "0120f747c5e75a6083507cf91e694a856d2e056cbd29c34a40b81e8244fb6b94a1850a",       "uid": "019b6900d04258ccf796740f94f51119",       "username": "cameri"     },     "merkle_root": {       "ctime": 1524331142,       "hash": "90c2a7a056f464ba71fd82546eae9d91c50e8b9e6c9610acba02095714c432744327c5b76b6ff3293fcd8a500ce917e93f99377716488745ddb7fb2280fa3685",       "hash_meta": "19ae334e4125f4f4059e7730364e221b42eae982a3eadd62fcabbbe098a4952f",       "seqno": 2423421     },     "service": {       "entropy": "X92owEzgv2NJ+6NYWimXejia",       "name": "github",       "username": "cameri"     },     "type": "web_service_binding

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

marvin on  master [!?] via marvin-project
➜ ./run_standalone.py
2018-07-05 20:53:34,915 INFO [MainProcess/MainThread|marvinbot.net] Starting Downloader with a ThreadPoolExecutor, workers=1
2018-07-05 20:53:34,928 INFO [MainProcess/MainThread|marvinbot.core] Adding handler: plugins, priority: 0, plugin: None
2018-07-05 20:53:34,929 INFO [MainProcess/MainThread|marvinbot.core] Adding handler: authenticate, priority: 0, plugin: None
2018-07-05 20:53:34,929 INFO [MainProcess/MainThread|marvinbot.core] Adding handler: users, priority: 0, plugin: None
2018-07-05 20:53:34,929 INFO [MainProcess/MainThread|marvinbot.core] Adding handler: commands_list, priority: 0, plugin: None
2018-07-05 20:53:34,930 INFO [MainProcess/MainThread|marvinbot.core] Adding handler: help, priority: 0, plugin: None
2018-07-05 20:53:34,930 INFO [MainProcess/MainThread|marvinbot.core] Adding handler: [<function filter_bot_membership_change at 0x7f36cfd77268>], priority: 0, plugin: None
2018-07-05 20:53:34,930 INFO [MainProcess/M
const moment = require('moment')
/**
* Draws table fields
*/
const FIELDS = [
'draws.draw_date',
'draws.lowest_crs',
'draws.invitations_issued',
'draws.tie_break',
[{"key":"AccountsDisplayDensity","value":"0"},{"key":"AccountsEmphasizedOutflows","value":false},{"key":"AccountsStripedRows","value":true},{"key":"AutoDistributeSplits","value":true},{"key":"AutoEnableRunningBalance","value":true},{"key":"AutomaticallyMarkAsCleared","value":false},{"key":"BetterScrollbars","value":"0"},{"key":"BottomNotificationBar","value":false},{"key":"BudgetCategoryFeatures","value":true},{"key":"BudgetProgressBars","value":"0"},{"key":"BudgetQuickSwitch","value":true},{"key":"BudgetSpendingGoal","value":false},{"key":"BulkManagePayees","value":false},{"key":"CalendarFirstDay","value":"0"},{"key":"CategoryActivityCopy","value":false},{"key":"CategoryActivityPopupWidth","value":"0"},{"key":"CategorySoloMode","value":"0"},{"key":"ChangeEnterBehavior","value":true},{"key":"ChangeMemoEnterBehavior","value":true},{"key":"CheckCreditBalances","value":false},{"key":"CheckNumbers","value":false},{"key":"ClearSelection","value":false},{"key":"CollapseSideMenu","value":true},{"key":"ColourBlindMod
[
{
"id": "5618e48f0abe4e10",
"type": "tab",
"label": "Stacker News",
"disabled": false,
"info": "",
"env": []
},
{
[
"ed1d0e1f743a7d19aa2dfb0162df73bacdbc699f67cc55bb91a98c35f7deac69",
"fd3fdb0d0d8d6f9a7667b53211de8ae3c5246b79bdaf64ebac849d5148b5615f",
"e668a111aa647e63ef587c17fb0e2513d5c2859cd8d389563c7640ffea1fc216",
"1bbb8324577ac089607e45813bac499ebdab4621d029f8c02b2c82b4410fd3f4",
"51535ad9f0e13a810f73ea8829a79b3733bd1fffb767c4885990b02f59103a13",
"2508ed2c2ab3f6728a880fafbc0895a2afeacbb74eb69847255fb60564af0d85",
"3707f1efc7515524dce41d3bf50bfd9fdaed3494620b5f94fcf16d2766da4ec2",
"dbab9040bc1f0c436b0f92f517702498358edc1fde2c7884d0e1036c739d44f3",
"ad5aab5be883a571ea37b231cd996d37522e77d0f121cedfd6787b91d848268e",
function aes_cbc_encrypt(data, rawKey) {
const iv = window.crypto.getRandomValues(new Uint8Array(16));
return aes_cbc_key(rawKey).then(function(key) {
return window.crypto.subtle.encrypt(
{
name: "AES-CBC",
//Don't re-use initialization vectors!
@cameri
cameri / yubikey_ssh_gpg.sh
Created September 10, 2022 01:42
How to use SSH & GPG with Yubikeys on MacOS
mkdir -m 0700 -p ~/.gnupg
brew install gnupg
# install pinentry-mac
brew install pinentry-mac
echo "pinentry-program ${$(which pinentry-mac)}" >> ~/.gnupg/gpg-agent.conf
# Run for the first time
gpgconf --launch gpg-agent
export SSH_AUTH_SOCK=$HOME/.gnupg/S.gpg-agent.ssh