I hereby claim:
- I am marcostolosa on github.
- I am marcostolosa (https://keybase.io/marcostolosa) on keybase.
- I have a public key ASDVE7ivh7BXVlqX9tS7wzqu1mbWku58KlT-y34wvJ9Kywo
To claim this, I am signing this object:
| #!/bin/bash | |
| ip_file=~/.ip | |
| if [ ! -f "$ip_file" ]; then touch $ip_file; fi | |
| last=$(cat "$ip_file") | |
| current=$(dig +short myip.opendns.com @resolver1.opendns.com) || exit | |
| if [ "$last" = "$current" ]; then exit; fi | |
| mail -s "[IP from Everywhere]" <your_email>@server.com <<< "$current" |
I hereby claim:
To claim this, I am signing this object:
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure("2") do |config| | |
| config.vm.box = "offensive-security/kali-linux" | |
| # Create a forwarded port | |
| config.vm.network "forwarded_port", guest: 80, host: 8080 | |
| # Create a private network. In VirtualBox, this is a Host-Only network |
| title | kubectl Cheat Sheet | ||||
|---|---|---|---|---|---|
| reviewers |
|
||||
| content_template | templates/concept |
To link serial port ttyS0 to another serial port:
socat /dev/ttyS0,raw,echo=0,crnl /dev/ttyS1,raw,echo=0,crnl
To get time from time server:
socat TCP:time.nist.gov:13 -
To forward local http port to remote http port:
socat TCP-LISTEN:80,fork TCP:www.domain.org:80
| <IfModule mod_expires.c> | |
| ExpiresActive On | |
| ExpiresByType image/jpg "access 1 year" | |
| ExpiresByType image/jpeg "access 1 year" | |
| ExpiresByType image/gif "access 1 year" | |
| ExpiresByType image/png "access 1 year" | |
| ExpiresByType text/css "access 1 month" | |
| ExpiresByType text/html "access 1 month" | |
| ExpiresByType application/pdf "access 1 month" | |
| ExpiresByType text/x-javascript "access 1 month" |
| # How to upgrade a fork with changes from the original? | |
| # Specify a new remote upstream repository that will be synced with the fork. | |
| git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git | |
| # Verify the new upstream repository you've specified for your fork. | |
| # git remote -v | |
| # origin https://github.com/YOUR_USERNAME/YOUR_FORK.git (fetch) |
| import binascii, sys | |
| n = int(sys.argv[1], 2) | |
| f = binascii.unhexlify('%x' % n) | |
| print f |
| North or South Latitude | East or West Longitude |
|---|---|
| North latitude | West longitude |
| 46, 11, 42,152 | 94, 5, 12,890 |
========================================
Google search: 46°11'42.152"N 94°5'12.890"W