This file contains hidden or 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
#!/bin/bash | |
cd ~/code/logdata.wiki/ || exit | |
TS=$(date +'%H:%M:%S') | |
DS=$(date +'%Y-%m-%d') | |
YEAR=$(date +'%Y') | |
CURRENT_LOG_DIR="logs/$YEAR/" | |
# check if current log year exists, creates if no | |
if [ ! -d "$CURRENT_LOG_DIR" ]; then | |
mkdir -p "$CURRENT_LOG_DIR" | |
fi |
This file contains hidden or 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
// Go to here https://www.linkedin.com/feed/following/?filterType=connection | |
// open the chrome dev tools console | |
// paste the following | |
// go grab a cup of tea | |
// get rid of all life coach from linkedin | |
var buttons = $('button'), interval = setInterval(function() { | |
var btn = $('.is-following'); | |
console.log('Clicking:', btn); | |
btn.click(); |
This file contains hidden or 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
# from cryptography | |
# key = None | |
# iv = None | |
# | |
# cipher = None | |
# encryptor = None | |
# ciphertext = None | |
# decryptor = None | |
# plaintext = None |
This file contains hidden or 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
/** | |
MACROS | |
macros.h | |
Purpose: A collection of commonly used Useful C macros. | |
@author Shubham Ramdeo | |
@version 0.2 | |
Released under MIT LICENSE (see LICENSE.txt) | |
*/ |
This file contains hidden or 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
#!/usr/bin/env bash | |
# | |
# gist-backup | |
# | |
# Backs up all your public and private gists | |
# to the given directory. | |
# | |
# Example: | |
# | |
# gist-backup ~/gist-backups |
This file contains hidden or 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
var async = require('async'); | |
var GitHubApi = require('@octokit/rest'); | |
var github = new GitHubApi({ | |
version: '3.0.0', | |
}); | |
github.authenticate({ | |
type: 'oauth', | |
token: 'XXXXXXX' |
NewerOlder