Skip to content

Instantly share code, notes, and snippets.

View ch4's full-sized avatar
💯

Harvey ch4

💯
View GitHub Profile
@ch4
ch4 / how-to-publish-to-npm.md
Created November 15, 2020 04:20 — forked from coolaj86/how-to-publish-to-npm.md
How to publish packages to NPM

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"

npm adduser
@ch4
ch4 / curl_pia.php
Created November 25, 2017 06:49 — forked from alexkharlamov/curl_pia.php
Scrape a website using Private Internet Access
$curl = curl_init();
$url = 'http://www.url_you_want_to_scrape.com';
$username = 'username'; // substitute your PIA PPTP/L2TP/SOCKS username (different from regular PIA username)
$password = 'password'; // substitute your PIA PPTP/L2TP/SOCKS password (different from regular PIA password)
$pia_url = 'proxy-nl.privateinternetaccess.com:1080'; // current one should be here: https://helpdesk.privateinternetaccess.com/hc/en-us/articles/236265587-Can-I-Use-SOCKS5-
curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => $url,
CURLOPT_PROXYTYPE => CURLPROXY_SOCKS5,
CURLOPT_PROXY => 'socks5://' . $username . ':' . $password . '@' . $pia_url,
@ch4
ch4 / linkedin auto-inviter
Last active August 20, 2016 22:38 — forked from maksii/linkedin auto-inviter
Script to automatically add connections from "People You May Know" page
var inviter = {} || inviter;
inviter.userList = [];
//inviter.className = 'bt-request-buffed buffed-blue-bkg-1';
inviter.className = 'bt-request-buffed';
inviter.refresh = function () {
window.scrollTo(0, document.body.scrollHeight);
window.scrollTo(document.body.scrollHeight, 0);
window.scrollTo(0, document.body.scrollHeight);
window.scrollTo(document.body.scrollHeight, 0);
{
{I have|I've} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found any interesting article like yours. {It's|It
is} pretty worth enough for me. {In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web owners} and bloggers made good content as
you did, the {internet|net|web} will be {much more|a lot more}
useful than ever before.|
I {couldn't|could not} {resist|refrain from} commenting. {Very well|Perfectly|Well|Exceptionally well} written!|
{I will|I'll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch}
your {rss|rss feed} as I {can not|can't} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service. Do {you have|you've} any?
{Please|Kindly} {allow|permit|let} me {realize|recognize|understand|recognise|know} {so that|in order that} I {may just|may|could} subscribe.
Thanks.|