sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
class AsyncMethodJob < ApplicationJob | |
queue_as :default | |
def perform(target:, method_name:, args:, queue_name: :default) | |
self.class.queue_as(queue_name) | |
# `target` could be either an instance or a class | |
target = target.constantize if target.is_a?(String) # Convert class name to class object if needed | |
target.send(method_name, *args) | |
end | |
end |
I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).
Use ssh keys and define host aliases in ssh config file (each alias for an account).
# | |
# ida-analysis.py | |
# a simple IDAPython binary analysis script | |
# 2020.05.24 darell tan | |
# | |
# invoke with: | |
# idat64 -c -A -S"ida-analysis.py $HOME/analysis.txt" <file.bin> | |
# | |
import sys |
.env
or any environment variable files—only the user may change them.git reset --hard
, rm
, git checkout
/git restore
to an older commit) unless the user gives an explicit, written instruction in this conversation. Treat t/*** | |
* Clash Verge Rev 全局扩展脚本(懒人配置)/ Mihomo Party 覆写脚本 | |
* URL: https://gist.github.com/dahaha-365/0b8beb613f8d1ee656fe1f21e1a07959 | |
*/ | |
/** | |
* 整个脚本的总开关,在Mihomo Party使用的话,请保持为true | |
* true = 启用 | |
* false = 禁用 | |
*/ |