Skip to content

Instantly share code, notes, and snippets.

@tedder
tedder / docker-compose.yml
Last active July 26, 2021 15:01
helium validator + watchtower (with consensus check) + exporter
# launch: docker-compose up -d
version: "3.7"
services:
validator:
image: quay.io/team-helium/validator:latest-validator-amd64
container_name: validator
init: true
restart: always
ports:
- "2154:2154"
@m-Phoenix852
m-Phoenix852 / discord-token-logger.js
Created August 26, 2020 07:45
Simple script to log in to discord account using token.
let token = "your token";
function login(token) {
setInterval(() => {
document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"`
}, 50);
setTimeout(() => {
location.reload();
}, 2500);
}
@mattnewport
mattnewport / planetppm.hoon
Created August 29, 2019 03:54
Procedural Planet raytracer in Hoon
|= dim=@ud ^- (list @t)
=/ dx (div:rs .1 (sun:rs dim))
=/ white [.1 .1 .1]
=< (genppm dim)
|%
++ min
|= [x=@rs y=@rs] ^- @rs
?: (lth:rs x y) x y
++ max
|= [x=@rs y=@rs] ^- @rs
@Beasta
Beasta / fullCalendarIframe.html
Created May 16, 2017 01:02
Basic Google Calendar integration for fullcalendar
<link href="//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.min.css" rel="stylesheet">
<link href="//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.print.css" rel="stylesheet" media="print">
<script src="https://momentjs.com/downloads/moment.min.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script type='text/javascript' src='//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.min.js'></script>
<script type='text/javascript' src='//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/gcal.min.js'></script>
<script type='text/javascript'>
// posting this because the following is a poor example https://fullcalendar.io/docs/google_calendar/
// This was used to wrap google calendar in squarespace and make it look tremendously better
$(document).ready(function() {
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 42 columns, instead of 22. in line 2.
Timestamp,First and Last Name,Hummingbird,Bluejay,Dolphin,Squirrel,Mouse,Sheep,Kangaroo,Owl,Cat,Toad,Frog,Ptarmigan,Elephant,Tapir,Gecko,Starling,Whale,Starfish,Pig,Dog,Rabbit,Chimpanzee,Lizard,Lion,Canary,Tiger,Lemur,Moose,Bobcat,Penguin,Gorilla,Shark,Jellyfish,Possum,Cicada,Panther,Bear,Parrot,Leopard,Panda
,Hummingbird,,I would especially enjoy working with this person.,,,,,,,,,,,,,,,I would especially enjoy working with this person.,I would especially enjoy working with this person.,,,,,,,,,,I would especially enjoy working with this person.,,,,I would especially enjoy working with this person.,,,,,,,,
,Bluejay,I would especially enjoy working with this person.,,I would especially enjoy working with this person.,,I would especially enjoy working with this person.,,,,"I would refuse to work with this person, due to OUR INTERPERSONAL ISSUES","I would refuse to work with this person, due to OUR INTERPERSONAL ISSUES",,,,I would especially enjoy working with this person.,,,,,,I would especially enjoy working w
@edoshor
edoshor / enhance_user.py
Created April 27, 2015 08:36
Enhance user profile on signup
import analytics
from piplapis.search import SearchAPIRequest
def enhance_segment_user(user):
resp = SearchAPIRequest(email=user.email,
first_name=user.first_name,
last_name=user.last_name,
show_sources='matching').send()
@hbin
hbin / bootstrap-scripts.md
Last active December 21, 2022 13:36
Bootstrap scripts

Bootstrap scripts

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install curl git-core python-software-properties

Firewall

@sjwilliams
sjwilliams / gist:3903157
Created October 17, 2012 01:03 — forked from lucasfais/gist:1207002
Sublime Text 2 Cheat Sheet. Shortcuts, including Vintage mode.

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘KB toggle side bar
⌘⇧P command prompt
⌃ ` python console
⌘⇧N new window (useful for new project)