Skip to content

Instantly share code, notes, and snippets.

View lookfirst's full-sized avatar
💭
25 years of paving open source roads

Public Profile lookfirst

💭
25 years of paving open source roads
View GitHub Profile
#!/usr/bin/env node
/*
* This is Voost's own custom version of the handlebars compiler which walks
* the whole tree and compiles all the files. It supports a directory
* structure and creates the output files in the same structure.
*/
var optimist = require('optimist')
.usage('Precompile handlebar templates.\nUsage: $0 template...', {
'f': {
#!/usr/bin/env node
/*
* This is Voost's own custom version of the handlebars compiler which walks
* the whole tree and compiles all the files. It supports a directory
* structure and creates the output files in the same structure.
*/
var optimist = require('optimist')
.usage('Precompile handlebar templates.\nUsage: $0 template...', {
'f': {
@lookfirst
lookfirst / RemoteApiExample.java
Created May 3, 2016 20:27 — forked from squishypenguin/RemoteApiExample.java
Demonstrates bug in remote api transactional task handling
package com.remoteapi.bug;
import com.google.appengine.api.datastore.*;
import com.google.appengine.api.taskqueue.Queue;
import com.google.appengine.api.taskqueue.QueueFactory;
import com.google.appengine.api.taskqueue.TaskOptions;
import com.google.appengine.tools.remoteapi.RemoteApiInstaller;
import com.google.appengine.tools.remoteapi.RemoteApiOptions;
import java.io.IOException;

Digital Ocean Promo Code for 2017

Save $25 for your Cloud Computing Solution with Digital Ocean.

How to get the Discount?

1.) FIRST! Use this link to Sign Up and get a $10 discount.

2.) Enter the Promocode LOWENDBOX when you choose your payment method and get another $15 discount.

Keybase proof

I hereby claim:

  • I am lookfirst on github.
  • I am latchkey (https://keybase.io/latchkey) on keybase.
  • I have a public key ASAir9hZcjq-KxG3ogHhrxBAONZ4M2FXNDnoogKeRpBA3wo

To claim this, I am signing this object:

Verifying that "jonstevens.id" is my Blockstack ID. https://onename.com/jonstevens
@lookfirst
lookfirst / litecoinpool-workers.js
Last active April 28, 2018 14:10
Script to add workers to litecoinpool. Generate the names somehow. Run it in a Chrome devtools console window while logged into the workers page...
var names = []; // add your names to the array however you want
var password = '123123';
var psselector = "input[name='ps']";
var ps = $(psselector).val();
console.log(ps);
var posts = [];
names.forEach((name) => {
var username = name;
@lookfirst
lookfirst / Code.gs
Created April 30, 2019 06:08
Crypto pricing for Google Sheets
/**
* Crypto pricing for Google Sheets. Caches values for 10 minutes.
*
* Tools -> Script editor, paste this in.
* Create and populate the API key below.
*
* https://www.cryptocompare.com/coins/guides/how-to-use-our-api/
*/
var CC_API_KEY="";
@lookfirst
lookfirst / SchemaProvider.tsx
Created October 9, 2019 09:29
react-final-form Material-UI TextField
import React, {useContext, createContext} from "react";
import {Schema} from "yup";
export const SchemaContext = createContext<Schema<any> | undefined>(undefined);
interface SchemaProviderProps<T> {
value: Schema<T>,
children: React.ReactNode | React.ReactNode[],
}
@lookfirst
lookfirst / insecure.sh
Created November 6, 2021 01:52
keywords: sshpass sudoers nopasswd ubuntu
#!/usr/bin/env bash
export SSHPASS="1"
sshpass -e ssh -o "UserKnownHostsFile=/dev/null" -o StrictHostKeychecking=no -o LogLevel=ERROR user@$1 \
"echo $SSHPASS | sudo -S bash -c 'echo \"user ALL=(ALL) NOPASSWD:ALL\" > /etc/sudoers.d/00-user_nopasswd' 2> /dev/null"