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
[[snippets]] | |
description = "Create a .keep file in all empty directories" | |
command = "find . -type d -empty -print0 | xargs -0 -I % touch %/.keep" | |
[[snippets]] | |
description = "Display all listen port" | |
command = "lsof -Pan -i tcp -i udp" | |
[[snippets]] | |
description = "Process with the largest memory usage" |
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
KERNDIR := /lib/modules/`uname -r`/build | |
BUILD_DIR := $(shell pwd) | |
VERBOSE = 0 | |
obj-m := syscall_replace.o | |
smallmod-objs := syscall_replace.o | |
all: | |
bash set_syscall_table_address.sh | |
make -C $(KERNDIR) SUBDIRS=$(BUILD_DIR) KBUILD_VERBOSE=$(VERBOSE) modules |
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
require 'net/https' | |
https = Net::HTTP.new('bad', 12345) | |
https.use_ssl = true | |
https.verify_mode = OpenSSL::SSL::VERIFY_PEER | |
https.ca_file = 'certs/roots.pem' | |
https.start { |h| | |
response = h.get("/") | |
puts response.body | |
} |
NewerOlder