Skip to content

Instantly share code, notes, and snippets.

@empeje
empeje / openapi.yaml
Last active October 17, 2024 23:52
eSIM Go - v2.4 fix
openapi: 3.0.0
info:
title: eSIM-GO API
version: 2.4.0
servers:
- url: https://api.esim-go.com/v2.4
description: eSIMGo API
components:
securitySchemes:
apikeyAuth:
@empeje
empeje / CLOUD.md
Created January 9, 2024 16:54
Cloud type mapping swimcat
Cloud Categories Corresponding Cloud Types Altitude Appearance and Characteristics
Clear Sky Generally denotes an absence of clouds N/A No clouds visible, allowing direct view of the sky.
Patterned Clouds Altocumulus, Stratocumulus
@empeje
empeje / SSLmode.md
Created October 14, 2023 09:45
SSL mode
sslmode Eavesdropping protection MITM protection Statement
disable No No I don't care about security, and I don't want to pay the overhead of encryption.
allow Maybe No I don't care about security, but I will pay the overhead of encryption if the server insists on it.
prefer Maybe No I don't care about encryption, but I wish to pay the overhead of encryption if the server supports it.
require Yes No I want my data to be encrypted, and I accept the overhead. I trust that the network will make sure I always connect to the server I want.
verify-ca Yes Depends on CA policy I want my data encrypted, and I accept the overhead. I want to be sure that I connect to a server that I trust.
verify-full Yes Yes I want my data encrypted, and I accept the overhead. I want to be sure that I connect to a server I trust, and that it's the one I specify.
@empeje
empeje / code.gs
Created August 4, 2023 16:42
App Script
function onEdit(e) {
updateTimestamp(e) // modularize in separate function and add it in the onEdit hook
}
function updateTimestamp(e) {
var ss=SpreadsheetApp.getActiveSpreadsheet();
if(ss.getSheetName() === "Jobs") { // change your sheet name here
ss.setCurrentCell(ss.getRange(`C${ss.getActiveCell().getRow()}`)) // change C to something else if the column is different
var activeCell = ss.getCurrentCell()
var now = new Date()
@empeje
empeje / 0001_initial.py
Last active August 1, 2023 18:49
Override django-rest-passwordreset for CockroachDB
# -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-13 17:53
from __future__ import unicode_literals
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
{
"title": "Asset metadata",
"type": "object",
"properties": {
"image": {
"type": "string",
"description": "https://github.com/empeje.png"
}
}
}
@empeje
empeje / gist:590631b9cf44a38cb48934c20f4865b1
Created April 16, 2023 08:18 — forked from collinprice/gist:9541470
Base64 encoded audio file.
var sound = new Audio("data:audio/wav;base64,UklGRuy3AABXQVZFZm10IBAAAAABAAEAIlYAACJWAAABAAgAZGF0Yci3AACIhISCgH5+enx+gHx4cm5udHp+fHh0cHJ0enx8enx+fn6GiIyMiIaKio6Wmp6goJycnp6coJ6cnJqanqSoqqigmJKSmJygop6ampycmpaOjIiIhoSChoiGgHx2cG5qaGhiYmRkZmRgXFpUUlJUVlhcVlZYWmBgYFxaWlxiZmpsbGxsampubnBwbmxsbnB0cHBubGpqbGxwcnRwbnB2enyAfoB8fH5+goSEhISCgICEhoyKhoCChIiMjIyKiIaCgoaMioiEhISGjpaanJyYlpSWnqKkoJyYlpiYmJaSkI6MioSKjIyIhIB8en5+fHp2eHp6fn6AfHp8enh8foSEgoJ+foKGiIaAeHR2dn58fHx8fHZ2cnBydnRwcHJ6fHp2dHBwbm5sbm5wcHJubnB0dHBwbG50dnx8enp4enZ2dnZ0dnh4fH5+fHp2dHR0enZ0cnZ6eHp6eHh0dnh0dHZ2eHZ0cGxqamZiXFpYWFhaWlhYVlhYVlZaWl5gYGJkZmhoaGxucHJ0eHR2en58fHh0dnZ8foCAgH6ChoSEhISEhoaIjJKWmpiSkpSWmp6enJiampqcnpqYkI6MjIyOjIiGhoiIhoqIiISChISKjo6MiISEhoqOkJKSkpSQjpKYmpqWkJCOkpKUkpKQio6OjI6MhoKAenp2dHJuamhoZGRoamhmZmZkZmhqamhoaGxsbm5qamZoaGpqbm5ubmxuamxsbm50cnR2fHx+foSAfn6CiIqMjpKSkpaeoqCWlJSWlpSanp6alJSSkJCSlpaSkpKWmqCemJKOjI6SlpaYnJqUlJaYlpKQkJCSlpqYkI6OjoyKiIiEgHx+hoaIhoJ8dHBucnR0cHJycHJucGpoZmZoZGZoaG5ubmpsamhkZGRkZGZqbGhmZmhkZGZkYmJkZGZqbG5wcGh
@empeje
empeje / README.md
Last active April 8, 2023 21:15
Zapier

Zapier script for script kiddies.

@empeje
empeje / README.md
Created March 21, 2023 13:38
Fix installing Pyenv or any other library in MacOS Apple Silicon

I got the following errors

python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.8.14.tar.xz...
-> https://www.python.org/ftp/python/3.8.14/Python-3.8.14.tar.xz
Installing Python-3.8.14...
python-build: use readline from homebrew
python-build: use zlib from homebrew