Instantly share code, notes, and snippets.
Discover gists
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
c=lambdaa:lambdab:a | |
d=lambdan:lambdaf:lambdax:f(n(f)(x)) | |
e=lambdan:lambdaf:lambdax:n(lambdaa:lambdab:b(a(f)))(lambday:x)(lambday:y) | |
g=lambdaa,b:lambdaf:lambdax:a(f)(b(f)(x)) | |
h=lambdaa,b:lambdaf:lambdax:a(b(f))(x) | |
i=lambdaa,b:b(e)(a) | |
j=lambdan:n(lambdax:lambdaa:lambdab:b)(c) | |
k=d(lambdaf:lambdax:x) | |
l=d(k) | |
m=d(l) |
n1snt /Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last activeOctober 8, 2025 02:46
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.mdMarvNC /get-discord-token-from-browser.md
Last activeOctober 8, 2025 02:45
How to Get Your Discord Token From the Browser Developer Consolemdasifmunshe /Install Tailwind CSS v4 with Vite and Yarn
Last activeOctober 8, 2025 02:40
Setting up Tailwind CSS in a Vite app with Yarn This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
/* | |
The following gist is tested with react+typescript+swc. | |
Other Framework may differ from each other at "vite.config.ts" file. | |
*/ | |
/* Terminal */ | |
yarn create vite my-app | |
cd my-app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
""" | |
Example of using fcntl.flock for locking file. Some code inspired by filelock module. | |
""" | |
importos | |
importfcntl | |
importtime | |
defacquire(lock_file): |
rajkosto /nokia-router-cfg-tool.py
Last activeOctober 8, 2025 02:36 — forked fromthedroidgeek/nokia-router-cfg-tool.py
Nokia/Alcatel-Lucent router backup configuration tool This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# Nokia/Alcatel-Lucent router backup configuration tool | |
# G2425 support added by rajkosto on 20/11/2022 | |
# XS-2426G-B support added by rajkosto on 28/02/2023 | |
# | |
# Features: | |
# - Unpack/repack .cfg files generated from the backup and restore functionnality |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
# Forward WSL2 ports to host machine/platform (handles Windows Firewall) | |
# | |
# NOTE: 'iex' is a shortform for 'Invoke-Expression' | |
# Ports that should be forwarded to WSL2 and allowed through firewall (comma-separated) | |
$ports=@(8081); | |
# WSL IP address changes whenever WSL restarts | |
$wsl_ip=$(wsl hostname-I).Trim(); |
NewerOlder