Skip to content

Instantly share code, notes, and snippets.

@alexander-young
alexander-young / functions.php
Created January 17, 2022 17:00
WP Basic Cleanup
<?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 );
@pathologicalhandwaving
pathologicalhandwaving / ubuntu-release-upgrade.txt
Last active January 4, 2022 01:12
Ubuntu Upgrade Distro Release
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

Common NMap Commands

Check nmap version

nmap --version

If nmap is not installed:

sudo apt install nmap

Scan IPs

@khinsen
khinsen / org-link-pinboard.el
Created December 2, 2019 08:19
Add org-mode link support to pinboard.el (https://github.com/davep/pinboard.el)
@pathologicalhandwaving
pathologicalhandwaving / arch-install-part1.org
Last active October 7, 2019 16:21
Arch Linux Install -- Part I -- OS

Arch Linux Basic Install

Device Meta

@greeflas
greeflas / install-toolbox.sh
Last active March 29, 2024 07:53
JetBrains Toolbox installation script for Ubuntu - https://www.jetbrains.com/toolbox/app/
#!/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
@craigeley
craigeley / doing_timer.sh
Created December 2, 2015 02:15
A script that shows elapsed time of the current `doing` task in TextBar. Change the path to your doing in line 5.
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
@ttscoff
ttscoff / gifsicle.sh
Last active November 25, 2015 16:36
% 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
@ttscoff
ttscoff / sharetabs.rb
Created September 4, 2015 18:44
Browser tabs to Dropbox HTML list
# Share Tab Collection 1.0 | Brett Terpstra 2015 <http://brettterpstra.com>
USERID = 'XXXXX'
require 'shellwords'
require 'fileutils'
def class_exists?(class_name)
klass = Module.const_get(class_name)