Skip to content

Instantly share code, notes, and snippets.

@lukaszgrolik
lukaszgrolik / font-weights.md
Last active April 24, 2024 11:29
Commonly used names for CSS font-weight values

unknown source

value name
100 extralight/ultralight
200 light/thin
300 book/demi/light
400 regular/normal
500 medium
600 semibold/demibold
@georgy7
georgy7 / extract_mbox_attachments.py
Last active April 24, 2024 11:29
Extract attachments from mbox file.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Modified.
# Original script source:
# http://blog.marcbelmont.com/2012/10/script-to-extract-email-attachments.html
# https://web.archive.org/web/20150312172727/http://blog.marcbelmont.com/2012/10/script-to-extract-email-attachments.html
# Usage:
# Run the script from a folder with file "all.mbox"
@mattratleph
mattratleph / vimdiff.md
Last active April 24, 2024 11:28 — forked from roothybrid7/vimdiff_cheet.md
vimdiff cheat sheet

vimdiff cheat sheet

##git mergetool

In the middle file (future merged file), you can navigate between conflicts with ]c and [c.

Choose which version you want to keep with :diffget //2 or :diffget //3 (the //2 and //3 are unique identifiers for the target/master copy and the merge/branch copy file names).

:diffupdate (to remove leftover spacing issues)

:only (once you’re done reviewing all conflicts, this shows only the middle/merged file)

국산 유료 Reporting Tool

OZ Report

  • 회사: 포시에스
  • http://www.forcs.com/oz-report/
  • 커뮤니티 의견
    -기능적으로 우수하다는 평
    -라이센스 비용이 비쌈
    -지원이 잘됨
    
sudo nala install git curl wget nano htop bash-completion tree zsh trash-cli trash-cli python3-dev python3-pip python3-setuptools snapd
pip3 install thefuck --user
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg &&
sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg &&
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list >/dev/null
sudo nala update
sudo nala install gh -y
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
@gafda
gafda / wsl-setup.sh
Last active April 24, 2024 11:24
WSL2 Startup process
#!/bin/bash
# Install WSL Ubuntu: wsl --install -d Ubuntu-22.04
# Stop WSL Ubuntu: wsl --shutdown Ubuntu-22.04
# Uninstall WSL Ubuntu: wsl --unregister Ubuntu-22.04
# List all WSL images: wsl -l -v
DISTRO=ubuntu2204
architecture=$(uname -m)
%This is a basic English-to-Prolog translator. It uses a
%pathfinding algorithm to find the meaning of each sentence.
%For example, output([a,is,greater,than,B],X) means X = (a > b).
%The input is an English phrase. The output is a Prolog expression.
output(Input,Output) :-
is_output(Output),
means(Input,Output).
@VermeilChan
VermeilChan / compile-aseprite-win.md
Last active April 24, 2024 11:19
Compile Aseprite from source code for Windows 11/10 x64
@Jekins
Jekins / Markdown-docs.md
Last active April 24, 2024 11:17
Руководство по оформлению Markdown файлов

Руководство по оформлению Markdown файлов

Markdown - это облегчённый язык разметки, который преобразует текст в структурированный HTML. Следующее руководство поможет вам разобраться, как использовать Markdown.

Заголовки

# Заголовок первого уровня
## Заголовок второго уровня
### Заголовок третьего уровня
#### Заголовок четвёртого уровня
##### Заголовок пятого уровня
@YuukiToriyama
YuukiToriyama / national_anthem.bash
Last active April 24, 2024 11:16
bashでオルゴール【Sox】
# National Anthem of USSR
# Execute this ShellScript, Soviet Anthem Plays You.
# Before execute this, you have to install Sox(Sound eXchange) by apt-get / brew.
mkdir notes
cat << EOS | grep -v "-" | awk '{if ($1=="z") {print "sox -n -c 2 notes/"NR".wav trim 0.0", $2/4} else {{print "sox -n -c 2 notes/" NR ".wav synth", $2/4, "pluck", $1, "\\"} if ($3!="") {print "pluck", $3, "\\"} if ($5!="") {print "pluck", $5, "\\"} print ";"}}END{print "sox notes/{1.."NR-1"}.wav song_new.wav"}' | bash
E4 4 G4 4 C5 4
-
D4 1 G4 1 D5 1
C4 1 G4 1 C5 1