| Command | Description |
|---|---|
cd - |
🔙 Teleport to previous directory |
pushd <dir> |
📚 Change directory, save current to stack |
popd |
📚 Return to most recently pushed directory |
cd ~ |
🏠 Go to home directory |
This file contains hidden or 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: Mark stale pull requests in Shepherd repo | |
| on: | |
| schedule: | |
| - cron: '0 0 * * 1' # Runs every Monday at midnight | |
| jobs: | |
| stale: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 |
This file contains hidden or 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
| <header class="header"> | |
| <a href="" class="logo">CSS Nav</a> | |
| <input class="menu-btn" type="checkbox" id="menu-btn" /> | |
| <label class="menu-icon" for="menu-btn"><span class="navicon"></span></label> | |
| <ul class="menu"> | |
| <li><a href="#work">Our Work</a></li> | |
| <li><a href="#about">About</a></li> | |
| <li><a href="#careers">Careers</a></li> | |
| <li><a href="#contact">Contact</a></li> | |
| </ul> |
This file contains hidden or 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
| def search_file(term, fname): | |
| with open(fname, "r") as filein: | |
| content = filein.read() | |
| if term in content: | |
| return True | |
| else: | |
| return False | |
| def term_check(): |
This file contains hidden or 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
| ((?:Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)?|May|Jun(?:e)?|Jul(?:y)?|Aug(?:ust)?|Sep(?:tember)?|Sept|Oct(?:ober)?|Nov(?:ember)?|Dec(?:ember)?) \s\d\s\d{1,2}:\d{1,2}:\d{1,2}\s)(did\d+)\s(inbound\[\d+\]):\s(FAX/VOICE):\s(service=\w+),\s(to=\w+),\s(utime=\d+),\s(page_cnt=\d+),\s(mode=\w+:\d+),\s(contact_ip=\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}),\s(vchan=\d+),\s(session=\d+),\s(res=\d+),\s(bps=\d+),\s(dur=\d+),\s(size=\d+),\s(skey=\d+),\s(ckey=\d+),\s(csid=\w+|\d+),\s(j2num=\w+|\d+),\s(did=\d+),\s(email=\d+@\w+.\w+.\w+.\w+\|2),\s+(msgid=)<(\w+-\d+-\d+-\d+)>,\s |
This file contains hidden or 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
| seq 1 1000 | parallel -j20 do_something |
This file contains hidden or 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
| //Install Macports. | |
| //Install aircrack-ng: | |
| sudo port install aircrack-ng | |
| //Install the latest Xcode, with the Command Line Tools. | |
| //Create the following symlink: | |
| sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport | |
| //Figure out which channel you need to sniff: | |
| sudo airport -s | |
| sudo airport en1 sniff [CHANNEL] |
Code Sample
package main
import "fmt"
import "runtime"
func main() {
fmt.Printf("Hello %s/%s\n", runtime.GOOS, runtime.GOARCH)
}
This file contains hidden or 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 itertools | |
| import unittest | |
| def permutation_solution(list_object): | |
| result_set = set() | |
| permuation_generator = itertools.permutations(list_object) | |
| for each_ele in permuation_generator: |