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
| ########################### | |
| #### linux-permissions #### | |
| ########################### | |
| # Display permissions in octal format; like 600 | |
| stat -c %a <file-name> | |
| ########################### | |
| ##### sys-admin-util ###### | |
| ########################### |
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 /etc/init.d/mysql stop | |
| $ sudo mysqld --skip-grant-tables & (enter para que te dé promt) | |
| $ mysql -u root | |
| > FLUSH PRIVILEGES; (dentro del cliente de MYSQL) | |
| > SET PASSWORD FOR 'root'@'localhost' = PASSWORD ('123'); [ctrl+d para salir] | |
| $ sudo mysql -u root -p (verificamos contraseña modificada) | |
| $ ps aux | grep mysqld | |
| $ sudo kill <pids> (listamos los PIDS de la instrucción anterior) | |
| $ sudo /etc/init.d/mysql start | |
| $ mysql -u root -p (escribir password modificado) |
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
| grep -vEc '200,OK|500,Internal\ Server\ Error|java.net.SocketException|org.apache.http.NoHttpResponseException|org.apache.http.conn.ConnectionTimeoutException' file.ext |
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
| private String getCurrentTime(){ | |
| final SimpleDateFormat dateFormat; | |
| String currentTime = null; | |
| Date date; | |
| Long date_miliseconds = null; | |
| try { | |
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
| private String getBodyResponse(HttpURLConnection connection){ | |
| String line = null; | |
| BufferedReader br = null; | |
| StringBuilder sb = null; | |
| String body = null; | |
| int response_code; | |
| InputStreamReader isr; | |
| try { |
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
| /** | |
| * This class show how to compare two strings | |
| * using the ASCII code representation. | |
| */ | |
| public class CompareBytes { | |
| public CompareBytes(){ | |
| } | |
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/sudo bash | |
| service postgresql stop | |
| sync | |
| echo 3 > /proc/sys/vm/drop_caches | |
| service postgresql restart |
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
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |