w: show who is logged on and what they are doingwho: show who is logged ontty: show current users pseudo terminalps -ft pts/1: get process id for the pseudo terminalpkill: signal process based on name and other attributes
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 tkinter as tk | |
| import tkinter.messagebox as tkMessageBox | |
| import threading | |
| from queue import Queue | |
| # Thread-safe version. | |
| # Tkinter functions are put into queue and called by prompt_thread_loop | |
| # in the main thread. | |
| messagebox_queue = Queue() |
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 tkinter as tk | |
| x = [2, 100, 1000, 10000, 100000, 1000000] | |
| y = [0, 0, 0.0055, 31.250, 562.51, 62600] | |
| WIDTH = 700 | |
| HEIGHT = 600 | |
| xy = list(map(lambda x, y: [x, y], x, y)) | |
| MINX = min(x) |
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
| patch: | |
| ascii_composer: | |
| switch_key: | |
| Shift_L: commit_code |
This file has been truncated, but you can view the full file.
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
| [Rule] | |
| DOMAIN-SUFFIX,ad.12306.cn,REJECT |
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
| for i in `seq 255` | |
| do | |
| { | |
| ping -c 2 192.168.1.$i -W 500 > /dev/null | |
| if [ $? -eq 0 ]; then | |
| echo 192.168.1.$i is ok >> ip.txt | |
| fi | |
| } | |
| done |
Sometimes you want to modify a public repo while keep the changes secret. And here's how:
https://docs.github.com/en/repositories/creating-and-managing-repositories/duplicating-a-repository https://stackoverflow.com/questions/10065526/github-how-to-make-a-fork-of-public-repository-private
- Replace below keyword template to fit with your use case:
userrr: author of the public repo -> xxx
OlderNewer