Skip to content

Instantly share code, notes, and snippets.

alias ls='ls --color=auto'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
# Add an "alert" alias for long running commands. Use like so:
@FaustineD
FaustineD / dumb_ap.sh
Created October 10, 2025 20:57 — forked from RustyRouter/dumb_ap.sh
OpenWrt router into a dumb Access Point.
#!/bin/ash
# ========================================================
# Setup a Dumb AP for OpenWRT
# Tested on: Belkin RT3200 (aka. Linksys E8450) 22.03.3
# Script expects factory settings
# Copy the script file to your /tmp folder with SCP
# SSH your router
# Type sh /tmp/dumb_ap.sh
# ========================================================
# Disable IPv6
@FaustineD
FaustineD / MimeTypeVerification.js
Created February 28, 2025 15:06 — forked from GiantZOC/MimeTypeVerification.js
Check the header to see the file type
//https://stackoverflow.com/questions/18299806/how-to-check-file-mime-type-with-javascript-before-upload/29672957#29672957
// Return the first few bytes of the file as a hex string
function getBLOBFileHeader(url, blob, callback) {
var fileReader = new FileReader();
fileReader.onloadend = function (e) {
var arr = (new Uint8Array(e.target.result)).subarray(0, 4);
var header = "";
for (var i = 0; i < arr.length; i++) {
header += pad(arr[i].toString(16), 2);
@FaustineD
FaustineD / gist:4b5c4e40b994c18e2e462a2fe718c1d8
Created November 12, 2018 08:48 — forked from bibendi/gist:7941823
Оформление коммитов

Для оформления сообщения коммита следует использовать следующий шаблон:

<type>(<scope>): <subject>
<BLANK LINE>
<body>

Заголовок

Тип коммита