Skip to content

Instantly share code, notes, and snippets.

@loilo
loilo / idb-backup-and-restore.md
Last active October 18, 2024 01:38
Back up and restore an IndexedDB database

Back up and restore an IndexedDB database

This gist is an ES module which provides functions to import and export data from an IndexedDB database as JSON. It's based on Justin Emery's indexeddb-export-import package, but applies some adjustments that reflect better on the current browser landscape (i.e. better developer ergonomics but no support for Internet Explorer).

Usage

For each of the provided functionalities, you need a connected IDBDatabase instance.

Export Data

import { idb } from 'some-database'
@LEOYoon-Tsaw
LEOYoon-Tsaw / kuankhiunn.dict.yaml
Last active October 18, 2024 01:32
基於Polyhedron、有女同車整理的《廣韻全字表》製作 拼寫方案採用有女同車羅馬字,佛振根據有女同車的修改意見改編 雪齋在此基礎上寫出反算廣韻漢字聲韻調算法 以倉頡五代或拼音輸入均可反查廣韻,正常輸入卽默認爲反查模式 顯示結果爲:「聲母〖介音〗韻母【聲調】」 韻母皆舉平以賅上去入,脣音無開合,分重紐 聲母可選是否區分輕重脣音,聲調可選是否區分陰陽
# Rime dictionary
# encoding: utf-8
#
# kuankhiunn - 廣韻羅馬字
#
# 基於Polyhedron、有女同車整理的《廣韻全字表》製作
# 拼寫方案採用有女同車羅馬字,佛振根據有女同車的修改意見改編
#
---
==========================
How Software Companies Die
==========================
- Orson Scott Card
The environment that nurtures creative programmers kills management and
marketing types - and vice versa.
Programming is the Great Game. It consumes you, body and soul. When
you're caught up in it, nothing else matters. When you emerge into
@Arnavion
Arnavion / 01_build.sh
Created February 3, 2023 05:08
steam in podman container
# ~/src/non-oss-container/build.sh
#!/bin/bash
set -euo pipefail
mkdir -p ~/non-oss-root/
podman image rm --force localhost/non-oss || :
@yassineaboukir
yassineaboukir / List of API endpoints & objects
Last active October 18, 2024 01:28
A list of 3203 common API endpoints and objects designed for fuzzing.
0
00
01
02
03
1
1.0
10
100
1000
@emxsys
emxsys / raspberry_pi_script_as_service.md
Last active October 18, 2024 01:24
How to run a python script as a service in Raspberry Pi - Raspbian Jessie

How to Run a Script as a Service in Raspberry Pi - Raspbian Jessie

By: Diego Acuña

Original Article: http://www.diegoacuna.me/how-to-run-a-script-as-a-service-in-raspberry-pi-raspbian-jessie/

A pretty common task when using this device, is to run some script (for example a python script) as a service in the operating system so it can start on boot, stop and restart using systemctl and more. In this post I'm going to explain how to set a little script as a service using Raspbian Jessie in a Raspberry Pi.

Example Python Script

@asukakenji
asukakenji / 0-go-os-arch.md
Last active October 18, 2024 01:21
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.17.1 darwin/amd64.

GOOS Values

GOOS Out of the Box
aix
android
@justincbagley
justincbagley / How_to_Convert_Markdown_to_PDF.md
Last active October 18, 2024 01:18
How To Convert Markdown to PDF

How to convert markdown to PDF:

This post reviews several methods for converting a Markdown (.md) formatted file to PDF, from UNIX or Linux machines.

Using Pandoc:

$ pandoc How_I_got_svg-resizer_working_on_Mac_OSX.md -s -o test1.pdf
@roachhd
roachhd / README.md
Last active October 18, 2024 01:17
Basics of BrainFuck

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

BrainFuck Programming Tutorial by: Katie

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

INTRODUCTION