start new:
tmux
start new with session name:
tmux new -s myname
import os | |
import re | |
from bs4 import BeautifulSoup | |
from urllib.request import urlopen | |
url = "https://www.who.int/emergencies/diseases/novel-coronavirus-2019/situation-reports" | |
soup = BeautifulSoup(urlopen(url), features="html.parser") |
pm list packages -f |
Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.
Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.
#!/usr/bin/env python | |
from Foundation import NSUserNotification | |
from Foundation import NSUserNotificationCenter | |
from Foundation import NSUserNotificationDefaultSoundName | |
from optparse import OptionParser | |
def main(): | |
parser = OptionParser(usage='%prog -t TITLE -m MESSAGE') |
from Xlib.display import Display | |
from Xlib import X | |
from Xlib.ext import record | |
from Xlib.protocol import rq | |
import time | |
disp = None | |
keysym_map = { | |
32: "SPACE", |
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# | |
# This script is an modification of the script below. | |
# | |
# | |
# examples/record_demo.py -- demonstrate record extension | |
# |
-- This script is used to analyze tcp stream from the input | |
-- libcap file. | |
-- This scirpt current only works well with tshark | |
-- Usage: | |
-- tshark -X lua_script:TcpStreamAnalyze.lua -r inputfile -R display_filter | |
do | |
filter = "ip.addr == 192.168.201.53 && ip.addr == 192.168.201.46 && tcp.port == 80" | |
local streams_table = {} -- table to store all tcp streams |
-- A simple script to analyze Tcp Sequence Numbers | |
-- Usega: wireshark -X lua_script:TcpSeqRetrans.lua | |
-- open a pcap file in wireshark, and then select | |
-- the 'TOOLS/Tcp Sequence Analyze' menu. | |
-- menu function | |
function tsa_menu_func() | |
-- tsa analyze function | |
function tsa_do(ip1, ip2) |