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
| pip install --user azure-cli |
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 | |
| fdisk /dev/sdb | |
| # m – print help | |
| # p – print the partition table | |
| # n – create a new partition | |
| # d – delete a partition | |
| # q – quit without saving changes | |
| # w – write the new partition table and exit | |
| mkfs.ext4 /dev/sdb1 |
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
| # Deleting mail from MAIL-DAEMON in queue | |
| for i in `mailq | grep MAILER-DAEMON | cut -f 1 -d " "`; do postsuper -d $i ; done | |
| # So you get the number of all active mails with the command: | |
| postqueue -p | egrep -c "^[0-9A-F]{10}[*]" | |
| # and the number of all deferred mail with: | |
| postqueue -p | egrep -c "^[0-9A-F]{10}[^*]" | |
| # muestra cola |
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
| # yum install centos-release-scl | |
| # yum install rh-php56-php rh-php56-php-bcmath rh-php56-php-gd rh-php56-php-ldap rh-php56-php-mbstring rh-php56-php-xml rh-php56-php-mysqlnd | |
| # yum install http://repo.zabbix.com/zabbix/3.2/rhel/6/x86_64/zabbix-release-3.2-1.el6.noarch.rpm | |
| # yum install zabbix-agent | |
| # yum --enablerepo=zabbix-deprecated install zabbix-server-mysql | |
| # yum --enablerepo=zabbix-deprecated install zabbix-web-mysql | |
| # yum install mysql-server | |
| # vi /etc/my.cnf | |
| # service mysqld start | |
| # chkconfig mysqld on |
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 | |
| N=1 | |
| while [ $N -lt 254 ] | |
| do | |
| ping 10.80.0.$N -c 1 | |
| COUNTER=$(( $N + 1 )) | |
| done |
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 | |
| # OG - 10-05-2017 | |
| # -------------------------------------------------------------- | |
| # Este comando; permite crea un proyecto desde 0 en Ionic | |
| # tabs : a simple 3 tab layout | |
| # sidemenu: a layout with a swipable menu on the side | |
| # blank: a bare starter with a single page | |
| # super: starter project with over 14 ready to use page designs | |
| # tutorial: a guided starter project |
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
| /* Estilo Silver Para Mapa */ | |
| [ | |
| { | |
| elementType: 'geometry', | |
| stylers: [{color: '#f5f5f5'}] | |
| }, | |
| { | |
| elementType: 'labels.icon', | |
| stylers: [{visibility: 'off'}] | |
| }, |
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
| [ | |
| {elementType: 'geometry', stylers: [{color: '#242f3e'}]}, | |
| {elementType: 'labels.text.stroke', stylers: [{color: '#242f3e'}]}, | |
| {elementType: 'labels.text.fill', stylers: [{color: '#746855'}]}, | |
| { | |
| featureType: 'administrative.locality', | |
| elementType: 'labels.text.fill', | |
| stylers: [{color: '#d59563'}] | |
| }, | |
| { |
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@QAFUSE01 ~]# zdump -v /usr/share/zoneinfo/America/Santiago | grep 2017 | |
| /usr/share/zoneinfo/America/Santiago Sun May 14 02:59:59 2017 UTC = Sat May 13 23:59:59 2017 CLST isdst=1 gmtoff=-10800 | |
| /usr/share/zoneinfo/America/Santiago Sun May 14 03:00:00 2017 UTC = Sat May 13 23:00:00 2017 CLT isdst=0 gmtoff=-14400 | |
| /usr/share/zoneinfo/America/Santiago Sun Aug 13 03:59:59 2017 UTC = Sat Aug 12 23:59:59 2017 CLT isdst=0 gmtoff=-14400 | |
| /usr/share/zoneinfo/America/Santiago Sun Aug 13 04:00:00 2017 UTC = Sun Aug 13 01:00:00 2017 CLST isdst=1 gmtoff=-10800 |
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 | |
| # Open port 53 on firewall (iptables) Only for CentOS 6.X | |
| sudo iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT | |
| sudo iptables -A INPUT -p icmp -j ACCEPT # (Ping) | |
| sudo iptables -A INPUT -i lo -j ACCEPT # (localhost) | |
| sudo iptables -A INPUT -p tcp --dport ssh -j ACCEPT # SSH-Acceso | |
| sudo iptables -I INPUT -p tcp -m tcp --dport 53 -j ACCEPT # DNS |