Short (72 chars or less) summary
More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).
Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
Discover gists
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
# 如果可以接受capslock作为输入法切换按键,强烈建议使用评论区脚本 | |
# 如果可以接受capslock作为输入法切换按键,强烈建议使用评论区脚本 | |
# 如果可以接受capslock作为输入法切换按键,强烈建议使用评论区脚本 | |
#Include %A_ScriptDir% | |
timeInterval := 500 | |
; +-------------------------+-------------------------+ |
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
[ | |
"😁", | |
"😂", | |
"😃", | |
"😄", | |
"😅", | |
"😆", | |
"😉", | |
"😊", | |
"😋", |
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
# Bash best practices and style-guide | |
Just simple methods to keep the code clean. | |
Inspired by [progrium/bashstyle](https://github.com/progrium/bashstyle) and [Kfir Lavi post](http://www.kfirlavi.com/blog/2012/11/14/defensive-bash-programming/). | |
## Quick big rules | |
* All code goes in a function | |
* Always double quote variables |
A list of links containing cool references, resources and things related to books about Computer Science and related.
- Haskell Programming for First Principles
- Types and Programming Languages #math/type-theory
- Essentials of Compilation #computer-science/compilers
- How to design computer programs
- Structure and Interpretation of Computer Programs
- Introduction to Theory of Computation, Michael Sipser #computer-science/theory-of-computation
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
#compdef swaymsg | |
typeset -A opt_args | |
__swaymsg() { | |
# Reuse socket path from command line if present | |
swaymsg ${(kv)opt_args[(I)-s|--socket]} "$@" 2>/dev/null | |
} | |
# _sway | |
# sway ipc {{{ |
## ifconfig
The ifconfig
command is used to configure a network interface.
For a breakdown of the following ouput see: http://www.aboutlinux.info/2006/11/ifconfig-dissected-and-demystified.html
If you don't want to configure a network interface then running the command without any arguments will display existing network interfaces.
eth0 Link encap:Ethernet HWaddr 0A:05:1E:A5:6F:FF
NewerOlder