Skip to content

Instantly share code, notes, and snippets.

View VitaliySh's full-sized avatar

Vitaliy Shaykhutdinov VitaliySh

  • Somewhere in the Ural Mountains
View GitHub Profile
# DHCP
tcpdump -i eth0 -pvn port 67 and port 68
# DHCPv6
tcpdump -i eth0 -n -vv '(udp port 546 or 547) or icmp6'
curl --verbose --user admin:admin -d '{"hello:input": { "name":"talonx"}}' -H "Content-Type: application/json" "http://localhost:8181/restconf/operations/hello:hello-world"
@VitaliySh
VitaliySh / gpspipe.md
Created April 12, 2020 17:07 — forked from nickoala/gpspipe.md
Log GPSD Outputs and Extract Lat/Lon

Log GPSD Outputs and Extract Lat/Lon

$ gpspipe -w             # log to stdout
$ gpspipe -w -o abc.log  # log to a file

To auto-log on startup, insert the following line to the file /etc/rc.local:

@VitaliySh
VitaliySh / vagrant virtualbox vm to vmwarefusion.md
Created July 26, 2018 16:24 — forked from biophonc/vagrant virtualbox vm to vmwarefusion.md
Migrate Vagrant VirtualBox VM to VMware Fusion

Migrate Vagrant VirtualBox VM to VMware Fusion

Notes:

  • Unfortunately the process is not as simple as I'd have expected it, that's why I wrote this little step-by-step instruction.
  • My setup is/was:
    • OSX 10.9.4
    • VirtualBox 4.3.12
    • VMware Fusion 6.0.4
    • OS as VM to migrate: Ubuntu 10.04.4 LTS
# Boxstarter options
$Boxstarter.RebootOk=$true # Allow reboots?
$Boxstarter.NoPassword=$false # Is this a machine with no login password?
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot
# Basic setup
Update-ExecutionPolicy Unrestricted
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
Disable-InternetExplorerESC
@VitaliySh
VitaliySh / howto_sort_files.md
Last active October 1, 2017 16:59
How to sort files by changing their mtime
  1. Create the list of files. For example using:

ls > list.txt

  1. sort the list.txt by hand using your text editor or do whatever you like with it

  2. Use this command to change mtime of each file in the list