Skip to content

Instantly share code, notes, and snippets.

View TaylanTatli's full-sized avatar
👋

Taylan Tatlı TaylanTatli

👋
View GitHub Profile
@ghifarit53
ghifarit53 / README.md
Last active August 2, 2020 20:59
polaroid-styled bar

polaroid-styled bar

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]
@matyklug18
matyklug18 / cfetch.c
Last active February 11, 2021 23:11
//usr/bin/gcc -IX11 -lX11 -Ifontconfig -lfontconfig cfetch.c -o cfetch -Os; exec ./cfetch
/*-------------*\
/ | FLEXFETCH | \
\ | 1.0.0.1 | /
\*-------------*/
/*
CHANGELOG
@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
@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>
@Surendrajat
Surendrajat / config.json
Last active June 12, 2025 19:45
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}",
},
@mcxiaoke
mcxiaoke / miui-blotware-apps.md
Last active July 21, 2025 16:15
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.)

@gaearon
gaearon / 00-README-NEXT-SPA.md
Last active June 9, 2025 05:45
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.

@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
@Diaoul
Diaoul / monitors.sh
Last active June 19, 2025 19:53
Arrange workspace on multiple monitors (Hyprland)
#!/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)