Skip to content

Instantly share code, notes, and snippets.

@levigideon
levigideon / colors.json
Created August 20, 2015 19:19
Datsun Color Codes
[
{
"year": "1967",
"make": "Datsun",
"color-name": "White",
"hex": "E6DDCA"
},
{
"year": "1967",
"make": "Datsun",
@unique-EJ
unique-EJ / decimal-to-hexadecimal-command
Created December 27, 2024 20:27
Linux command-line to convert decimal values to hexadecimal.
# Linux command-line - AWK text processing language program.
awk $'BEGIN { print "Type decimal (input) values to have the converted hexadecimal value output. CTRL-d to end." }\n{ printf "%s%x\\n", "Hex: ", $0 }'
@jmcmellen
jmcmellen / DASL Filter for Outlook.txt
Created March 11, 2016 20:12
Filter Outlook view to show only unread, flagged, or today's email
("urn:schemas:httpmail:read" = 0 OR "http://schemas.microsoft.com/mapi/proptag/0x10900003" > 1 OR
%today("urn:schemas:httpmail:datereceived")% )
@yufengwng
yufengwng / arch_cheatsheet.txt
Last active December 27, 2024 20:20
Arch Linux Commands Cheatsheet
pacman
======
view logs: /var/log/pacman.log
update system
# pacman -Syu
list installed packages
# pacman -Q
@tayvano
tayvano / gist:6e2d456a9897f55025e25035478a3a50
Created February 19, 2017 05:29
complete list of ffmpeg flags / commands
Originall From: Posted 2015-05-29 http://ubwg.net/b/full-list-of-ffmpeg-flags-and-options
This is the complete list that’s outputted by ffmpeg when running ffmpeg -h full.
usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}…
Getting help:
-h — print basic options
-h long — print more options
-h full — print all options (including all format and codec specific options, very long)
@Titiaiev
Titiaiev / bash-guide-1.md
Last active December 27, 2024 20:14
шпаргалка по написанию bash скриптов, по ссылке - оригинальная статья на хабре

Бесплатная книга-сайт на русском, полный гайд
Advanced Bash-Scripting Guide

Введение

BASH — Bourne-Again SHell (что может переводится как «перерожденный шел», или «Снова шел Борна(создатель sh)»), самый популярный командный интерпретатор в юниксоподобных системах, в особенности в GNU/Linux. Ниже приведу ряд встроенных команд, которые мы будем использовать для создания своих скриптов.

>break выход из цикла for, while или until

@brianclements
brianclements / Commit Formatting.md
Last active December 27, 2024 20:12
Angular Commit Format Reference Sheet

Commit Message Format

This specification is inspired by and supersedes the [AngularJS commit message format][commit-message-format].

We have very precise rules over how our Git commit messages must be formatted. This format leads to easier to read commit history.

Each commit message consists of a header, a body, and a footer.

@jorcelinojunior
jorcelinojunior / cursor_appimage_manager.sh
Last active December 27, 2024 20:08
Automate the integration of Cursor .AppImage on Linux: updates .desktop, manages icons, ensures the latest version, and configures AppArmor (Required for Ubuntu 24.04).
#!/bin/bash
set -euo pipefail
# Definition of colors for terminal output
readonly RED_COLOR="\e[31m"
readonly GREEN_COLOR="\e[32m"
readonly YELLOW_COLOR="\e[33m"
readonly BLUE_COLOR="\e[34m"
readonly MAGENTA_COLOR="\e[35m"
@47ronin
47ronin / yt-dlp.sh
Last active December 27, 2024 20:02
Use yt-dlp to merge best video and best audio formats together into an MPEG-4 container, check for AV1/VP9, and transcode to H.264 if necessary. Usage: ./yt-dlp.sh <video_url>
#!/bin/bash
youtube_url="$1"
echo "Downloading video..."
video_info=$(yt-dlp -e -o "%(title)s" -- "$youtube_url")
sanitized_title=$(echo "$video_info" | sed 's/[^a-zA-Z0-9_.-]/_/g')
output_file="${sanitized_title}.mp4"
yt-dlp -o "temp.mp4" -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' -- "$youtube_url"
@Konfekt
Konfekt / aichat.vim
Last active December 27, 2024 20:00
Vim commands to pipe text to aichat and open a chat window
function! s:ProcessInstruction(instruction) abort
let instruction = trim(a:instruction)
if instruction[0] ==# '/'
let i = match(instruction . ' ', '\s')
if i > 1
" Extract the role and the remaining instruction
let role = instruction[1:i-1]
let instruction = trim(instruction[i:-1])
else