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
| # VIM with esteroids in one line (https://github.com/amix/vimrc) | |
| git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime && sh ~/.vim_runtime/install_awesome_vimrc.sh |
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
| <li> | |
| <a style="background-image: url('/blog/wp-content/uploads/2019/04/NY.png');" target="_blank" | |
| href="http://www.skyscanner.com.mx/transporte/vuelos/mex/nyca/vuelos-baratos-de-ciudad-de-mexico-a-nueva-york.html?adults=1&children=0&infants=0&cabinclass=economy&rtn=1&preferdirects=false&outboundaltsenabled=false&inboundaltsenabled=false&selectedoday=01&oym=1608&iym=1609&selectediday=01"> | |
| <strong>Ciudad de México a NEW YORK</strong> | |
| </a> | |
| </li> | |
| <li> | |
| <a style="background-image: url('/blog/wp-content/uploads/2019/04/NY.png');" target="_blank" | |
| href="http://www.skyscanner.com.mx/transporte/vuelos/mex/nyca/vuelos-baratos-de-ciudad-de-mexico-a-nueva-york.html?adults=1&children=0&infants=0&cabinclass=economy&rtn=1&preferdirects=false&outboundaltsenabled=false&inboundaltsenabled=false&selectedoday=01&oym=1608&iym=1609&selectediday=01"> | |
| <strong>Ciudad de México a NEW YORK</strong> |
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 apt-get update && sudo apt-get install mysql-server -y | |
| sudo mysql_secure_installation | |
| # Switching authentication method from auth_socket to mysql_native_password | |
| sudo mysql | |
| MYSQL> SELECT user,authentication_string,plugin,host FROM mysql.user; | |
| MYSQL> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; | |
| MYSQL> FLUSH PRIVILEGES; | |
| MYSQL> SELECT user,authentication_string,plugin,host FROM mysql.user; | |
| MYSQL> exit |
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 apt-get update | |
| sudo apt install gnupg2 wget ca-certificates -y | |
| sudo apt install wget software-properties-common apt-transport-https -y | |
| # PHP 7.4 + Composer | |
| sudo add-apt-repository ppa:ondrej/php | |
| sudo apt-get update | |
| sudo apt-get install php7.4 php7.4-fpm php7.4-cli php7.4-common php7.4-mysql php7.4-zip php7.4-gd php7.4-mbstring php7.4-curl php7.4-xml php7.4-bcmath php7.4-bz2 php7.4-imagick php7.4-mcrypt php7.4-opcache php7.4-sqlite3 php7.4-ssh2 php7.4-uploadprogress php7.4-uuid -y |
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
| # Update Server | |
| sudo apt-get update && sudo apt-get upgrade -y | |
| # Universe + Fira Font | |
| sudo add-apt-repository universe | |
| sudo apt install fonts-firacode -y | |
| # Tools | |
| sudo apt-get install curl wget vim gdebi-core zsh git-core fontconfig -y | |
| # Setting Vim as default editor | |
| sudo update-alternatives --config editor |
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
| public static void main(){ | |
| String str = (12345).toString(); | |
| String[] arrOfStr = str.split(""); | |
| String result = ""; | |
| for (String a : arrOfStr) { | |
| String temp = Math.pow(parseInt(a), 5).toString; | |
| result = result.concat( temp ); | |
| } | |
| system.out.println( result ); |
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 os | |
| import pwd | |
| import subprocess | |
| import argparse | |
| def demote(user_uid, user_gid): | |
| def result(): | |
| report_ids('starting demotion') | |
| os.setgid(user_gid) |
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
| CREATE TABLE `users` ( | |
| `id` int(11) unsigned NOT NULL AUTO_INCREMENT, | |
| `active` tinyint(1) NOT NULL, | |
| `email` varchar(255) NOT NULL DEFAULT '', | |
| `pwd` varchar(255) NOT NULL DEFAULT '', | |
| `quota` INT(10) DEFAULT '10485760', | |
| `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | |
| PRIMARY KEY (`id`) | |
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; |
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
| Ciphers aes128-ctr,aes192-ctr,aes256-ctr | |
| HostKeyAlgorithms ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-rsa,ssh-dss | |
| KexAlgorithms ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha256 | |
| MACs hmac-sha2-256,hmac-sha2-512,hmac-sha1 | |
| LogLevel VERBOSE | |
| AuthorizedKeysFile /etc/ssh/authorized-keys/%u | |
| PermitRootLogin prohibit-password |
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
| # Setting locales with root user | |
| export LANGUAGE=en_US.UTF-8 | |
| export LANG=en_US.UTF-8 | |
| export LC_ALL=en_US.UTF-8 | |
| locale-gen en_US.UTF-8 | |
| localedef -i en_US -f UTF-8 en_US.UTF-8 | |
| dpkg-reconfigure locales |
NewerOlder