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
/* custom darktable theme on top of darktable-elegant-darker | |
created by BeF - 05/2024 | |
see https://gist.github.com/bef/562f282d7157a7ef47b99dc91693fb5a | |
modified by pellaeon - 09/2024 | |
*/ | |
/* custom colors */ | |
@define-color checked #3ea0d7; | |
@define-color visible-border @grey_60; | |
@define-color panel_bg @grey_05; |
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
Scope (PCI0.LPC0.EC0.HKEY) | |
{ | |
Method (GSSS, 1, NotSerialized) | |
{ | |
Local0 = 0x00 | |
If (((SHDW & 0x80) == 0x00)) | |
{ | |
Local0 |= 0x00010000 | |
} |
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
""" | |
This POC is based on example from https://frida.re/news/#child-gating | |
and is aimed to instrument child processes along with the main one. | |
""" | |
from __future__ import print_function | |
import frida | |
from frida_tools.application import Reactor | |
import threading |
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
Explanation: Use opencc from jammy to fix rime issue https://github.com/rime/librime/issues/425 | |
Package: * | |
Pin: release n=jammy | |
Pin-Priority: -10 | |
Package: librime* | |
Pin: release n=jammy | |
Pin-Priority: 500 | |
Package: opencc libopencc-data |
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/sh | |
# | |
# This script creates ZFS pools and dataset compatible with zsys | |
# | |
# Layout: | |
# bpool/BOOT/ubuntu_${UUID} | |
# rpool/ROOT/ubuntu_${UUID} | |
# rpool/ROOT/ubuntu_${UUID}/var -o canmount=off |
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 | |
input="$1" | |
while IFS= read -r line | |
do | |
line1=`echo "$line" | egrep 'cert index="[0-9]+" key="[0-9a-z]+"'` | |
if [ $? -eq 0 ] | |
then | |
index=`echo $line1 | grep -oP 'index="\K\d+'` | |
hex=`echo $line1 | grep -oP 'key="\K[0-9a-z]+'` | |
sslinfo=`echo $hex | xxd -p -r | openssl x509 -inform DER -in /dev/stdin -text` |
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
add_header X-Content-Type-Options nosniff; | |
add_header X-XSS-Protection "1; mode=block"; | |
add_header X-Robots-Tag none; | |
add_header X-Download-Options noopen; | |
add_header X-Permitted-Cross-Domain-Policies none; | |
add_header Referrer-Policy no-referrer; | |
# Remove X-Powered-By, which is an information leak | |
fastcgi_hide_header X-Powered-By; |
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
02-03 17:22:22.355 2921 3087 I Camera3-Device: disconnect: E [35/1836] | |
02-03 17:22:22.356 2921 3087 I CameraService: onTorchStatusChangedLocked: Torch status changed for cameraId=0, newStatus=1 | |
02-03 17:22:22.357 2921 3087 I CameraService: disconnect: Disconnected client for camera 0 for PID 12614 02-03 17:22:22.358 12614 12700 W zygote : Long monitor contention with owner CameraDeviceHandler (12668) at void android.hardware.camera2.impl.CameraDeviceImpl.close()(CameraDeviceImpl.java:1046) waiters=0 in void android.hardware.camer$ | |
2.impl.CameraDeviceImpl$CameraDeviceCallbacks.onCaptureStarted(android.hardware.camera2.impl.CaptureResultExtras, long) for 1.085s | |
02-03 17:22:22.366 12614 12659 W NdkImageReader: A f |
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
patch: | |
schema_list: | |
- schema: luna_pinyin_tw | |
- schema: luna_pinyin | |
- schema: luna_pinyin_fluency | |
- schema: luna_pinyin_simp | |
"key_binder/bindings": | |
# Emacs style | |
- { when: composing, accept: Control+p, send: Up } | |
- { when: composing, accept: Control+n, send: Down } |
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
# https://github.com/Eloston/ungoogled-chromium/issues/538 | |
--- services/preferences/tracked/pref_hash_store_impl.cc 2018-11-03 23:30:48.000000000 +0800 | |
+++ services/preferences/tracked/pref_hash_store_impl.cc 2018-11-03 23:34:27.000000000 +0800 | |
@@ -156,33 +156,7 @@ | |
ValueState PrefHashStoreImpl::PrefHashStoreTransactionImpl::CheckValue( | |
const std::string& path, | |
const base::Value* initial_value) const { | |
- std::string last_hash; | |
- contents_->GetMac(path, &last_hash); | |
- |
NewerOlder