This file contains 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
{ | |
// 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": { |
This file contains 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
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: |
This file contains 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
/*** | |
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; |
This file contains 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
"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"; |
This file contains 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
<?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> |
This file contains 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/bash | |
declare -a fonts=( | |
"3270" | |
Agave | |
AnonymousPro | |
Arimo | |
AurulentSansMono | |
BigBlueTerminal | |
BitstreamVeraSansMono |
This file contains 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
<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> |
This file contains 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
# 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" |
This file contains 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/bash | |
set -euo pipefail | |
#------------------------------------------------------------------------------# | |
# Configuration # | |
#------------------------------------------------------------------------------# | |
# Default values for command-line arguments. | |
REPOS=(core extra community) |
This file contains 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
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) |
NewerOlder