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
| /*********************************************************** | |
| * | |
| * Autor : Rodrigo Ramírez N. | |
| * e-mail : decipher@decipher.dsland.org | |
| * Descripcion : Emula un agente aspiradora | |
| * con las persepciones de avanzar, | |
| * doblar, presencia de obstaculo, | |
| * muro, recordar lugar por donde | |
| * a pasado y haber limpiado todo. | |
| * |
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
| root@vagrant-ubuntu-trusty-32:~# wget https://gist.githubusercontent.com/roramirez/b43bbef3b7944e771dfc/raw/ce39b289b4f07512ca97f38eb4320c496e21678b/simple_iptables_firewall_init.sh | |
| --2016-05-21 15:19:05-- https://gist.githubusercontent.com/roramirez/b43bbef3b7944e771dfc/raw/ce39b289b4f07512ca97f38eb4320c496e21678b/simple_iptables_firewall_init.sh | |
| Resolving gist.githubusercontent.com (gist.githubusercontent.com)... 23.235.47.133 | |
| Connecting to gist.githubusercontent.com (gist.githubusercontent.com)|23.235.47.133|:443... connected. | |
| HTTP request sent, awaiting response... 200 OK | |
| Length: 1869 (1.8K) [text/plain] | |
| Saving to: ‘simple_iptables_firewall_init.sh’ | |
| 100%[=========================================================================================================================================>] 1,869 --.-K/s in 0s |
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
| diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c | |
| index 4fa7760..6ef6ed9 100644 | |
| --- a/src/bin/psql/command.c | |
| +++ b/src/bin/psql/command.c | |
| @@ -161,6 +161,55 @@ HandleSlashCmds(PsqlScanState scan_state, | |
| return status; | |
| } | |
| +static void | |
| +print_seconds_ago(int secs) |
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/bash | |
| # | |
| # This script configures WordPress file permissions based on recommendations | |
| # from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
| # | |
| # Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
| # | |
| WP_OWNER=www-data # <-- wordpress owner | |
| WP_GROUP=www-data # <-- wordpress group | |
| WP_ROOT=$1 # <-- wordpress root directory |
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/bash | |
| ### BEGIN INIT INFO | |
| # Provides: freeswitch | |
| # Required-Start: $local_fs $remote_fs | |
| # Required-Stop: $local_fs $remote_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Description: Freeswitch debian init script. | |
| # Author: Matthew Williams | |
| # |
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
| diff --git a/cdr/cdr_adaptive_odbc.c b/cdr/cdr_adaptive_odbc.c | |
| index 0da8c01..2b9f339 100644 | |
| --- a/cdr/cdr_adaptive_odbc.c | |
| +++ b/cdr/cdr_adaptive_odbc.c | |
| @@ -90,6 +90,8 @@ struct tables { | |
| static AST_RWLIST_HEAD_STATIC(odbc_tables, tables); | |
| +static int connected = 0; | |
| + |
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
| import socket | |
| import fcntl | |
| import struct | |
| def getHwAddr(ifname): | |
| s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
| info = fcntl.ioctl(s.fileno(), 0x8927, struct.pack('256s', ifname[:15])) | |
| return ''.join(['%02x:' % ord(char) for char in info[18:24]])[:-1] |
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
| moe :: ~ » cd /tmp | |
| moe :: /tmp » wget http://www.openipcam.com/files/Firmware/ES-IP607/IP607ZC0301_V1.2_Updated_software090905.rar | |
| --2016-01-04 13:43:04-- http://www.openipcam.com/files/Firmware/ES-IP607/IP607ZC0301_V1.2_Updated_software090905.rar | |
| Resolving www.openipcam.com (www.openipcam.com)... 162.210.36.26 | |
| Connecting to www.openipcam.com (www.openipcam.com)|162.210.36.26|:80... connected. | |
| HTTP request sent, awaiting response... 200 OK | |
| Length: 1424436 (1.4M) [application/rar] | |
| Saving to: `IP607ZC0301_V1.2_Updated_software090905.rar' | |
| 100%[================================================================>] 1,424,436 288K/s in 4.8s |
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
| moe :: ~ » cd /tmp | |
| moe :: /tmp » wget http://www.openipcam.com/files/Firmware/ES-IP607/IP607ZC0301_V1.2_Updated_software090905.rar | |
| --2016-01-04 13:43:04-- http://www.openipcam.com/files/Firmware/ES-IP607/IP607ZC0301_V1.2_Updated_software090905.rar | |
| Resolving www.openipcam.com (www.openipcam.com)... 162.210.36.26 | |
| Connecting to www.openipcam.com (www.openipcam.com)|162.210.36.26|:80... connected. | |
| HTTP request sent, awaiting response... 200 OK | |
| Length: 1424436 (1.4M) [application/rar] | |
| Saving to: `IP607ZC0301_V1.2_Updated_software090905.rar' | |
| 100%[================================================================>] 1,424,436 288K/s in 4.8s |
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/bash | |
| # uwsgi - Use uwsgi to run python and wsgi web apps. | |
| # | |
| # chkconfig: - 85 15 | |
| # description: Use uwsgi to run python and wsgi web apps. | |
| # processname: uwsgi | |
| # idea: https://www.linode.com/docs/websites/nginx/wsgi-using-uwsgi-and-nginx-on-centos-5 |