This file contains hidden or 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
[styling=Python] | |
[keywords] | |
primary=OR AND if else else_if limit trigger immediate option change_variable set_variable save_scope_as | |
identifiers=yes no scope root prev from this event_target any all none custom_tooltip type title desc name | |
[lexer_properties=Python] | |
[settings] | |
lexer_filetype=Python |
This file contains hidden or 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
#!/usr/bin/python3 | |
import sys | |
g_in = sys.argv[1] | |
g_out = g_in + '.conv' | |
def conv(i, o): | |
for j in i: | |
try: |
This file contains hidden or 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
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
import os, pathlib, stat | |
g_both,g_uid,g_gid = [],[],[] | |
g_both_bits = stat.S_ISUID | stat.S_ISGID | |
def visit_file(f): |
This file contains hidden or 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
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
''' | |
Visit all directories. | |
Print names of files that have group or other write permission (mask 022) | |
Print names of directories that contain executables (mask 111) and are |
This file contains hidden or 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
# Copyright 1999-2024 Gentoo Authors | |
# Distributed under the terms of the GNU General Public License v2 | |
EAPI=8 | |
# Generate using https://github.com/thesamesam/sam-gentoo-scripts/blob/main/niche/generate-qemu-docs | |
# Set to 1 if prebuilt, 0 if not | |
# (the construct below is to allow overriding from env for script) | |
QEMU_DOCS_PREBUILT=${QEMU_DOCS_PREBUILT:-0} | |
QEMU_DOCS_PREBUILT_DEV=sam |
This file contains hidden or 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
--- a/drivers/hwmon/mr75202.c 2024-07-22 12:23:44.000000000 +0300 | |
+++ b/drivers/hwmon/mr75202.c 2024-09-02 10:59:07.000000000 +0300 | |
@@ -27,6 +27,9 @@ | |
#define MR75202_VM_BASE 0x184 | |
#define MR75202_PD_BASE 0xab0 | |
+/* Offset of VM register set from TS register set */ | |
+#define MR75202_VM_TS_OFFSET (MR75202_VM_BASE - MR75202_TS_BASE) | |
+ | |
#define MR75202_TS_REG(a) (MR75202_TS_BASE + (a)) |
This file contains hidden or 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
diff -urN a/include/libbb.h b/include/libbb.h | |
--- a/include/libbb.h 2023-01-03 17:17:01.000000000 +0300 | |
+++ b/include/libbb.h 2024-07-17 11:28:28.000000000 +0300 | |
@@ -1777,8 +1777,14 @@ | |
* (otherwise we risk having same salt generated) | |
*/ | |
extern int crypt_make_salt(char *p, int cnt /*, int rnd*/) FAST_FUNC; | |
+ | |
+#if ENABLE_GOST_YESCRYPT | |
+/* $gy$j9T$ + salt(16) + NUL */ |
This file contains hidden or 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 | |
is_empty() { | |
local a="`echo $1`" | |
[ ."$a" == . ] | |
} | |
dump() { | |
printf "\n\n%s\n" "$1" | |
local n=$(($3 / 4)) |
This file contains hidden or 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
# docker run -it --rm --name=draw -p 8080:8080 -p 8443:8443 jgraph/drawio | |
# chromium "http://$DOCKER_HOST:8080/?offline=1&https=0" | |
file -> open from -> device, select my_file.drawio |
This file contains hidden or 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 | |
src=`realpath $1` | |
uboot_base=`dirname $src`/../../.. | |
uboot_base=`realpath $uboot_base` | |
echo $uboot_base | |
pre=/tmp/pre.dts | |
tgt=${src%.dts}.dtb |
NewerOlder