Skip to content

Instantly share code, notes, and snippets.

while read event target lost ; do
case $event in
NEW )
ip2int $target intTarget
((count[intTarget]++))
...
esac
done < <(tail -f /path/logfile | sed -une '
s/^.*New incom.*from ip \([0-9.]\+\) .*$/NEW \1/p;
public static void Break(int userID)
{
if (userID == 12345)
{
Debugger.Launch();
Debugger.Break();
}
}
#!/usr/bin/env bash
ping_cancelled=false
until ping -c1 "$1" &>/dev/null; do :; done &
trap "kill $!; ping_cancelled=true" SIGINT
wait $!
trap - SIGINT
echo "Done pinging, cancelled=$ping_cancelled"
@Memphizzz
Memphizzz / nmap
Last active January 8, 2019 19:04
Deepin
==> Reinstalling nmap
==> Downloading https://nmap.org/dist/nmap-7.70.tar.bz2
Already downloaded: /home/memphiz/.cache/Homebrew/downloads/dd50f23c7ae49ac12f3784652fdca2cb671c3efb8bd9d6164eb8750f54619cbe--nmap-7.70.tar.bz2
==> ./configure --prefix=/home/linuxbrew/.linuxbrew/Cellar/nmap/7.70 --with-libpcre=included --with-liblua=included --with-openssl=/home/linuxbrew/.linuxbrew/opt/openssl --without-nmap-
==> make -j5
==> make install
🍺 /home/linuxbrew/.linuxbrew/Cellar/nmap/7.70: 808 files, 27.7MB, built in 1 minute 54 seconds
memphiz@DeepinVM ~> brew edit nmap
Editing /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/nmap.rb
$netconf = Get-NetConnectionProfile -InterfaceAlias "vEthernet"
$netconf.NetworkCategory = "Private"
Set-NetConnectionProfile -InputObject $netconf
@Memphizzz
Memphizzz / tmp
Created September 28, 2018 11:24
time="2018-09-28T13:21:55+02:00" level=warning msg="Checking for jobs... failed" runner=61bc41d3 status="couldn't execute POST against https://server.domain.local/api/v4/jobs/request: Post https://server.domain.local/api/v4/jobs/request: x509: certificate signed by unknown authority"
concurrent = 1
check_interval = 0
[session_server]
session_timeout = 1800
[[runners]]
name = "RUNNER01"
foo
: command not found
~/~/tmp.fish (line 1):
echo "foo"; and \
^
in function “tmp2”
called on standard input
bar
https://www.deviantart.com/alexgal23/art/Numix-Cursors-631491782
https://www.deviantart.com/stamga/art/Pulse-Glass-122337588
https://www.deviantart.com/tchiro/art/Eff-cursors-437903038
https://www.deviantart.com/randomacronym/art/Cursor-Sans-Family-v1-5-1-468397737
#NoTrayIcon
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Outfile=UACHelper_x86.exe
#AutoIt3Wrapper_Outfile_x64=UACHelper.exe
#AutoIt3Wrapper_Compile_Both=y
#AutoIt3Wrapper_Run_Tidy=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
Dim $class = "[CLASS:Credential Dialog Xaml Host]"
function FileExists --argument-names path
if test -e $path
return 0
else
return 1
end
end
function WTF
set file '/cygdrive/c/Program Files/Microsoft VS Code/Code.exe'