Skip to content

Instantly share code, notes, and snippets.

View bradlucas's full-sized avatar

Brad Lucas bradlucas

View GitHub Profile
@bradlucas
bradlucas / installing-get-on-centos.md
Created February 10, 2018 14:25
Installing Geth on Centos
$ sudo yum -y update
$ sudo yum -y install golang
$ sudo yum -y install gmp-devel
$ sudo yum -y install git
$ git clone https://github.com/ethereum/go-ethereum
$ cd go-ethereum/
$ make geth
$ ls -al build/bin/geth
@bradlucas
bradlucas / delete.md
Created March 26, 2021 13:21 — forked from timwco/delete.md
LinkedIn: Delete Messages (April 2020)

What

LinkedIn is a valuable resource, but sometimes it sucks. One of those times is when you want to delete messages. You have to select each message one by one. It takes about 4 "clicks" to successfully delete a message.

This script should help. Since LI requires you to perform multiple steps, I decided to automate it for you. Once you initiate the script, it will run every second. If a message has the ability to be deleted, it will be. If not, it will be archived. Some "InMail" messages cannot be deleted on the web app. This script should work as long as LI doesn't change their page layout or element names, which will happen eventually.

Last tested: April, 29, 2020

Setup & Cavets

@bradlucas
bradlucas / filter-branch-new-repo-from-folder
Created November 20, 2020 18:33 — forked from FabreFrederic/filter-branch-new-repo-from-folder
Splitting a subfolder out into a new repository
git filter-branch --prune-empty --subdirectory-filter my_folder_name
@bradlucas
bradlucas / list.md
Created November 2, 2020 12:43 — forked from ih2502mk/list.md
Quantopian Lectures Saved
@bradlucas
bradlucas / hadoop-map-reduce.clj
Created July 16, 2020 01:54 — forked from BertrandDechoux/hadoop-map-reduce.clj
Hadoop map-reduce explained with clojure map, reduce and mapcat using the word count example.
; Interested in a short introduction to hadoop mapreduce?
(declare mapreduce)
; Let's look at the "hello world job" ie word count.
(def input [
[1 "hadoop map-reduce explained"]
[2 "with clojure map, reduce and mapcat"]
[3 "using the world count example"]])
@bradlucas
bradlucas / tree-seq-extra.clj
Created December 21, 2019 13:41 — forked from stathissideris/tree-seq-extra.clj
Like Clojure's tree-seq, but with depth info for each node or the full path (recursive - blow up the stack for deep trees)
(defn tree-seq-depth
"Returns a lazy sequence of vectors of the nodes in a tree and their
depth as [node depth], via a depth-first walk. branch? must be a fn
of one arg that returns true if passed a node that can have
children (but may not). children must be a fn of one arg that
returns a sequence of the children. Will only be called on nodes for
which branch? returns true. Root is the root node of the tree."
[branch? children root]
(let [walk (fn walk [depth node]
(lazy-seq
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.