Skip to content

Instantly share code, notes, and snippets.

View okb1100's full-sized avatar

Oğuzcan Küçükbayrak okb1100

View GitHub Profile
@okb1100
okb1100 / karabiner.json
Created May 21, 2024 22:39
Karabiner config for Rectangle HJKL movements
{
"description": "Rectangle HJKL",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"left_command",
"left_option"
@okb1100
okb1100 / ionic.dart
Created December 31, 2021 13:32
#random #flutter [Ionicons dynamic icon list]
// Ionicons dynamic list
// https://pub.dev/packages/ionicons
class Ionic {
static const iconCodeList = ionic;
static const defaultIconCode = 0xeb8b;
static int getCode(String name) {
int? foundIconCode = iconCodeList[name];
return foundIconCode ?? defaultIconCode;
.ytp-chrome-bottom,.ytp-chrome-controls,.ytp-progress-bar-container{
transition: all 300ms !important;
}
.ytp-autohide .ytp-chrome-bottom{
opacity: 1 !important;
width: 100% !important;
left: 0 !important;
transition: all 300ms !important;
}
@okb1100
okb1100 / ionicons.json
Last active October 30, 2021 16:46
#random [ionicons name list]
[
"add",
"add-circle",
"add-circle-outline",
"add-circle-sharp",
"add-outline",
"add-sharp",
"airplane",
"airplane-outline",
"airplane-sharp",
@okb1100
okb1100 / whatsapp-sidebar-full.css
Last active October 30, 2021 16:38
#css-hacks
/* Probably won't work with future builds */
.ldL67._1bLj8{
position: absolute !important;
width: 100% !important;
flex: 1 !important;
}
@okb1100
okb1100 / kamera.html
Last active December 31, 2021 13:35
#preact #scraping
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>İzmir Kamera</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css"
integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<style>
.list-group{
@okb1100
okb1100 / showip.sh
Last active October 30, 2021 16:41
#linux-stuff [Show local ip of host]
#!/bin/sh
IFACE="wlp3s0"
echo " $(ip -br addr show dev $IFACE | awk '{print $3}' | sed 's/\/[0-9].//') "
@okb1100
okb1100 / EXCLUDE
Last active October 30, 2021 16:42
#linux-stuff [Simple home directory backup script]
/home/okb/YaDisk
/home/okb/lost+found
/home/okb/.cache
/home/okb/.ecryptfs
/home/okb/*.socket
/home/okb/.Trash-*
/home/okb/.local/share/Trash
/home/okb/.recycle
/home/okb/.config/chromium
/home/okb/.vagrant.d
@okb1100
okb1100 / jackfix.sh
Last active October 30, 2021 16:43
#hackintosh [Thinkpad X1 Carbon 2nd Gen Headphone jack noise fix. (needs CodecCommander and hda-verb)]
# Thinkpad X1 Carbon 2nd Gen Headphone jack fix. (needs CodecCommander and hda-verb)
# This script needs to be run after every boot.
#!/bin/bash
hda-verb 0x1a SET_PIN_WIDGET_CONTROL 0x24
hda-verb 0x21 SET_UNSOLICITED_ENABLE 0x83
echo -e "Done"
@okb1100
okb1100 / autoCheck.js
Last active December 31, 2021 13:35
#random
/*
Zorunlu ders anketleri sayfalarının her birinde tarayıcı konsolunda bu satırı çalıştırmak en son seçeneği işaretleyecektir.
*/
document.querySelectorAll('[type=radio]"]').forEach((el) => el.click())