How To Clear All iptables Rules
1 2 3 4 5 6 7 |
iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT iptables -P OUTPUT ACCEPT iptables -t nat -F iptables -t mangle -F iptables -F iptables -X |
1 2 3 4 5 6 7 |
iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT iptables -P OUTPUT ACCEPT iptables -t nat -F iptables -t mangle -F iptables -F iptables -X |
I wanted to empty the time series data cache from the Prometheus server to start clean. The best practice is to use the administrative HTTP API via curl. For example, to clear all data for job mysqld as defined in the prometheus.yml configuration file:
1 |
curl -X POST -g 'http://localhost:9090/api/v1/admin/tsdb/delete_series?match[]={job="mysqld"}' |
If you want to delete ALL data from Prometheus, then […]
Every once in a while there is a hiccup in my internet service and every host that Nagios monitors shows DOWN. In those situations, I do not need the hundreds of the emails and text messages generated by Nagios. Here is the procedure for resetting Nagios v3.5.0 running on MacOSX 10.6.8 via a MacPorts install: […]
Open Terminal and run the purge command, located in /usr/bin/. Note: You may need to have XCode Developer Tools installed in order to use the purge command. YMMV… As per Apple: http://support.apple.com/kb/HT1342 Inactive Memory: This information is in RAM but it is not actively being used, it was recently used. For example, if you’ve been […]
An HTML file input can’t be cleared by normal means (i.e. setting the value to null or an empty string) because of browser security restrictions. In most browsers, setting a null value attribute either will have no effect or cause an error. Creating a new element that clones the old element and swap the two […]
Add the following line to your .vimrc file: [code]hi Search ctermfg=white ctermbg=lightgreen guifg=white guibg=black[/code] Color List Color Schemes Color Scroller Use :noh to clear the last search highlight. Place the following in your ~/.vimrc to map the F3 key to a highlight toggle: [code]nnoremap <F3> :set hlsearch!<CR>[/code]