Skip to content

Instantly share code, notes, and snippets.

View yuceltoluyag's full-sized avatar
💭
I may be slow to respond.

yücel yuceltoluyag

💭
I may be slow to respond.
View GitHub Profile
@yuceltoluyag
yuceltoluyag / settings.json
Created August 24, 2024 23:21
shit microsoft sync
{
// General
"json.schemaDownload.enable": true,
"breadcrumbs.enabled": false,
"update.mode": "manual",
"update.showReleaseNotes": false,
"window.titleBarStyle": "custom",
"window.commandCenter": false,
"window.restoreWindows": "all",
"files.associations": {
@yuceltoluyag
yuceltoluyag / findemulatorname.py
Created March 25, 2024 14:53
Terminal & Windows command to get Android device name along with AVD name
import subprocess
from ppadb.client import Client as AdbClient
class EmulatorDetector:
def __init__(self, emulator_executables):
self.emulator_executables = emulator_executables
def find_emulator(self):
try:
@yuceltoluyag
yuceltoluyag / youtubeplayall.js
Created August 3, 2023 00:35
youtube 'Play All' button
/***
Runs properly from either a video page (watch?v) or a channel page.
Source JS (copy and paste to devtools console)
Bookmarklet (select and drag to your bookmarks bar)
javascript:void%20function(){function%20a(b,c){var%20d;return%20Object.keys(b).some(function(e){return%20e===c%3F(d=b[e],!0):b[e]%26%26%22object%22==typeof%20b[e]%3F(d=a(b[e],c),void%200!==d):void%200}),d}var%20b=a(ytInitialData,%22browseId%22);window.location.replace(%22https://youtube.com/playlist%3Flist=%22+b.replace(%22UC%22,%22UU%22))}();
Because of the nature of how this code works, I've had it take me to the incorrect playlist a couple times in testing, but seemingly every time that happens, the second try works fine.
***/
function findVal(object, key) { // https://stackoverflow.com/a/40604638
var value;
@yuceltoluyag
yuceltoluyag / gulpfile.babel.js
Created January 29, 2023 20:32
gulp with pelican test
"use strict";
import plugins from "gulp-load-plugins";
import yargs from "yargs";
import browser from "browser-sync";
import gulp from "gulp";
import log from "fancy-log";
import rimraf from "rimraf";
import child_process from "child_process";
@yuceltoluyag
yuceltoluyag / thermal-conf.xml
Created September 14, 2022 12:29 — forked from Hermanio/thermal-conf.xml
A working thermald configuration file for Thinkpad T430 with a trip point of 90C.
<?xml version="1.0"?>
<ThermalConfiguration>
<Platform>
<Name>T430</Name>
<ProductName>*</ProductName>
<Preference>QUIET</Preference>
<ThermalSensors>
<ThermalSensor>
<Type>pkg-temp-0</Type>
<Path>/sys/class/thermal/thermal_zone0/temp</Path>
@yuceltoluyag
yuceltoluyag / nerdfucker.sh
Last active November 30, 2022 09:56
While downloading files larger than 2gb from Github, it was giving an error and the download was being reset. This is how I solved the problem, you can delete the fonts you don't want to use. If you want to delete Windows compatible fonts, delete lines 73 and 74 and replace with find "$fonts_dir" -name '*Windows Compatible*' -delete
#!/bin/bash
declare -a fonts=(
"3270"
Agave
AnonymousPro
Arimo
AurulentSansMono
BigBlueTerminal
BitstreamVeraSansMono
@yuceltoluyag
yuceltoluyag / user.config
Created June 20, 2022 07:46
idlemaster blacklist
<setting name="blacklist" serializeAs="Xml">
<value>
<ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<string>1200</string>
<string>208090</string>
<string>360</string>
<string>227100</string>
<string>222480</string>
<string>17710</string>
@yuceltoluyag
yuceltoluyag / Retro-Bit Tribute64 - USB (D-Input).cfg
Last active June 11, 2022 11:15
Best retroarch settings for Platoon Pl-2596 model
# Tested with Mupen64Plus-Next
# Additional input_a_btn map added for RetroArch menu navigation
input_driver = "dinput"
input_device = "Controller (Dinput)"
input_device_display_name = "Retro-Bit Tribute64 - USB (D-Input)"
input_vendor_id = "9571"
input_product_id = "1397"
input_b_btn = "1"
@yuceltoluyag
yuceltoluyag / pacbac.sh
Last active September 3, 2024 21:18
A package detection script to help rebuild the local database. Deleted /var/lib/pacman =)
#!/bin/bash
set -euo pipefail
#------------------------------------------------------------------------------#
# Configuration #
#------------------------------------------------------------------------------#
# Default values for command-line arguments.
REPOS=(core extra community)
@yuceltoluyag
yuceltoluyag / thinkfan.conf
Created April 7, 2021 06:59
thinkpad-w520-thinkfan-archlinux-config
tp_fan /proc/acpi/ibm/fan
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp3_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp4_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp1_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp5_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp2_input
hwmon /sys/devices/virtual/thermal/thermal_zone0/hwmon1/temp1_input
# Fan Temp1 Temp2
(0, 0, 35)
(1, 30, 40)