Skip to content

Instantly share code, notes, and snippets.

View dankox's full-sized avatar
🎯
Focusing

dankox

🎯
Focusing
View GitHub Profile
execve("/bin/ls", ["ls"], 0x7ffff0280720 /* 19 vars */) = 0
brk(NULL) = 0x7fffd011c000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=22482, ...}) = 0
mmap(NULL, 22482, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f80f7194000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libselinux.so.1", O_RDONLY|O_CLOEXEC) = 3
@dankox
dankox / racf-debug-cleanup.c
Created November 6, 2019 10:37 — forked from anonymous/racf-debug-cleanup.c
RACF database dump and extraction tool
List: john-dev
Subject: [john-dev] RACF debug tool (vs. racf2john.c)
From: Corbert Malmgreen <germany_jethro () mailcan ! com>
Date: 2013-05-31 18:26:41
Message-ID: 1370024801.2832.140661238223157.60A3A01A () webmail ! messagingengine ! com
There's a RACF debug tool floating around in the Swedish Police circles
as part of an ongoing investigation, supposedly recovered from seized
computer(s).
@dankox
dankox / settings.json
Last active September 16, 2020 14:24
Windows Terminal - config
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"initialCols": 135,
"initialRows": 45,
@dankox
dankox / .hyper.js
Last active September 16, 2020 14:24
Hyper shell - configuration
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
// updateChannel: 'canary',
updateChannel: 'stable',
@dankox
dankox / ebcdic.java
Created December 7, 2020 17:31
ebcdic java program to create "golang-like" byte array for ebcdic conversion
import java.nio.charset.Charset;
public class Ebcdic {
public static void main(String[] args) {
conversionTable("cp1140");
conversionTable("cp1047");
}
public static void conversionTable(String ebcdic) {
System.out.println("Conversion table for: " + ebcdic);
@dankox
dankox / .c3270
Last active February 12, 2021 15:31
c3270 configuration file
! Turn off menu bar
! c3270.menuBar: false
! Use the 'mine' keymap, defined below
c3270.keymap: mine
! Definition of the 'mine' keymap
! U+007F is backspace
c3270.keymap.mine: \
<Key>U+007F: Erase\n\
@dankox
dankox / kitty-theme.conf
Created February 9, 2021 15:26
Kitty theme
# updated hardcore mixed thayer
background #121212
foreground #f8f8f8
cursor #fc971e
# selection_background #453a39
selection_background #4d4d4d
color0 #1b1d1e
color8 #505354
color1 #f92672
color9 #ff669d
@dankox
dankox / kitty.conf
Last active February 9, 2021 18:29
Kitty config file
include ./theme.conf
font_size 12.0
adjust_line_height 0
adjust_column_width 0
symbol_map U+E0A0-U+E0A3,U+E0B0-U+E0B3 PowerlineSymbols
map cmd+n new_os_window_with_cwd
@dankox
dankox / pyinstaller.patch
Created May 21, 2021 13:00
pyinstaller patch for BigSur (there are some syntax error, so needs to be fixed before applying)
diff --git a/PyInstaller/depend/bindepend.py b/PyInstaller/depend/bindepend.py
index 95660b5dcef0f7167bf62007422233daefb758a7..854947b364b4242f2bea89ee6cbd9cd7c382879a 100644
--- a/PyInstaller/depend/bindepend.py
+++ b/PyInstaller/depend/bindepend.py
@@ -21,6 +21,7 @@ from glob import glob
# Required for extracting eggs.
import zipfile
import collections
+from ctypes import cdll
@dankox
dankox / .p10k.zsh
Created January 24, 2023 13:07
powerlevel10k - configuration for zshell powerlevel10k theme
# Generated by Powerlevel10k configuration wizard on 2023-01-23 at 17:28 CET.
# Based on romkatv/powerlevel10k/config/p10k-rainbow.zsh, checksum 29251.
# Wizard options: nerdfont-complete + powerline, small icons, rainbow, unicode,
# 24h time, angled separators, sharp heads, round tails, 2 lines, dotted, full frame,
# light-ornaments, compact, many icons, concise, transient_prompt,
# instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with powerline prompt style with colorful background.
# Type `p10k configure` to generate your own config based on it.