curl "https://support.mozilla.org/en-US/contributors/kb-overview?product=firefox" | \
pup '#kb-overview-table tbody tr td:nth-child(1) a[href*="/en-US/kb/"]' | head -1
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 320k 100 320k 0 0 89264 0 0:00:03 0:00:03 --:--:-- 89240
<a href="/en-US/kb/get-started-firefox-overview-main-features">
View vancouver-accident-location-data-full-data.csv
We can't make this file beautiful and searchable because it's too large.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Location,Crash Type,Municipality,Year,Crash Count,Latitude,Longitude | |
GRANDVIEW HWY S & TEMPLETON DR,Property damage only,VANCOUVER,2017,1,49.25909,-123.060191 | |
BOUNDARY RD & REGENT ST,Property damage only,VANCOUVER,2017,1,49.259109,-123.023633 | |
VINE ST & W 14TH AVE,Property damage only,VANCOUVER,2017,1,49.259265,-123.157816 | |
E 13TH AVE & WATSON ST,Property damage only,VANCOUVER,2017,1,49.259302,-123.100497 | |
ASH ST & W 13TH AVE,Property damage only,VANCOUVER,2017,3,49.259493,-123.117658 | |
MACDONALD ST & W 14TH AVE,Property damage only,VANCOUVER,2017,3,49.259579,-123.168318 | |
BALACLAVA ST & W 14TH AVE,Property damage only,VANCOUVER,2017,1,49.259663,-123.174155 | |
FIR ST & W 13TH AVE,Property damage only,VANCOUVER,2017,1,49.259853,-123.141183 |
View query.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT strftime('%Y-%m-%d', created) AS yyyymmdd, count (*) as 'num_SUMO_questions' | |
FROM "2021-yearly-ff-questions-en-us" | |
WHERE created >= date('2021-01-01', 'localtime') | |
AND created < date('2022-01-01', 'localtime') | |
GROUP BY yyyymmdd |
View how-to-change-3-trailing-spaces-2-trailing-spaces.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name '*-test.md' -exec sed -i -e "s/\s\s\s$/ /g" {} \; |
View 1-using-csv-new-read-remote-csv.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def read(url) | |
CSV.new(URI.open(url), :headers => :first_row).each do |line| | |
ap line | |
end | |
end |
View get-ontario-covid19-update.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# use sed on WSL and linux instead of gsed | |
curl "https://api.ontario.ca/api/drupal/page%2Fhow-ontario-is-responding-covid-19?fields=nid,field_body_beta,body" | jq ".body.und[0].value" | gsed 's/\\n/\n/g; s/\\t/\t/g' >cleaned2-ontario-COVID-19-daily-summary.html |
View pup-snippet.md
View b-chaan.md
The following translation is courtesy of Gary Kwong. Thanks Gary!
English:
I would like a B meal with cold milk tea with sweet condensed milk. By the way, I’m sorry, I don’t speak Chinese. I am a Canadian of Filipino heritage.
Cantonese:
唔該,我想要個B餐,要杯凍奶茶(煉奶)。唔好意思,我唔識講中文,我係菲律賓裔加拿大人。
View 00-fxing-jdk-for-1.8.md
sudo update-java-alternatives --jre-headless --jre --set java-1.8.0-openjdk-arm64
- building R Studio manually from source:
- Beyond linux from screatch link=shared docs: ./b2 install threading=multi link=shared &&]
View windows10arm64-yoga-c630.md
- Windows 10 AARM 64 Lenovo C630 Build 18980 - see https://flic.kr/p/2heaEKR
- ubuntu crashes immediately see: https://flic.kr/p/2hecp5g
View keybase.md
Keybase proof
I hereby claim:
- I am rtanglao on github.
- I am rtanglao (https://keybase.io/rtanglao) on keybase.
- I have a public key ASCzFDnFUGNiGuQlc4_nYFxszM32BJzpjfAoOeLqasb58Qo
To claim this, I am signing this object:
NewerOlder