It's possible to use spin -a src.pml
to create pan.[cbhmt]
files.
Then, it's possible to compile the generated verifier using gcc -o pan pan.c
.
The compiler verifier could be run by ./pan
.
spin -run src.pml
automates the whole process.
GeekTool Geeklets Scripts
Patch mode allows you to stage parts of a changed file, instead of the entire file. This allows you to make concise, well-crafted commits that make for an easier to read history. This feature can improve the quality of the commits. It also makes it easy to remove parts of the changes in a file that were only there for debugging purposes - prior to the commit without having to go back to the editor.
It allows you to see the changes (delta) to the code that you are trying to add, and lets you add them (or not) separately from each other using an interactive prompt. Here's how to use it:
from the command line, either use
git add -p
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
version: '2' | |
networks: | |
kafka: | |
driver: bridge | |
ipam: | |
config: | |
- subnet: 10.20.0.0/16 | |
services: |
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
; You need "xsel" program. | |
(defun x-paste () | |
"insert text on X11's clipboard to current buffer." | |
(interactive) | |
(insert (shell-command-to-string "xsel -b"))) | |
(defun x-copy () | |
"copy text on local kill-ring to X11's clipboard." | |
(interactive) |
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 [[ $# != 1 ]]; then | |
echo -e "usage:\t$0 <url of Linux binary from https://jdk.java.net>" | |
exit 1 | |
fi | |
if [ $EUID != 0 ]; then | |
sudo "$0" "$@" | |
exit $? |
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
name=jdk-14 | |
priority=1411 | |
section=main | |
hl rmid /usr/lib/jvm/jdk-14/bin/rmid | |
hl java /usr/lib/jvm/jdk-14/bin/java | |
hl keytool /usr/lib/jvm/jdk-14/bin/keytool | |
hl jjs /usr/lib/jvm/jdk-14/bin/jjs | |
hl rmiregistry /usr/lib/jvm/jdk-14/bin/rmiregistry | |
hl jfr /usr/lib/jvm/jdk-14/bin/jfr |
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
ZOOKEEPER_IP=esv4-hcl197.grid.linkedin.com | |
BOOTSTRAP_SERVER_IP=esv4-hcl198.grid.linkedin.com | |
# Producer | |
# Setup | |
bin/kafka-topics.sh --zookeeper $ZOOKEEPER_IP:2181 --create --topic test-rep-one --partitions 6 --replication-factor 1 | |
bin/kafka-topics.sh --zookeeper $ZOOKEEPER_IP:2181 --create --topic test --partitions 6 --replication-factor 3 |
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
PAGES=(104-105 111-115 120) | |
pdftk src.pdf rotate `for PAGE in ${PAGES[@]}; do echo ${PAGE}oddleft ${PAGE}evenright; done` output dst.pdf |
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
pandoc report.md -o report.html --bibliography=biblio.bib --filter pandoc-crossref --filter pandoc-citeproc --csl ./acm.csl --resource-path=./img --self-contained |