Skip to content

Instantly share code, notes, and snippets.

Jackson Palmer ummjackson

Block or report user

Report or block ummjackson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ummjackson
ummjackson / xrpaway.py
Last active Feb 19, 2019
XRP Away™️ - automatically block XRP fanatics sliding into your Twitter mentions
View xrpaway.py
# Requirement: pip install tweepy
import tweepy
# Credentials go here (generate at: https://apps.twitter.com)
auth = tweepy.OAuthHandler('consumer_key', 'consumer_secret')
auth.set_access_token('access_token', 'access_token_secret')
# Connect to Twitter
api = tweepy.API(auth)
View awdy-bitcoin.py
import time
import pandas as pd
from selenium import webdriver
# These are the variables which must be calculated by the script.
consensus_distribution = None
wealth_distribution = None
client_codebases = None
public_nodes_source = None
@ummjackson
ummjackson / get_friends.js
Created Jun 11, 2018
grab facebook friend URLs
View get_friends.js
var friends = document.querySelectorAll('._698 > div > a');
urls = [];
for (var i = 0, len = friends.length; i < len; i++) {
urls.push(friends[i].href);
}
JSON.stringify(urls);
View gist:95d3cd93f1be0584318bccd337aee61e
Verifying my Blockstack ID is secured with the address 19BXxxDCWdB5dirvY3MevKZFF4RGmCsL2 https://explorer.blockstack.org/address/19BXxxDCWdB5dirvY3MevKZFF4RGmCsL2
View keybase.md

Keybase proof

I hereby claim:

  • I am ummjackson on github.
  • I am ummjackson (https://keybase.io/ummjackson) on keybase.
  • I have a public key whose fingerprint is D27C F799 DEE9 98D0 D042 58C9 43B7 BF18 50B8 8C08

To claim this, I am signing this object:

View phishbert-rocketchat.js
// Phishbert for Rocket.Chat (set this up as an Outgoing Webhook script)
class Script {
prepare_outgoing_request({ request }) {
// Detect phishing attempts and alert channel
let pattern = new RegExp('(0x)?[0-9a-f]{40}|(etherscan.io)', 'gi');
if (pattern.test(request.data.text)) {
return {
message: {
text: [
View data.json
{
"seriesone": [
[1,
100
],
[2,
200
]
],
"seriestwo": [
@ummjackson
ummjackson / chime-backup.md
Created Apr 7, 2017
chime.social data backup, prior to closure of instance.
View chime-backup.md

🔔 chime.social backup

this is a backup of tables containing non-private/sensitive data from chime.social, prior to the closure of the instance.

@ummjackson
ummjackson / entities.js
Created Feb 14, 2017
nunjucks filter to add entities
View entities.js
env.addFilter('addEntities', function(body, entities) {
if (!(entities)) {
return body;
}
// This is very naive, should find a better way to parse this
var index_map = {}
$.each(entities.urls, function(i,entry) {
index_map[entry.indices[0]] = [entry.indices[1], function(text) {return "<a href='"+escapeHTML(entry.url)+"'>"+escapeHTML(text)+"</a>"}]
@ummjackson
ummjackson / social-requirements.md
Created Nov 8, 2016
Brainstorming about what Twitter could be... 🤔
View social-requirements.md

This is a WIP

Basics

  • Implement core feature set of Twitter (users, statuses, followers/friends, lists, blocking)
  • Do not implement direct messaging initially (there are already any IM clients out there)
  • Implement 1:1 replica of Twitter v1.1 API
    • Very generous limits up-front (only what's needed to avoid denial of service / spam attacks)
    • Clients must register a Client ID prior to making requests (same as Twitter)
You can’t perform that action at this time.