Skip to content

Instantly share code, notes, and snippets.

View TaylanTatli's full-sized avatar
👋

Taylan Tatlı TaylanTatli

👋
View GitHub Profile
@vladstudio
vladstudio / apply.css
Last active January 3, 2025 00:31
silverbullet.md Tiniri theme
/* more Tiniri themes: https://tiniri.vlad.studio/ */
html {
--ui-font: ui-sans-serif, sans-serif !important;
--editor-font: ui-sans-serif, sans-serif !important;
--editor-width: 800px !important;
line-height: 1.5 !important;
}
html {
@onespaceman
onespaceman / STYLES.css
Last active April 14, 2025 07:38
silverbullet theme
html {
--crust: #dce0e8;
--mantle: #e6e9ef;
--base: #eff1f5;
--surface0: #ccd0da;
--surface1: #bcc0cc;
--surface2: #acb0be;
--overlay0: #9ca0b0;
--overlay1: #8c8fa1;
--overlay2: #7c7f93;
@douo
douo / README.org
Last active June 11, 2023 12:22
Inoreader to Miniflux/v2

Backup

Preferences -> API access

复制 App ID 和 App Key 填入 backup.py 的 client_idclient_secret

rye pin 3.11
rye add requests
rye sync
@Diaoul
Diaoul / monitors.sh
Last active February 12, 2025 15:01
Arrange workspace on multiple monitors (Hyprland)
#!/usr/bin/env bash
set -e
declare -i last_called=0
declare -i throttle_by=4
@throttle() {
local -i now=$(date +%s)
if (($now - $last_called > $throttle_by))
then
@upsilun
upsilun / ansi.cpp
Last active October 9, 2024 09:53
🎨 ANSI Codes for text formatting.
"\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
@gaearon
gaearon / 00-README-NEXT-SPA.md
Last active April 2, 2025 17:54
Next.js SPA example with dynamic client-only routing and static hosting

Next.js client-only SPA example

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.

@mcxiaoke
mcxiaoke / miui-blotware-apps.md
Last active April 15, 2025 04:49
MIUI 13/14 bloatware apps, updated at 20240816

对于所有应用,不建议直接删除,使用adb shell pm disable-user package-name禁用即可,方便出问题时恢复。

DO NOT UNINSTALL:

  • com.miui.securitycenter
  • com.miui.securityadd
  • com.xiaomi.finddevice

(Don’t uninstall these three apps or services from your Xiaomi device. Otherwise, you may encounter device bricking or bootloop issues.)

@Surendrajat
Surendrajat / config.json
Last active April 8, 2025 03:23
A Clean & Customizable Weather module for Waybar
"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}",
},
@gregoryhammond
gregoryhammond / index.html
Last active June 15, 2021 09:10
JavaScript Fetch api results on page
/* 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>
@jzbor
jzbor / riot.sh
Last active March 8, 2021 18:37
Simple script to provide rio-like drawing functionallity for any X-WM (only works if the window is already floating)
#!/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