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
killthem (){ | |
#https://www.linuxuprising.com/2019/07/how-to-completely-disable-tracker.html | |
# No need to be "SU" | |
systemctl --user mask tracker-store.service \ | |
tracker-miner-fs.service \ | |
tracker-miner-rss.service \ | |
tracker-extract.service \ | |
tracker-miner-apps.service \ | |
tracker-writeback.service | |
tracker reset --hard |
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
demo (){ | |
NO=0 | |
ALL=30 | |
HIT=0 | |
while true ;do | |
[[ "$((RANDOM%5))" -eq 0 ]] && let HIT++ | |
let NO++ | |
##################################### | |
echo -ne " $NO / $ALL / HIT: $HIT\r" |
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
#!/bin/bash | |
VMDIR="$HOME/ssd120" | |
ISODIR="$HOME/ex11/linux_iso" | |
FOLDER_TO_BE_SHARED="$HOME/dotfiles" # Set as readonly, automount. | |
######################################### | |
cd "$HOME" | |
[[ ! -d "$VMDIR" ]] && VMDIR="$HOME" |
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
Set-Item function:global:prompt {$host.UI.Write("Yellow", $host.UI.RawUI.BackgroundColor, "PS ");$host.UI.WriteLine("Green", $host.UI.RawUI.BackgroundColor,(Get-Location).Path); ">+XX(@>|" } |
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
xdg-mime query filetype /path/to/file |
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
javascript:(function(){var o=new XMLSerializer();e = document.createElement('textarea');e.textContent = (o.serializeToString(document.documentElement));document.body.appendChild(e);e.select();document.execCommand('copy');e.remove();})(); | |
//############################################################################# | |
javascript:( | |
function(){ | |
var o=new XMLSerializer(); | |
e = document.createElement('textarea'); | |
e.textContent = (o.serializeToString(document.documentElement)); | |
document.body.appendChild(e); | |
e.select(); |
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
#!/bin/bash | |
cd "$(cd "$(dirname "$0")";pwd)" | |
ALIVE=crawler_PID_$$.runnig | |
echo $$ >"$ALIVE" | |
wget \ | |
--mirror \ | |
--recursive \ | |
--continue \ | |
--execute robots=off \ | |
--user-agent='Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2725.0 Safari/537.36' \ |
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
sed -e 's|<[^>]*>||g' |
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
function FUNC (){ | |
scripts.. | |
} | |
export -f FUNC | |
stdout | xargs -t -I{} bash -c "FUNC {}" | |
^ ^ quate here |
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
Emcode | |
stdout | nkf -WwMQ | tr = % |stdout | |
Decode | |
stdout | nkf --url-input |stdout |