Skip to content

Instantly share code, notes, and snippets.

View BrittonWinterrose's full-sized avatar

Britton Winterrose BrittonWinterrose

View GitHub Profile
@BrittonWinterrose
BrittonWinterrose / LinkedinPowerAddorReject.md
Last active May 7, 2019 21:04
Bulk accept or reject linkedin invitations

Bulk Add / Reject Linked Invites

Click on the lovely “See all >” link. Scroll down the list of pending invitations page. You will see about 20 of pending invitation boxes. Click “-See more-” to show more the invitation boxes in the page. Click “-See more-” repeatedly until you feel it enough. All visible invitation boxes that you see in the page will be accepted automatically by the JavaScript code in the next step.

Open the Developer Panel

In Chrome, Press F12 in Windows or Option-Command-I in Mac, to open the Chrome Developer Panel. Click on the Console tab. It is the JavaScript console panel.

Accept Invites

Copy and paste the following codes by the > and press Enter to execute the code.

@BrittonWinterrose
BrittonWinterrose / tinyproxy.md
Last active March 26, 2019 00:36
Create a tinyproxy with Basic Authentication on Ubuntu

Tinyproxy Compile and Install - Configure tinyproxy as follows

You will need to be SSH'ed into the computer for this.

1. Make sure you're root. If not, run:

sudo su
@BrittonWinterrose
BrittonWinterrose / gist:e02ba66fc3ed4f03c968ab46813e9520
Created March 23, 2019 23:18
How to install Tinyproxy on Ubuntu with Basic Authentication
## First clone, compile, and install from source because Ubuntu apt-get package is out of date.
git clone https://github.com/tinyproxy/tinyproxy.git
sudo apt-get install automake cmake asciidoc
cd tinyproxy
sudo autoreconf -i
sudo ./configure
sudo make
sudo make install
@BrittonWinterrose
BrittonWinterrose / aws_sagemaker_lifecycle_config.txt
Created March 19, 2019 17:27
AWS Sagemaker Lifecycle Configuration Script.
#!/bin/bash
set -e
/home/ec2-user/anaconda3/bin/conda config --append channels conda-forge
/home/ec2-user/anaconda3/bin/conda update --name python3 --all -q -y
/home/ec2-user/anaconda3/bin/conda install -n python3 pandas numpy matplotlib feather-format psycopg2 sqlalchemy sqlite postgresql airflow-with-postgres dask distributed tqdm textblob line_profiler seaborn bokeh scikit-learn -q -y
@BrittonWinterrose
BrittonWinterrose / shared-helpful-scripts.ipynb
Last active February 3, 2019 20:25
Helpful Google Colab Scripts
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@BrittonWinterrose
BrittonWinterrose / linkedin_deleter_archiver
Created February 2, 2019 20:48
Linkedin Message - Auto Archive / Auto Delete
//// LINKEDIN INBOX AUTOMATION /////
// How to use it //
// 1. Go to the LinkedIn messages screen.
// 2. Open up your Chrome Console
// 3. Paste either of the following scripts into the console and hit enter/return to run.
// ARCHIVING SCRIPT
;(function () {
setInterval(() => {
let archived = false;
@BrittonWinterrose
BrittonWinterrose / dark_slack.md
Last active March 19, 2019 17:28
Dark Slack Theme

Dark Slack Theme

How to do it?

1.) copy this code:

// First make sure the wrapper app is loaded
document.addEventListener("DOMContentLoaded", function() {

  // Then get its webviews
@BrittonWinterrose
BrittonWinterrose / Git push deployment in 7 easy steps.md
Last active May 3, 2016 20:34 — forked from thomasfr/Git push deployment in 7 easy steps.md
7 easy steps to automated git push deployments. With small and configurable bash only post-receive hook

How-to setup a simple git push deployment

Questions check out the original here: https://gist.github.com/thomasfr/9691385

On the server (example.com)

  1. We use the user account created in cpanel.

  2. Use the SSH public key used to connect via Putty and FTP.

  3. Create a git bare repo for your project: