Skip to content

Instantly share code, notes, and snippets.

@bittner
bittner / keyboard-keys.md
Created February 28, 2019 22:50
Keyboard keys markup in MarkDown

Ctrl + Alt + Space

@sindresorhus
sindresorhus / esm-package.md
Last active April 19, 2024 10:56
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@BobbyESP
BobbyESP / libs.versions.toml
Created April 29, 2023 10:05
A very complete TOML file for Android Development mainly thought for the new Jetpack Compose framework
[versions]
accompanist = "0.29.2-rc"
androidGradlePlugin = "7.4.2"
androidxComposeBom = "2023.01.00"
androidxComposeCompiler = "1.4.6"
androidxCore = "1.10.0-rc01"
androidMaterial = "1.9.0-alpha02"
androidxAppCompat = "1.7.0-alpha02"
androidxActivity = "1.7.1"
markdownDependency = "0.3.2"
@l1997i
l1997i / NotesOnLaTeX.md
Last active April 19, 2024 10:53
My notes for LaTeX

LaTeX 学习笔记

Author:李 理

部分代码来源于网络,所有原创文章采用知识共享署名-非商业性使用 4.0 国际许可协议进行许可。可以自由的转载和修改,但请务必注明文章来源并且不可用于商业目的。

常规操作

插入图片、图注和引用

@hootlex
hootlex / laravellocal.md
Last active April 19, 2024 10:52
Run laravel project locally

##Windows users:

cmder will be refered as console

##Mac Os, Ubuntu and windows users continue here:

  • Create a database locally named homestead utf8_general_ci
@tluyben
tluyben / s-expression.ts
Created July 5, 2023 08:57
simple s-expression parser for typescript
export function parse(lisp: string) {
const lexer = /"[^"]*"|\(|\)|[^\s()]+/g;
const ts = lisp.match(lexer)!;
let i = 0
const rec = () => {
let prg: any = undefined
while (i < ts.length) {
if (ts[i] === '(') {
if (!prg) {
@fomvasss
fomvasss / Шпаргалка по Markdown.md
Created October 26, 2018 22:39
Шпаргалка по Markdown
@assimilat
assimilat / pam_modules.list
Created October 22, 2021 19:10
list_of_pam_modules
https://github.com/nuvious/pam-duress
A Pluggable Authentication Module (PAM) which allows the establishment of alternate passwords that can be used to perform actions to clear sensitive data, notify IT/Security staff, close off sensitive network connections, etc if a user is coerced into giving a threat actor a password.
https://github.com/uber/pam-ussh
uber's ssh certificate pam module
https://github.com/Yubico/yubico-pam
Yubico Pluggable Authentication Module (PAM)
https://github.com/hamzasood/pam_touchid
#!/usr/bin/env python3
from decimal import Decimal
import re
import yaml
from yaml.composer import Composer
from yaml.constructor import SafeConstructor
from yaml.parser import Parser
from yaml.reader import Reader
from yaml.resolver import BaseResolver, Resolver as DefaultResolver
@mikroskeem
mikroskeem / 0x0.sh
Last active April 19, 2024 10:46
Arch Linux must-have packages
#!/usr/bin/env bash
0x0() {
case "${1}" in
"s")
shift
local url=`curl --silent -F"shorten=${1}" https://0x0.st | sed 's/\n//'`
echo -n "${url}"
;;
"u")