Skip to content

Instantly share code, notes, and snippets.

View kryshac's full-sized avatar
🎯
Focusing

kryshac

🎯
Focusing
View GitHub Profile
@llelectronics
llelectronics / gist:5d7302a666175fdcaca0627960eea184
Created January 21, 2026 16:53
Xiaomi Fix notification delays HyperOS 3.0 (CN)
# Get a list of packages you want to whitelist (you can add more apps to the list if you want to for example |threema)
pm list packages -e -3 | grep -E "zalo|facebook|gm|telegram|instagram|ugc|discord|whatsapp|twitter|mastodon|sms|reddit|wechat" | sed -e "s/^package://"
# Get apps on the white list currently
cmd settings get system cloud_lowlatency_whitelist
# Write new apps to the white list
cmd settings put system cloud_lowlatency_whitelist <LIST_OF_PACKAGES_SEPARATED_BY_COMMA>
Example:
@kfox
kfox / README.md
Last active September 23, 2025 07:02
TCP echo server for Node.js

TCP echo server for Node.js

Usage

  1. Make sure you have a modern-ish version of Node.js installed.
  2. Type npx https://gist.github.com/kfox/1280c2f0ee8324067dba15300e0f2fd3
  3. Connect to it from a client, e.g. netcat or similar: nc localhost 9000
@yinzara
yinzara / github_bitbucket_multiple_ssh_keys.md
Last active January 21, 2026 12:14
Managing SSH keys and repo cloning using multiple accounts on GitHub and BitBucket

Why Multiple SSH keys?

There are numerous reasons you may need to use multiple SSH keys for accessing GitHub and BitBucket

You may use the same computer for work and personal development and need to separate your work.

When acting as a consultant, it is common to have multiple GitHub and/or BitBucket accounts depending on which client you may be working for.

You may have different projects you're working on where you would like to segregate your access.

Basic
=====
[Shift]+[Mod]+[Enter] - launch terminal.
[Mod]+[b] - show/hide bar.
[Mod]+[p] - dmenu for running programs like the x-www-browser.
[Mod]+[Enter] - push acive window from stack to master, or pulls last used window from stack onto master.
[Mod] + [j / k] - focus on next/previous window in current tag.
@jsit
jsit / .stylelintrc
Created August 7, 2017 15:19
.stylelintrc / stylelint-order rules for SMACSS property sort order
"order/properties-order": [
{ "properties": [ "content", "quotes" ] },
{ "properties": [ "display", "visibility" ] },
{ "properties": [ "position", "z-index", "top", "right", "bottom", "left" ] },
{ "properties": [ "box-sizing" ] },
{ "properties": [ "flex", "flex-basis", "flex-direction", "flex-flow", "flex-grow", "flex-shrink", "flex-wrap", "align-content", "align-items", "align-self", "justify-content", "order" ] },
{ "properties": [ "width", "min-width", "max-width", "height", "min-height", "max-height" ] },
{ "properties": [ "margin", "margin-top", "margin-right", "margin-bottom", "margin-left" ] },
{ "properties": [ "padding", "padding-top", "padding-right", "padding-bottom", "padding-left" ] },
@Ajnasz
Ajnasz / build.sh
Last active April 27, 2020 15:35
suckless terminal config
#!/bin/sh
set -e
git co -- .
wget http://st.suckless.org/patches/st-scrollback-20170329-149c0d3.diff
wget http://st.suckless.org/patches/st-scrollback-mouse-20170427-5a10aca.diff
patch < st-scrollback-20170329-149c0d3.diff
@bgromov
bgromov / git-reset-author.sh
Created June 23, 2016 17:50
Git: reset author for ALL commits
#!/bin/sh
# Credits: http://stackoverflow.com/a/750191
git filter-branch -f --env-filter "
GIT_AUTHOR_NAME='Newname'
GIT_AUTHOR_EMAIL='new@email'
GIT_COMMITTER_NAME='Newname'
GIT_COMMITTER_EMAIL='new@email'
" HEAD
@rveitch
rveitch / sass-7-1-pattern.scss
Last active February 13, 2026 18:01
Sass 7-1 Pattern
sass/
|
|– base/
| |– _reset.scss # Reset/normalize
| |– _typography.scss # Typography rules
| ... # Etc…
|
|– components/
| |– _buttons.scss # Buttons
| |– _carousel.scss # Carousel
@gre
gre / easing.js
Last active January 24, 2026 10:24
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See the COPYING file for more details.
*/
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {