Skip to content

Instantly share code, notes, and snippets.

@liangfu
liangfu / ffmpeg.md
Created May 24, 2017 04:46 — forked from protrolium/ffmpeg.md
using ffmpeg to extract audio from video files

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:

@HStep20
HStep20 / tag_sonarr_radarr_media_with_overseer_users.py
Last active April 25, 2024 11:54
This script will read your Overseer data and create/apply user tags to all of your sonarr/radarr instances
"""
This script will read your Overseer data and create/apply user tags to all of your sonarr/radarr instances, then create a filter in each connected -arr application for the users you specify.
It is forward compatible with the future User Tagging feature of overseer, and formats the tag in the same 'id - lowercase username' pattern Overseer will
It only uses built in python libraries, so you should be able to download and run without much hassle.
NOTE: YOU ARE REQUIRED TO USE IP:PORT CONNECTIONS FOR YOUR SONARR/RADARR INSTANCES INSIDE OF OVERSEERR
This will NOT utilize docker-compose style hostnames at the moment, and I don't use them personally, so I don't see myself adding them
Steps to use:
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@DOBRO
DOBRO / UCI-Protocol-Specification.txt
Last active April 25, 2024 11:49
Description of the Universal Chess Interface (UCI)
// Dowloaded from: http://download.shredderchess.com/div/uci.zip
Description of the universal chess interface (UCI) April 2006
=================================================================
* The specification is independent of the operating system. For Windows,
the engine is a normal exe file, either a console or "real" windows application.
* all communication is done via standard input and output with text commands,

中国传统色

《色谱》. 中科院科技情报编委会名词室. 科学出版社, 1957.

ID 预览 名称 英文 色号 反预览 反色号
1 ██████ 暗玉紫 ANYUZI #5C2223 ██████ #A3DDDC
2 ██████ 牡丹粉红 MUDANFENHONG #EEA2A4 ██████ #115D5B
3 ██████ 栗紫 LIZI #5A191B ██████ #A5E6E4
4 ██████ 香叶红 XIANGYEHONG #F07C82 ██████
@JoshuaTPierce
JoshuaTPierce / RMD_and_GitHub.docx
Created June 7, 2017 17:21
Creating and Pushing a R-Markdown Document to Github (including graphs)
Go to github
Create new repository [don't need to initialize with the readme (can add later)]
Go to R Studio
File -> New Project -> Version Control -> Git
Ctrl+V repository URL from GitHub
File -> New -> Markdown, enter Title, etc.
In the Markdown window, change "output=html_document" to "output=github_document"
Knit the document for the first time, will prompt you to save
Save as Title.rmd
In the "git" tab of the R studio Environment window, you will notice that the knit produced:
@Klerith
Klerith / pasos-node-typescript.md
Last active April 25, 2024 11:39
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)
@StevenACoffman
StevenACoffman / Homoglyphs.md
Last active April 25, 2024 11:38
Unicode Look-alikes

Unicode Character Look-Alikes

Original Letter Look-Alike(s)
a а ạ ą ä à á ą
c с ƈ ċ
d ԁ ɗ
e е ẹ ė é è
g ġ
h һ