Skip to content

Instantly share code, notes, and snippets.

View rchasman's full-sized avatar
🇦🇺
Living in Australia

Roey D. Chasman rchasman

🇦🇺
Living in Australia
View GitHub Profile
+----------------------+--------+--------+---------+---------+-----+-------+
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M |
+----------------------+--------+--------+---------+---------+-----+-------+
| Controllers | 2519 | 2192 | 42 | 188 | 4 | 9 |
| Jobs | 352 | 312 | 21 | 24 | 1 | 11 |
| Models | 18207 | 13750 | 181 | 1023 | 5 | 11 |
| Mailers | 500 | 447 | 14 | 31 | 2 | 12 |
| Channels | 33 | 33 | 7 | 5 | 0 | 4 |
| Libraries | 1847 | 1696 | 6 | 8 | 1 | 210 |
| Mailer specs | 51 | 36 | 4 | 0 | 0 | 0 |
@rchasman
rchasman / migrate-redis.py
Created August 3, 2019 00:24 — forked from metamatik/migrate-redis.py
Migrate Redis data on Amazon ElastiCache
"""
Forked and heavily adappted from:
https://gist.github.com/kitwalker12/517d99c3835975ad4d1718d28a63553e
Copies all keys from the source Redis host to the destination Redis host.
Useful to migrate Redis instances where commands like SLAVEOF and MIGRATE are
restricted (e.g. on Amazon ElastiCache).
The script scans through the keyspace of the given database number and uses
a pipeline of DUMP and RESTORE commands to migrate the keys.
@rchasman
rchasman / -
Created December 30, 2019 07:43
const quantityInput = document.getElementsByClassName('product-quantity-input')[0];
const unitPriceElement = document.getElementsByClassName('unit-price item')[0].getElementsByClassName('value')[0];
const totalPriceElement = document.getElementsByClassName('subtotal item')[0].getElementsByClassName('value')[0];
const setQty = val => {
const e = document.createEvent('HTMLEvents');
e.initEvent('change', false, false);
quantityInput.dispatchEvent(e);
quantityInput.value = val;
}
const currUnitPrice = () => Number(unitPriceElement.textContent.replace("$", "")) || 0;
From Bobby OROZCO to All panelists and other attendees: (11:03 AM)

SMOKEBALL!!!!

From Kira Fonteneau to All panelists and other attendees: (11:04 AM)

Yes!!!

From Josh Camson to All panelists and other attendees: (11:04 AM)

awkward

From Jordan Ostroff to All panelists and other attendees: (11:04 AM)

Mycase will not with ANYONE.

From Brian Reidy to All panelists and other attendees: (11:11 AM)

Birthday email is a great idea!

{"page"=>{"body"=>{"type"=>"mailup-bee-page-properties", "content"=>{"style"=>{"color"=>"#000000", "font-family"=>"Montserrat, Trebuchet MS, Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif"}, "computedStyle"=>{"linkColor"=>"#00AEAF", "messageWidth"=>"580px", "messageBackgroundColor"=>"transparent"}}, "webFonts"=>[{"url"=>"https://fonts.googleapis.com/css?family=Open+Sans", "name"=>"Open Sans", "fontFamily"=>"'Open Sans', sans-serif"}, {"url"=>"https://fonts.googleapis.com/css?family=Roboto", "name"=>"Roboto", "fontFamily"=>"'Roboto', sans-serif"}], "container"=>{"style"=>{"background-color"=>"#FFFFFF"}}}, "rows"=>[{"type"=>"row-1-columns-12", "uuid"=>"9f5a7239-6a90-400c-8177-3b200a3a5a42", "locked"=>false, "columns"=>[{"uuid"=>"85af27dd-ef27-4dd0-965e-8883cc58d762", "style"=>{"border-top"=>"0px solid transparent", "border-left"=>"0px solid transparent", "padding-top"=>"0px", "border-right"=>"0px solid transparent", "padding-left"=>"0px", "border-bottom"=>"0px solid transparent", "padding-r
@rchasman
rchasman / gist:1672466f4490fdecc9c4fb546d2cb7df
Last active May 12, 2021 22:26
boost-client lines of code (without node_modules)
[~/boost/boost-client]$ cloc --exclude-dir=node_modules . [develop][ruby-2.6.5]
1817 text files.
1810 unique files.
24 files ignored.
github.com/AlDanial/cloc v 1.88 T=7.60 s (236.5 files/s, 147131.5 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
JavaScript 970 161860 63192 818818
JSON 10 0 0 48825
@rchasman
rchasman / gist:027835dadac18a69349288ad0be7c5a9
Last active May 12, 2021 22:27
boost-api lines of code
[~/boost/boost-api]$ cloc . [develop][ruby-2.6.5@boostlegal-api]
2563 text files.
2540 unique files.
149 files ignored.
github.com/AlDanial/cloc v 1.88 T=19.12 s (131.7 files/s, 53618.2 lines/s)
--------------------------------------------------------------------------------
Language files blank comment code
--------------------------------------------------------------------------------
HTML 23 388995 3 351313
JSON 4 1 0 149585
@rchasman
rchasman / gist:63565924951a33f228fa97e541a72ffa
Last active May 12, 2021 22:29
boost-infra lines of code
[~/boost/boost-infra]$ cloc . [develop][ruby-2.6.5]
112 text files.
100 unique files.
35 files ignored.
github.com/AlDanial/cloc v 1.88 T=0.11 s (766.1 files/s, 66133.8 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
HCL 65 833 213 5732
JSON 9 0 0 157
@rchasman
rchasman / gist:bce0a870dfcf2fa0a866a68fe48c1eb0
Last active May 12, 2021 22:30
automation-engine lines of code
[~/boost/automation-engine]$ cloc . [develop][ruby-2.6.5]
125 text files.
120 unique files.
23 files ignored.
github.com/AlDanial/cloc v 1.88 T=0.22 s (468.9 files/s, 106927.3 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
Java 86 1540 495 7846
[~/boost/lm-pdf-service]$ cloc . [develop][ruby-2.6.5]
153 text files.
118 unique files.
88 files ignored.
github.com/AlDanial/cloc v 1.88 T=0.23 s (353.1 files/s, 118259.9 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
JSON 26 3 0 24746