Skip to content

Instantly share code, notes, and snippets.

View lessmost's full-sized avatar

lessmost lessmost

  • Alibaba
  • Hangzhou China
View GitHub Profile
@lessmost
lessmost / TcpSeqRetrans.lua
Created February 18, 2012 06:05
A simple wireshark lua script to analyze tcp retransmission and duplicated
-- 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)
@lessmost
lessmost / TcpStreamAnalyze.lua
Created February 18, 2012 06:07
wireshark tcp stream split in lua script
-- 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
@lessmost
lessmost / gist:8a51c40abfc9c9d32e0e
Last active August 29, 2015 14:03
set git server over apache httpd
# Git over http setting
#Set this to the root folder containing your Git repositories.
SetEnv GIT_PROJECT_ROOT E:/GitRepos
# Set this to export all projects by default (by default,
# git will only publish those repositories that contain a
# file named “git-daemon-export-ok”
SetEnv GIT_HTTP_EXPORT_ALL
@lessmost
lessmost / Collapsing Margins: Parents and Children Comparison.markdown
Created September 11, 2015 03:26
Collapsing Margins: Parents and Children Comparison
@lessmost
lessmost / Oyyxgr.markdown
Last active September 11, 2015 06:52
Oyyxgr
@lessmost
lessmost / cask_upgrade.sh
Last active September 6, 2018 01:12
shell script to check outdated caskroom
#!/usr/bin/env bash
(set -x; brew update;)
(set -x; brew cleanup;)
#(set -x; brew cask cleanup;)
red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`
abusaidm.html-snippets
akamud.vscode-theme-onedark
alefragnani.Bookmarks
alefragnani.project-manager
bam.vscode-file-templates
batisteo.vscode-django
christian-kohler.npm-intellisense
christian-kohler.path-intellisense
codezombiech.gitignore
DavidAnson.vscode-markdownlint
{
// Defines VS Code's display language.
// See https://go.microsoft.com/fwlink/?LinkId=761051 for a list of supported languages.
"locale":"en" // Changes will not take effect until VS Code has been restarted.
}
#defaults write -app DingTalk SUEnableAutomaticChecks 0
#defaults write -app DingTalk SUAutomaticallyUpdate 0
#defaults write -app DingTalk SUAllowsAutomaticUpdates 0
#defaults write -app DingTalk SUFeedURL https://example.com/appcast.xml
echo "Please install DingTalk from App Store"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.user.service.remind</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/remind</string>
<string>-z</string>