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:\Users\user\AppData\Local\Android\Sdk\platform-tools>adb shell getprop | |
[dalvik.vm.appimageformat]: [lz4] | |
[dalvik.vm.dex2oat-Xms]: [64m] | |
[dalvik.vm.dex2oat-Xmx]: [512m] | |
[dalvik.vm.dex2oat-max-image-block-size]: [524288] | |
[dalvik.vm.dex2oat-minidebuginfo]: [true] | |
[dalvik.vm.dex2oat-resolve-startup-strings]: [true] | |
[dalvik.vm.dexopt.secondary]: [true] | |
[dalvik.vm.heapgrowthlimit]: [256m] |
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/gcc -IX11 -lX11 -Ifontconfig -lfontconfig cfetch.c -o cfetch -Os; exec ./cfetch | |
/*-------------*\ | |
/ | FLEXFETCH | \ | |
\ | 1.0.0.1 | / | |
\*-------------*/ | |
/* | |
CHANGELOG |
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
#!/bin/sh | |
# | |
# Author: jzbor | |
# Dependencies: xdo, xwininfo (optional), xdg-xmenu (optional), xmenu (optional | |
# | |
# Usage: | |
# riot.sh | |
# riot.sh xterm | |
# riot.sh --focused | |
# riot.sh --select |
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
/* This is under Unlicense(https://unlicense.org/) and/or CC0(https://www.tldrlegal.com/l/cc0-1.0). */ | |
<!doctype html> | |
<html class="no-js" lang=""> | |
<head> | |
<meta charset="utf-8"> | |
<title>Fetch API Local</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
</head> |
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
"custom/weather": { | |
"exec": "python ~/.config/waybar/scripts/weather.py", | |
"restart-interval": 300, | |
"return-type": "json", | |
"on-click": "xdg-open https://weather.com/en-IN/weather/today/l/$(location_id)" | |
// "format-alt": "{alt}", | |
}, |
Made this example to show how to use Next.js router for a 100% SPA (no JS server) app.
You use Next.js router like normally, but don't define getStaticProps
and such. Instead you do client-only fetching with swr
, react-query
, or similar methods.
You can generate HTML fallback for the page if there's something meaningful to show before you "know" the params. (Remember, HTML is static, so it can't respond to dynamic query. But it can be different per route.)
Don't like Next? Here's how to do the same in Gatsby.
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
"\033[0m" // Reset all text attributes to default | |
"\033[1m" // Bold on | |
"\033[2m" // Faint off | |
"\033[3m" // Italic on | |
"\033[4m" // Underline on | |
"\033[5m" // Slow blink on | |
"\033[6m" // Rapid blink on | |
"\033[7m" // Reverse video on | |
"\033[8m" // Conceal on | |
"\033[9m" // Crossed-out on |
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 bash | |
# IMPORTANT: this script is now part of my dotfiles and maintained there | |
# see https://github.com/Diaoul/dotfiles/blob/main/.config/hypr/scripts/workspaces.sh | |
set -e | |
declare -i last_called=0 | |
declare -i throttle_by=4 | |
@throttle() { | |
local -i now=$(date +%s) |