nmap --version
sudo apt install nmap
<?php | |
// //remove emoji support | |
remove_action('wp_head', 'print_emoji_detection_script', 7); | |
remove_action('wp_print_styles', 'print_emoji_styles'); | |
// // Remove rss feed links | |
remove_action( 'wp_head', 'feed_links_extra', 3 ); | |
remove_action( 'wp_head', 'feed_links', 2 ); |
Root | |
To Change from LTS to NORMAL edit | |
/etc/update-manager/release-upgrades | |
change | |
Prompt=lts | |
to: | |
Prompt=normal | |
reset terminal | |
sudo do-release-upgrade |
(require 'org) | |
(defun org-pinboard-store-link () | |
"Store a link taken from a pinboard buffer." | |
(when (eq major-mode 'pinboard-mode) | |
(pinboard-with-current-pin pin | |
(org-store-link-props | |
:type "pinboard" | |
:link (alist-get 'href pin) | |
:description (alist-get 'description pin))))) |
#!/bin/bash | |
set -e | |
if [ -d ~/.local/share/JetBrains/Toolbox ]; then | |
echo "JetBrains Toolbox is already installed!" | |
exit 0 | |
fi | |
echo "Start installation..." |
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
if [[ `/usr/local/bin/doing last` == *"@done"* ]]; then | |
echo "💬"; | |
else | |
name=`/usr/local/bin/doing last | sed 's/@.*//g'`; | |
start=`grep -o -m 1 "\d*-\d*-\d*\s\d*:\d*\s" /path/to/what_was_i_doing.md`; | |
date1=`date -j -f '%Y-%m-%d %H:%M ' "$start" +"%s"`; | |
now=`date -j +"%s"`; | |
diff=$(($now-$date1)); | |
echo "$name 🕗$(printf "%02d" $(($diff / 3600))):$(printf "%02d" $((($diff / 60) % 60)))" | |
fi |
% brew install gifsicle | |
# modify colors as needed, it will warn you if you specify more than necessary | |
% gifsicle --colors 128 -O3 -o output.gif input.gif |