Skip to content

Instantly share code, notes, and snippets.

View SeryiBaran's full-sized avatar
🐒
жоски

SeryiBaran SeryiBaran

🐒
жоски
View GitHub Profile
@MrGrigri
MrGrigri / md-color-palette.css
Last active October 23, 2024 02:12
Material Design Color Palette in CSS Variable Form
:root {
--material-color-red: #f44336;
--material-color-red-50: #ffebee;
--material-color-red-100: #ffcdd2;
--material-color-red-200: #ef9a9a;
--material-color-red-300: #e57373;
--material-color-red-400: #ef5350;
--material-color-red-500: var(--material-color-red);
--material-color-red-600: #e53935;
--material-color-red-700: #d32f2f;
@Hotell
Hotell / cra-2-ts-css-modules-guide.md
Last active March 25, 2022 16:07
typed css-modules - CRA 2.0

CRA 2.x + TS setup:

This will give you complete intellisense and type safety within your app and CSS modules

typesafe-css-modules

🚨 NOTE

  • refactoring className from ts file wont update your css/scss className, to change class names you have to change it within your .module.scss file
@tavinus
tavinus / simpleColors.sh
Last active December 6, 2023 23:55
"universal" terminal colors
#!/bin/sh
# Gustavo Arnosti Neves - Dec 2018
# Modified from many other snippets
# Adapted to work virtually anywhere
# Works on busybox/ash
# This script: https://gist.github.com/tavinus/925c7c9e67b5ba20ae38637fd0e06b07
# SO reference: https://stackoverflow.com/questions/16843382/colored-shell-script-output-library
@cravacuore
cravacuore / raw.zsh-theme
Created September 24, 2018 14:03
Zsh 'raw' theme I made by copying various ideas from other themes into one
# Inspired by making a mixture the following themes:
# robbyrussell + arrow + lambda
# changing some colors and elements positions
local ret_status="%(?:%{$fg_bold[grey]%}λ :%{$fg_bold[red]%} λ )"
PROMPT=' ${ret_status}%{$fg[magenta]%}%c %{$fg[black]%}➤ %{$reset_color%}'
RPROMPT='$(git_prompt_info) %{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[grey]%}git:(%{$fg[cyan]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
@justlaputa
justlaputa / unstar-all-repos.md
Last active July 20, 2025 20:11
How to unstar all your github starred repos
@Horat1us
Horat1us / gist:1dc581d658e1665beedfe48bf2744c8c
Last active September 16, 2022 08:20
Настройка сервера для Продакшн

Настройка сервера

Первичная подготовака

sudo apt update && \
	sudo apt-get install -y apt-transport-https python unzip ca-certificates curl software-properties-common && \
	sudo apt upgrade -y

Установка Docker

RegEx

Online Regex Tester Suites & Code Generators

  • regex101 Online regex tester for PHP, PCRE, JavaScript and Python that highlights pattern and matches on the fly. Also features a code generator and a regex debugger!
  • myregextester Sports a separate regex split tester and allows to optimize patterns (I guess this is based on Perl's Regexp::Optimizer module).
  • regexr Online regex tester with good regex replace and explain functionality.
  • debuggex Shows neat expression diagrams (not active anymore).
  • regexper translates regular expressions into an SVG image (for documentation or embedding)
  • RexV2 Evaluator for PHP PCRE, PHP Posix!, Perl, Python, Javascript, Node.JS!
@neretin-trike
neretin-trike / pug.md
Last active July 4, 2025 22:46
Туториал по HTML препроцессору Pug (Jade)
@chrisdone
chrisdone / gist:02e165a0004be33734ac2334f215380e
Last active June 30, 2025 19:41
Build and run minimal Linux / Busybox systems in Qemu

Common

export OPT=/opt
export BUILDS=/some/where/mini_linux
mkdir -p $BUILDS

Linux kernel