Skip to content

Instantly share code, notes, and snippets.

View buley's full-sized avatar
🤑

Tay buley

🤑
View GitHub Profile
@buley
buley / gist:f93a5e9fcf4a47a539a4e2b90c67b324
Created January 28, 2019 18:51
Readability - docs example fixed
var Readability = require('Readability');
var JSDOM = require('jsdom').JSDOM;
var doc = new JSDOM("<body>Here's a bunch of text</body>", {
url: "https://www.example.com/the-page-i-got-the-source-from",
});
let reader = new Readability(doc.window.document);
let article = reader.parse();
console.log(article);
@buley
buley / gist:6fe57bca09d8c469425b771866633021
Created January 28, 2019 18:43
Readability - docs example
var Readability = require('Readability');
var JSDOM = require('jsdom').JSDOM;
var doc = new JSDOM("<body>Here's a bunch of text</body>", {
url: "https://www.example.com/the-page-i-got-the-source-from",
});
let reader = new Readability(doc);
let article = reader.parse();
<script>
window.location = '{publish_url}';
</script>
Compile ./build/iPhoneSimulator-10.0-Development/Daily Republic_spec.app/Settings.bundle/en.lproj/Root.strings
Compile ./build/iPhoneSimulator-10.0-Development/Daily Republic_spec.app/FacebookSDKStrings.bundle/Resources/af.lproj/FacebookSDK.strings
Compile ./build/iPhoneSimulator-10.0-Development/Daily Republic_spec.app/FacebookSDKStrings.bundle/Resources/ar.lproj/FacebookSDK.strings
Compile ./build/iPhoneSimulator-10.0-Development/Daily Republic_spec.app/FacebookSDKStrings.bundle/Resources/bn.lproj/FacebookSDK.strings
Compile ./build/iPhoneSimulator-10.0-Development/Daily Republic_spec.app/FacebookSDKStrings.bundle/Resources/cs.lproj/FacebookSDK.strings
Compile ./build/iPhoneSimulator-10.0-Development/Daily Republic_spec.app/FacebookSDKStrings.bundle/Resources/da.lproj/FacebookSDK.strings
Compile ./build/iPhoneSimulator-10.0-Development/Daily Republic_spec.app/FacebookSDKStrings.bundle/Resources/de.lproj/FacebookSDK.strings
Compile ./build/iPhoneSimulator-10.0-Development/Daily Republ
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-TGG362C');</script>
<!-- End Google Tag Manager -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-59091437-1', 'auto');
ga('send', 'pageview');
</script>
.navheaderleft {
background-color: #eee;
color: #000;
border-radius: 15px;
padding: 5px 20px 5px 20px;
}
.navheaderright {
background-color: #eee;
color: #000;
[~] cat /tmp/ha.txt|grep -vi '^$'|sort -dbfi|uniq -c|sort -nr
15 freelance
5 Mic
4 The Daily Dot
3 Bustle
2 Vice
2 The Huffington Post
2 The Guardian
2 The Frisky
2 Refinery 29
Sacramentio Police and Fire Frequencies
SACRAMENTO COUNTY SHERIFF
Channel 1 Ch1 North patrol/STAR 453.900
Channel 2 Ch2 Records/tactical 453.250
Channel 3 Ch3 South patrol 453.575
Channel 4 Ch4 Long range tac 453.675
Channel 5 Ch5 Short range tac 453.475
Channel 6 Tactical (simplex) 453.950
[systems] traceroute bad.horse staging ✭
traceroute to bad.horse (162.252.205.157), 64 hops max, 52 byte packets
1 192.168.1.1 (192.168.1.1) 1.759 ms 0.797 ms 1.722 ms
2 10.0.0.1 (10.0.0.1) 12.908 ms 0.977 ms 0.815 ms
3 96.120.14.41 (96.120.14.41) 8.866 ms 8.242 ms 9.106 ms
4 xe-1-1-3-sur01.davis.ca.ccal.comcast.net (68.87.201.29) 8.959 ms 9.668 ms 9.041 ms
5 ae-32-ar01.sacramento.ca.ccal.comcast.net (68.87.200.109) 10.813 ms 9.939 ms 10.304 ms
6 68.86.93.25 (68.86.93.25) 13.931 ms 26.853 ms 11.255 ms
7 be-7922-ar01.sandy.ut.utah.comcast.net (68.86.90.146) 29.895 ms 30.097 ms 30.129 ms
8 hu-0-4-0-1-sur04.saltlakecity.ut.utah.comcast.net (162.151.49.146) 30.544 ms