Skip to content

Instantly share code, notes, and snippets.

Edit Icon in /usr/share/applications/skypeforlinux.desktop
Icon=/usr/share/icons/hicolor/256x256/apps/skypeforlinux.png
@argilzar
argilzar / navicat.desktop
Created May 1, 2018 09:16
Create navicat desktop entry ubuntu
cat > ~/.local/share/applications/navicat.desktop <<EOL
[Desktop Entry]
Encoding=UTF-8
Name=Navicat
Exec=/opt/navicat120_premium_en_x64/start_navicat
Icon=/opt/navicat120_premium_en_x64/Navicat/navicat-premium-icon.png
Terminal=false
Type=Application
Categories=Wine;
StartupNotify=true
systemctl stop nginx;certbot renew --dry-run --pre-hook "systemctl stop nginx" --post-hook "killall nginx;systemctl start nginx"
for ip in $(seq 1 254);do echo "testing $ip";ping -c 1 192.168.1.$ip | grep "bytes from"; done
@argilzar
argilzar / win-regexp-html-to-lower
Last active August 29, 2015 14:10
Replace mixedcase html tags with lowercase
In vim enter
:%s/<\/\?\zs\(\a\+\)\ze[ >]/\L\1/g
Tags as well
:%s/\(<[^>]*\)\@<=\<\(\a*\)\ze=['"]/\L\2/g
From: http://vim.wikia.com/wiki/Changing_all_HTML_tags_to_lowercase
@argilzar
argilzar / gist:82d6bde85087d538502b
Created September 8, 2014 10:57
Color svn diff output
svn diff | vim -R -
@argilzar
argilzar / Reove old linux kernels
Created June 1, 2014 10:33
Remove old linux kernels, usefull when your /boot partition is full
dpkg --get-selections|grep 'linux-image*'|awk '{print $1}'|egrep -v "linux-image-$(uname -r)|linux-image-generic" |while read n;do apt-get -y remove $n;done