Skip to content

Instantly share code, notes, and snippets.

View rememberlenny's full-sized avatar

Leonard Bogdonoff rememberlenny

View GitHub Profile
@chrisn
chrisn / Dockerfile
Last active November 4, 2021 18:57
Compile audiowaveform in Docker for amazonlinux:1
FROM amazonlinux:1
RUN yum -y update
RUN yum -y install make wget tar gcc gcc-c++ file diffutils
RUN wget https://cmake.org/files/v3.7/cmake-3.7.2.tar.gz && \
tar -xzvf cmake-3.7.2.tar.gz && cd cmake-3.7.2 && \
./bootstrap && make && make install
RUN yum -y install cmake autogen automake libtool \
gzip zip libcurl-devel zlib-static libpng-static xz git \
boost-static boost-devel \
bzip2-devel which gd-devel
@mitchellh
mitchellh / post.md
Created August 13, 2019 04:29
Originally posted on Tumblr on Feb 25, 2011.

THIS WAS ORIGINALLY POSTED ON MY TUMBLR ON FEB 25, 2011. I forgot I had a Tumblr account. I recently logged in (in light of the acquisition by Automattic), found some old posts, and I'm republishing them exactly as they were with zero modifications.


CloudFormation: The Big Picture

Amazon announced CloudFormation to the public yesterday, and while the general opinion I could glean from various sources shows that people are excited about this new technology, many are still unsure what it is and how it fits into their current cloud workflow. I feel as though I have a firm grasp on CloudFormation and will attempt to answer some questions here.

Note: I'm definitely not a representative of Amazon in any way, and anything here is simply my educated opinion on the matter.

@klequis
klequis / react-auth0-spa.js
Last active March 29, 2024 01:18
Modification to Auth0Provider in react-auth0-spa.js
import React, { useState, useEffect, useContext } from 'react'
import createAuth0Client from '@auth0/auth0-spa-js'
const DEFAULT_REDIRECT_CALLBACK = () =>
window.history.replaceState({}, document.title, window.location.pathname)
export const Auth0Context = React.createContext()
export const useAuth0 = () => useContext(Auth0Context)
let _initOptions
@greenido
greenido / Equity.md
Created November 30, 2018 17:19 — forked from isaacsanders/Equity.md
Joel Spolsky on Equity for Startups

This is a post by Joel Spolsky. The original post is linked at the bottom.

This is such a common question here and elsewhere that I will attempt to write the world's most canonical answer to this question. Hopefully in the future when someone on answers.onstartups asks how to split up the ownership of their new company, you can simply point to this answer.

The most important principle: Fairness, and the perception of fairness, is much more valuable than owning a large stake. Almost everything that can go wrong in a startup will go wrong, and one of the biggest things that can go wrong is huge, angry, shouting matches between the founders as to who worked harder, who owns more, whose idea was it anyway, etc. That is why I would always rather split a new company 50-50 with a friend than insist on owning 60% because "it was my idea," or because "I was more experienced" or anything else. Why? Because if I split the company 60-40, the company is going to fail when we argue ourselves to death. And if you ju

@Rich-Harris
Rich-Harris / what-is-svelte.md
Last active March 27, 2024 06:09
The truth about Svelte

I've been deceiving you all. I had you believe that Svelte was a UI framework — unlike React and Vue etc, because it shifts work out of the client and into the compiler, but a framework nonetheless.

But that's not exactly accurate. In my defense, I didn't realise it myself until very recently. But with Svelte 3 around the corner, it's time to come clean about what Svelte really is.

Svelte is a language.

Specifically, Svelte is an attempt to answer a question that many people have asked, and a few have answered: what would it look like if we had a language for describing reactive user interfaces?

A few projects that have answered this question:

@eliheuer
eliheuer / font-var.py
Created November 6, 2018 17:21
get axes from a variable font
font("fonts/Font-VF.ttf")
for axis, data in listFontVariations().items():
print((axis, data)) # Get axis info from font
@greenido
greenido / motion.conf
Last active January 22, 2020 18:50
motion conf file for the 'Pi motion detection project'
# Motion for Pi project - main conf.
# This config file was generated by motion 4.0
#
# Author: @greenido
#
# Date: 10/2018
#
# See: https://greenido.wordpress.com/?p=9397
#
# IMPORTANT: Please search after TODO and make sure you change them with your settings.
@faridv
faridv / active-tab.js
Last active June 3, 2021 20:16
Event listener to check if window/tab is active or inactive
$(window).on("blur focus", function (e) {
var prevType = $(this).data("prevType");
if (prevType != e.type) { // reduce double fire issues
switch (e.type) {
case "blur":
// do work
console.log('blurred');
break;
case "focus":
// do work
@rememberlenny
rememberlenny / Download Google Drive files with WGET in 2018
Created September 9, 2018 10:23
Download Google Drive files with WGET in 2018
Download Google Drive files with WGET
Example Google Drive download link:
https://docs.google.com/open?id=FILEIDHERE
To download the file with WGET you need to use this link:
https://googledrive.com/host/FILEIDHERE
Example WGET command:
@Tknott95
Tknott95 / gcloud-quota.MD
Last active October 31, 2020 07:53
Google Cloud FIX for - IN_USE_ADDRESSES | 8 Used Quota | exceeded quotas 8+ needed 1

Google Cloud Deploy fix for 8 used quota limit issue 8+ 1 needed

(visually see servers in pic)

Gcloud Logo

** error message **

IN_USE_ADDRESSES | 8 Used Quota | exceeded quotas 8+ needed 1