Skip to content

Instantly share code, notes, and snippets.

git pull --rebase
#past
log show --last 2h --style compact --predicate "process == 'Mimestream'"
#live
log stream --style compact --predicate "process == 'Mimestream'"
(summary ~ currentUser() OR description ~ currentUser() OR comment ~ currentUser()) and updatedDate >= -7d
for i in *; do zmv $i/'(*).txt' $i/'$1.md'; done
php bin/magento dev:query-log:enable
php bin/magento dev:query-log:disable
rsync -zarv --include "*/" --exclude="*" --include "*.css" from to
find /percorso/della/cartella -type f -name "*.txt" -exec sed -i 's/pattern/replacement/g' {} +
# dry run
find /percorso/della/cartella -type f -name "*.txt" -exec sed -n 's/pattern/replacement/g' {} +
@arioch1984
arioch1984 / Wifi-restart.sh
Last active April 23, 2021 22:56 — forked from MrSuicideParrot/Wifi-restart.sh
Restart network on kali linux, before use wirless in monitor mode #linux #kali
#!/bin/bash
sudo service networking restart
sudo service network-manager restart
@arioch1984
arioch1984 / wp_disable_plugin_update.php
Created June 17, 2015 11:02
WP: disable plugin update messages #wp_disable_plugin_update
<?php
//Disable plugin update message
add_filter('site_transient_update_plugins', 'dd_remove_update_nag');
function dd_remove_update_nag($value) {
unset($value->response[ plugin_basename(__FILE__) ]);
return $value;
}
?>