Skip to content

Instantly share code, notes, and snippets.

@nmn
nmn / utilities.stylex.ts
Created December 12, 2023 09:37
Tailwind Utilities in StyleX
import * as stylex from '@stylexjs/stylex'
export default stylex.create({
sr_only: {
position: 'absolute',
width: 1,
height: 1,
padding: 0,
margin: -1,
overflow: 'hidden',
@rfairley
rfairley / reverse-ssh-tunnel-vps-to-pi.md
Last active May 21, 2024 08:57
Connecting to a Raspberry Pi through a VPS using a reverse SSH tunnel

Connecting to a Raspberry Pi through a VPS using a reverse SSH tunnel

SSH (Secure Shell) to a host existing in an internal network through a reverse-tunneled SSH connection to an externally accessible VPS (Virtual Private Server). This setup is described where the internal host is a Raspberry Pi, but can be generalized for any host on the internal network that runs an OpenSSH server.

  internal network                                                   Internet                                       home network
                                              ||                                                         ||
 ------------------                           ||                          ------------------             ||             ------------------
|                  | reverse SSH tunnel (VPS $tunnel_port to Pi port 22) |                  |            ||            |                  |
|   Raspberry Pi     ==================================================>         VPS          ===================
@qoomon
qoomon / conventional_commit_messages.md
Last active May 21, 2024 08:55
Conventional Commit Messages

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs

Commit Message Formats

Default

@nguyenduclongwin
nguyenduclongwin / dark-style.css
Created May 21, 2024 08:53 — forked from Advik-B/dark-style.css
Modern Qt StyleSheet for dark theme lovers
/*-----QWidget-----*/
QWidget
{
background-color: #121212;
color: #ffffff;
border-color: #051a39;
}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: recyclarr
namespace: media
data:
recyclarr.yaml: |
sonarr:
sonarr-main:
@deliciouskek
deliciouskek / blefuzzV21.sh
Last active May 21, 2024 08:52
BLE Fuzzer V2.1
#!\bin\sh
#
# Bluetooth Low Energy Fuzzer Version 2.1
# code by @delciouskek (Jordan H.)
#
# Greetings to @DA_667, Lesley Carhart (@hacksforpancakes), #allcatpack, Jayson E. Street, @lojikil
# @anarchistdalek, @cryptoishard, @metalgearreynrd, @lnxdork, @7th_protocol, @m3atshi3ld, @savagememes,
# @tribl_a2k, @grubthor, @skoomapipe, @t3h_arch3r, @livebeef, @zawarudad, @fuckcrunchroll, @sonichu1,
# @rustlay, @myhaxorninja, @mywhiteninja, @tsundereranger, Dan Aleksander (@havetilfive), @yokalli,
# @epikmani, @apexcybertwat, @genxmedia, @ra6bit, @detinspector, @teridax, @mcrealname, @mo0ty,
@rxaviers
rxaviers / gist:7360908
Last active May 21, 2024 08:52
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@fclairamb
fclairamb / tree_next.c
Created July 21, 2014 23:57
AVL tree with the parent node for each node to easily get the next node
#ifdef SHELL
gcc -Wall -Werror $0 && ./a.out
exit $?
#endif
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#define max(a,b) \