Skip to content

Instantly share code, notes, and snippets.

// Processing code by Etienne JACOB
// motion blur template by beesandbombs
// opensimplexnoise code in another tab might be necessary
// --> code here : https://gist.github.com/Bleuje/fce86ef35b66c4a2b6a469b27163591e
// Warning : this code just shows how a gif was made, it's not intended to be pedagogical, show good coding practices or be clever
int[][] result;
float t, c;
# from https://github.com/joerichsen/phoenix_live_view_example/blob/be9315feb30f377fb144b1b03b2f93f792bfbfa7/lib/demo_web/live/table_live.ex
defmodule DemoWeb.TableLive do
use Phoenix.LiveView
def render(assigns) do
~L"""
<form phx-change="search"><input type="text" name="query" value="<%= @query %>" placeholder="Search..." /></form>
<table>
<thead>
@jimm
jimm / pingpong_with_count.exs
Created January 31, 2019 14:49
Elixir process receive loop / state / response example
#!/usr/bin/env elixir
defmodule Sync do
def pingpong do
# Create process and save pid.
child = spawn(Sync, :loop, [0]) # module, sym, args
# Send some messages to the child
send(child, {self(), :count})
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active July 31, 2026 21:16
set -e, -u, -o, -x pipefail explanation
@jc00ke
jc00ke / install-2.3.1.md
Last active June 28, 2019 22:21
Install Ruby 2.3.1 on Manjaro Linux
$> sudo pacman -S gcc5 openssl-1.0
$> CC=gcc-5 CXX=g++-5 PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig/:/usr/lib/pkgconfig/RUBY_CONFIGURE_OPTS=--with-openssl-dir=/usr
/lib/openssl-1.0/ asdf install ruby 2.3.1

Detailed steps

@stephen-mw
stephen-mw / go_null_json_example.go
Last active February 6, 2025 00:09
Golang http server with sql null values and json
package main
import (
"database/sql"
"encoding/json"
"log"
"net/http"
"strconv"
_ "github.com/mattn/go-sqlite3"
@hez
hez / estimation.markdown
Last active December 12, 2018 17:24
On Estimating

On Estimating

Charlie Tanksley

Has anyone ever worked somewhere that was good at setting timelines for shipping software (implied in ‘good’ means hit the timelines)?

Steve Wan

I have Charlie. :)

@alexishida
alexishida / nginx-config-auth-cert-ssl.md
Last active June 23, 2026 05:08
Tutorial to configure Nginx client-side SSL certificates.

Client-side SSL

For excessively paranoid client authentication.

Original: https://gist.github.com/mtigas/952344

Convert SSL certificate from CRT format to PEM

openssl x509 -in server.crt -out server.der -outform DER
openssl x509 -in server.der -inform DER -out server.pem -outform PEM
@fischejo
fischejo / rofi-firefox.sh
Last active August 17, 2022 23:44
adds selection of firefox profiles to rofi menu
#!/bin/bash
MOZILLA_CONFIG=~/.mozilla
FIREFOX='/usr/bin/firefox'
NAMES=($(awk -F "=" '/Name/ {print $2}' $MOZILLA_CONFIG/firefox/profiles.ini | tr -d ' '))
if [ -z $@ ]
then
echo "Profile Manager"
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active July 11, 2026 13:23 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.