Skip to content

Instantly share code, notes, and snippets.

@f9n
f9n / unbound-cheat-sheet.md
Last active January 12, 2025 03:47
Unbound Cheat Sheet

Unbound Cheat Sheet

Installation

$ yum install -y unbound

Setup SSL keys for unbound-control

@remino
remino / .gitignore
Last active January 12, 2025 03:39
*
!.gitignore
!make-macos-folder-icns.sh
@imba-tjd
imba-tjd / .Cloud.md
Last active January 12, 2025 03:37
☁️ 一些免费的云资源

  • IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装。PaaS提供语言环境和框架(可以自己选)。SaaS只能使用开发好的软件(卖软件本身,如税务会计、表格文字处理)。BaaS一般类似于非关系数据库,但各家不通用
  • 云服务的特点:零前期成本 & 按需付费 & 弹性(类似于租,可随时多加、退掉;但没有残值)、高可用(放在机房中,不同AZ间水电隔离)

其他人的集合

@Restuta
Restuta / framework-sizes.md
Last active January 12, 2025 03:35
Sizes of JS frameworks, just minified + minified and gzipped, (React, Angular 2, Vue, Ember)

Below is the list of modern JS frameworks and almost frameworks – React, Vue, Angular, Ember and others.

All files were downloaded from https://cdnjs.com and named accordingly. Output from ls command is stripped out (irrelevant stuff)

As-is (minified)

$ ls -lhS
566K Jan 4 22:03 angular2.min.js
@senyaitiya
senyaitiya / youtubeapi.playlistdata
Last active January 12, 2025 03:34
GASとYoutubeAPIで再生リスト内の動画情報を取得
function PlayList() {
//シート定義
const ss = SpreadsheetApp.getActiveSpreadsheet()
const sheetName1 = "シート1";
const srcSheet = ss.getSheetByName(sheetName1);
//データを貼り付けるシートをクリア
srcSheet.clear()
@jaime-a-esquivel-a
jaime-a-esquivel-a / RFC.md
Created January 26, 2023 19:59
Regex para validar RFC

Expresión Regular para validar un RFC

La clave de Registro Federal de Contribuyentes asignada a personas físicas se compone de 13 caracteres.

Primera sección del RFC, Nombre

Comprende los primeros 4 caracteres que equivalen a 4 letras asignadas de la siguiente manera:

  • Caracter 1: Letra inicial de apellido paterno.
  • Caracter 2: Vocal inicial de apellido paterno. (primera vocal)
  • Caracter 3: Letra inicial de apellido materno.
@lvngd
lvngd / rectCollide.js
Created February 3, 2021 19:20
Rectangular collision detection in D3 force layouts. Blog post: https://lvngd.com/blog/rectangular-collision-detection-d3-force-layouts
function rectCollide() {
var nodes,sizes,masses;
var strength = 1;
var iterations = 1;
var nodeCenterX;
var nodeMass;
var nodeCenterY;
function force() {
@bmcbm
bmcbm / setup-nvdia-suspend.sh
Last active January 12, 2025 03:28
NVIDIA Suspend fix
# Use systemd for managing NVIDIA driver suspend in drivers ====>>> PRIOR to version 470 <<<=====
# https://download.nvidia.com/XFree86/Linux-x86_64/450.66/README/powermanagement.html
# https://forums.developer.nvidia.com/t/unable-to-set-nvidia-kernel-module-parameters/161306
# Please note: In Fedora Linux you may need to just install the xorg-x11-drv-nvidia-power pakage
# as sugested by @goombah88 in the comments below.
TMP_PATH=/var/tmp
TMPL_PATH=/usr/share/doc/nvidia-driver-460/
echo "options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=${TMP_PATH}" | sudo tee /etc/modprobe.d/nvidia-power-management.conf
@mrange
mrange / README.md
Last active January 12, 2025 03:23
# F# Advent 2021 Dec 08 - Fast data pipelines with F#6

F# Advent 2021 Dec 08 - Fast data pipelines with F#6

Thanks to Sergey Tihon for running F# Weekly and F# Advent.

Thanks to manofstick for trying out the code and coming with invaluable feedback. Cistern.ValueLinq is very impressive.

TLDR; F#6 enables data pipelines with up to 15x less overhead than LINQ

There were many interesting improvements in F#6 but one in particular caught my eye, the attribute InlineIfLambda.

@ih2502mk
ih2502mk / list.md
Last active January 12, 2025 03:32
Quantopian Lectures Saved