This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python2 | |
| """ | |
| Other Repositories of python-ping | |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| * https://github.com/l4m3rx/python-ping supports Python2 and Python3 | |
| * https://bitbucket.org/delroth/python-ping |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AD | 02 | Canillo | |
|---|---|---|---|
| AD | 03 | Encamp | |
| AD | 04 | La Massana | |
| AD | 05 | Ordino | |
| AD | 06 | Sant Julia de Loria | |
| AD | 07 | Andorra la Vella | |
| AD | 08 | Escaldes-Engordany | |
| AE | 01 | Abu Dhabi | |
| AE | 02 | Ajman | |
| AE | 03 | Dubai |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Remove all the packages with residual configuration. | |
| # http://stuzhao.blogspot.com/2012/07/removing-all-residual-config-packages.html | |
| sudo apt-get remove --purge `dpkg -l | grep '^rc' | awk '{print $2}'` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/awk | |
| #before processing lines, check if "src" variable has been passed | |
| #If so, print it out, if not just print "origin" | |
| #Set the field separator to be '(' or ')' | |
| BEGIN { | |
| if (src) { | |
| printf "%s -> ", src | |
| } else { | |
| printf "%s -> ", "origin" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # --------------------------------------------------------------------------- | |
| # | |
| # Description: This file holds all my BASH configurations and aliases | |
| # | |
| # Sections: | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) | |
| # 3. File and Folder Management | |
| # 4. Searching | |
| # 5. Process Management |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo iptables -t nat -L -n -v | |
| sudo iptables -t filter -F | |
| sudo iptables -t nat -F | |
| sudo iptables -t mangle -F | |
| sudo iptables -t nat -L -n -v | |
| sudo iptables -t nat -A PREROUTING -i eth1 --src 10.3.14.118 --dst 127.0.0.1 -p tcp --dport 1198 -j REDIRECT --to-ports 5000 | |
| sudo iptables-save | |
| sudo iptables -t nat -L -n -v | |
| /*descobrir portas abertas */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [bpm@dev000] c:/opt>cat sql | |
| BEGIN; | |
| CREATE OR REPLACE FUNCTION update_timestamp() | |
| RETURNS TRIGGER AS $$ | |
| BEGIN | |
| NEW.updated = now(); | |
| RETURN NEW; | |
| END; | |
| $$ language 'plpgsql'; | |
| COMMIT; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # To the extent possible under law, Viktor Szakats | |
| # has waived all copyright and related or neighboring rights to this | |
| # script. | |
| # CC0 - https://creativecommons.org/publicdomain/zero/1.0/ | |
| # SPDX-License-Identifier: CC0-1.0 | |
| # THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
| # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
OlderNewer