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 | |
# | |
# Needed for the dot2texi package which invokes GraphViz. | |
$latex = 'latex --shell-escape'; | |
$xelatex = "xelatex -synctex=1 -no-pdf -interaction=nonstopmode --shell-escape %O %S"; | |
$pdf_mode = 5; | |
$recorder = 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
# ~/.gitignore_global | |
# Symlinked into ~/ as .gitignore | |
# written in ~/.gitconfig | |
# [core] | |
# excludesfile = /Users/zorch/.gitignore_global | |
# Compiled source | |
*.dll | |
*.exe |
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
local function CodeRunner() | |
--[===[========================== Global ===========================]===] | |
vim.api.nvim_create_autocmd({ "InsertLeave" }, { | |
callback = function() | |
vim.fn.execute("silent! write") | |
-- vim.notify("Autosaved!", vim.log.levels.INFO, {}) | |
end, | |
}) | |
-- for generate doc with neogen |
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
#!/opt/homebrew/Caskroom/miniforge/base/envs/py3x/bin/python3 | |
""" | |
ref to https://blog.csdn.net/m0_53342945/article/details/130240344 | |
1. get cookies contains FQV | |
2. post with FQV | |
3. parse result | |
""" | |
import sys |
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
" syntax highlight | |
syntax on | |
" show line number and relative number | |
set number | |
set relativenumber | |
" indent when newline | |
set smartindent |
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
#!/usr/bin/env bash | |
if [ $# -ne 1 ]; then | |
echo "USAGE: $0 disk" | |
echo " e.g.: $0 Archlinux.qcow2" | |
exit 1 | |
fi | |
if [ ! -f $1 ]; then | |
echo "could not open $1 : no such file" |
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 re | |
import sys | |
import requests | |
def main(): | |
argv = sys.argv | |
n = len(argv) | |
if n != 2: |
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
local function CodeRunner() | |
--[===[========================== Global ===========================]===] | |
vim.api.nvim_create_autocmd({ "InsertLeave" }, { | |
callback = function() | |
vim.fn.execute("silent! write") | |
-- vim.notify("Autosaved!", vim.log.levels.INFO, {}) | |
end, | |
}) | |
--[===[========================== Static ===========================]===] |
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
#!/opt/homebrew/bin/python3 | |
import os | |
import re | |
import subprocess as sp # for get command return value(stdout) | |
base_path = "/Applications" | |
app_name = "Ghidra" | |
exec_file = "ghidraRun" |
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
#include <cxxabi.h> | |
#include <iostream> | |
#if __cplusplus < 202002 | |
#define print_type(x) \ | |
std::cout << #x << typeid(x).name() << " => " \ | |
<< abi::__cxa_demangle(typeid(x).name(), NULL, NULL, NULL) \ | |
<< std::endl | |
#else |
NewerOlder