Skip to content

Instantly share code, notes, and snippets.

@jonathanagustin
jonathanagustin / _readme.md
Created June 8, 2022 06:19 — forked from maxivak/_readme.md
Vagrant with Ubuntu 16.04 in VirtualBox

Setup Ubuntu 16.04 to be used with Vagrant and Virtualbox

Prepare Vagrant box with Ubuntu 16.04

We will use official box "ubuntu/xenial64" and modify it to work with Vagrant.

  • Vagrantfile
@jonathanagustin
jonathanagustin / Vagrantfile
Created June 8, 2022 04:35 — forked from akrabat/Vagrantfile
Example Vagrantfile for Windows
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Base box: https://github.com/akrabat/packer-templates
Vagrant.configure("2") do |config|
config.vm.box = "19ft/windows2016"
config.vm.guest = :windows
config.vm.boot_timeout = 600

progrium/bashstyle

Bash is the JavaScript of systems programming. Although in some cases it's better to use a systems language like C or Go, Bash is an ideal systems language for smaller POSIX-oriented or command line tasks. Here's three quick reasons why:

  • It's everywhere. Like JavaScript for the web, Bash is already there ready for systems programming.
  • It's neutral. Unlike Ruby, Python, JavaScript, or PHP, Bash offends equally across all communities. ;)
  • It's made to be glue. Write complex parts in C or Go (or whatever!), and glue them together with Bash.

This document is how I write Bash and how I'd like collaborators to write Bash with me in my open source projects. It's based on a lot of experience and time collecting best practices. Most of them come from these two articles, but here integrated, slightly modified, and focusing on the most bang for buck items. Plus some ne

@jonathanagustin
jonathanagustin / log_status_python3_and_python2.md
Created April 10, 2021 04:12 — forked from takurx/log_status_python3_and_python2.md
On Ubuntu 20.04 it is status of python3 and python2.

0. Default

  • python
sharo@kirima:~$ python

Command 'python' not found, did you mean:

  command 'python3' from deb python3
  command 'python' from deb python-is-python3
@jonathanagustin
jonathanagustin / cot.js
Created October 9, 2018 09:12 — forked from ianblenke/cot.js
Attempting to feed ATAK a Cursor on Target message
const dgram = require('dgram');
const socket = dgram.createSocket('udp4');
//var port = 4242
//var port = 8087
var port = 18999
var address = "192.168.14.151"
var msg = '<?xml version="1.0" standalone="yes"?><event version="2.0" uid="J-01334" type="a-h-A-M-F-U-M" time="2005-04-05T11:43:38.07Z" start="2005-04-05T11:43:38.07Z" stale="2005-04-05T11:45:38.07Z"><detail></detail><point lat="30.0090027" lon="-85.9578735" ce="45.3" hae="-42.6" le="99.5"/></event>'