Please note that this whole manual refers to the version 3.4.6 of Squid. You probably would have to adapt some commands to the version you will actually download.
This file contains 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 | |
/usr/bin/mysql -e "SELECT s.schema_name, CONCAT(IFNULL(ROUND((SUM(t.data_length)+SUM(t.index_length))/1024/1024,2),0.00),\"Mb\") total_size, CONCAT(IFNULL(ROUND(((SUM(t.data_length)+SUM(t.index_length))-SUM(t. | |
data_free))/1024/1024,2),0.00),\"Mb\") data_used, CONCAT(IFNULL(ROUND(SUM(data_free)/1024/1024,2),0.00),\"Mb\") data_free, IFNULL(ROUND((((SUM(t.data_length)+SUM(t.index_length))-SUM(t.data_free))/((SUM(t.data | |
_length)+SUM(t.index_length)))*100),2),0) pct_used FROM INFORMATION_SCHEMA.SCHEMATA s, INFORMATION_SCHEMA.TABLES t WHERE s.schema_name = 'khp_nms_db_01' GROUP BY s.schema_name ORDER BY total_size DESC; SELECT | |
s.schema_name, table_name, CONCAT(IFNULL(ROUND((SUM(t.data_length)+SUM(t.index_length))/1024/1024,2),0.00),\"Mb\") total_size, CONCAT(IFNULL(ROUND(((SUM(t.data_length)+SUM(t.index_length))-SUM(t.data_free))/10 | |
24/1024,2),0.00),\"Mb\") data_used, CONCAT(IFNULL(ROUND(SUM(data_free)/1024/1024,2),0.00),\"Mb\") data_free, IFNULL(ROUND((((SUM(t.data_length)+SUM(t.index_length))-SUM(t |
This file contains 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 | |
# | |
# Watch current directory (recursively) for file changes, and execute | |
# a command when a file or directory is created, modified or deleted. | |
# | |
# Written by: Senko Rasic <[email protected]> | |
# | |
# Requires Linux, bash and inotifywait (from inotify-tools package). | |
# | |
# To avoid executing the command multiple times when a sequence of |
Run like so:
node gist-clone-all.js username
You'll want to replace "username" with your own username.
This script clones using the push URL, so you should probably be the owner of the gists. You could also use this to clone someone else's gists, but in that case you may wish to edit the code to use gist_pull_url
instead.
This file contains 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 | |
# Based on https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
############################################################################### | |
# General UI/UX # | |
############################################################################### | |
# Set computer name (as done via System Preferences → Sharing) | |
scutil --set ComputerName "Edson Alves Junior's MacBook Pro" | |
scutil --set HostName "Edson Alves Junior's MacBook Pro" |
This file contains 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 | |
# Based on https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
############################################################################### | |
# General UI/UX # | |
############################################################################### | |
# Set computer name (as done via System Preferences → Sharing) | |
scutil --set ComputerName "Edson Alves Junior's MacBook Pro" | |
scutil --set HostName "Edson Alves Junior's MacBook Pro" |
NewerOlder