Skip to content

Instantly share code, notes, and snippets.

View theabhinavdas's full-sized avatar

Abhinav Das theabhinavdas

View GitHub Profile
@theabhinavdas
theabhinavdas / Javascript RandomDate
Created December 7, 2021 00:12 — forked from nick-desteffen/Javascript RandomDate
Function to generate a random date between 2 dates
start = new Date(2001, 0, 1)
end = new Date()
function randomDate(start, end) {
return new Date(start.getTime() + Math.random() * (end.getTime() - start.getTime()))
}
//http://apod.nasa.gov/apod/ap950616.html
Verifying my Blockstack ID is secured with the address 1E78PEppNeEHC6PcSixBBDhAi7QCE6n4Wg https://explorer.blockstack.org/address/1E78PEppNeEHC6PcSixBBDhAi7QCE6n4Wg
@theabhinavdas
theabhinavdas / unfollow-all.md
Created March 30, 2018 21:08 — forked from xeloader/unfollow-all.md
Unfollow everyone on LinkedIn

Unfollow everyone on Social Media

Unfollow everyone on LinkedIn

LinkedIn is even more clickbait than Facebook nowadays. Adios. 💣

Visit https://www.linkedin.com/feed/following/

Scroll down to load all of your contacts

Open developer console, run the following

function setValueEndorsee(rows) {
console.log(rows);
var cleanRows = JSON.stringify(rows, 0, 2);
//endorsee_list_db = arr;
console.log(cleanRows);
endorsee_list_db = JSON.parse(cleanRows);
console.log(endorsee_list_db.dataValues);
}
[
{
"id": 1,
"endorsed_by": 13,
"endorsee": 14,
"skill_id": 1,
"created_at": "2017-08-23T04:34:20.000Z",
"updated_at": "2017-08-23T04:34:20.000Z"
}
]
[ endorsements {
dataValues:
{ id: 1,
endorsed_by: 13,
endorsee: 14,
skill_id: 1,
created_at: 2017-08-23T04:34:20.000Z,
updated_at: 2017-08-23T04:34:20.000Z },
_previousDataValues:
{ id: 1,
[ [ '0',
endorsements {
dataValues: [Object],
_previousDataValues: [Object],
_changed: {},
_modelOptions: [Object],
_options: [Object],
hasPrimaryKeys: true,
__eagerlyLoadedAssociations: [],
isNewRecord: false } ] ]
DM.fetchEndorsementHistoryOutgoing({
email: req.session.user_email
}, function (e, o1) {
if (e) {
//Log errors if insert into DB fails
console.log(e);
} else {
setValueEndorsee(o1);
}
0x2Fdf39101Cb2a5720a14158959752ab0942a2220
#!/usr/bin/perl -w
use strict;
use IO::Socket::INET;
use IO::Socket::SSL;
use Getopt::Long;
use Config;
$SIG{'PIPE'} = 'IGNORE'; #Ignore broken pipe errors
print <<EOTEXT;