Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Create macOS USB Installer
# url.efmeeks.net/osx-usb
clear
cat << eof
╭──────────────────────────────────────╮
│ To quit, press CTRL+C at any time. │
╰──────────────────────────────────────╯
eof
pass() {
@efmeeks
efmeeks / lolcow.sh
Last active October 18, 2017 07:01
#!/bin/bash
# Hipster LolCow
[ -z "$(type lolcat)" ] && exit
[ -z "$(type cowsay)" ] && exit
echo "$(curl -Ls "https://hipsum.co/api/?paras=1&type=hipster-centric&html=false")" | \
tr -d ']["' | \
fold -s | \
head -1 | \
cowsay -e oO -T 'U ' | \
@efmeeks
efmeeks / ipme.sh
Last active October 17, 2017 20:36
ipme: ip address looker upper
#!/bin/bash
# ipme: ip address looker upper
# https://git.io/vdiMj
ipme() {
echo ''; echo " Public IP: $(wget -q -O - http://ipecho.net/plain)"
echo " Private IP: $(ifconfig | egrep 'inet' | egrep -v 'inet6|127' | awk '{ print $2 }')"
echo -e "\x20 \x20 \xE2\x99\xA1 ipme"; echo ''
}
@efmeeks
efmeeks / id_rsa.pub
Last active October 25, 2017 22:45
Public SSH Key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDYxGpid/Y8PdlmR6vkCNeTCeEbvL+8y81Nc2l+CchAH42zz42PcOk2+SQtyaDp7JcH8cnYpd7VPjlO99IXvdL0+xjsZfJLuNA0uhW7TZap0Mpp4v5B1krRN2O1R6dcNwisG/FxyqyMmkLLY2eq+SweThf0Mh6rVpjxnfXO1tb0TBhBRoH4X+94BdF++2Z4gdDb7x0c7d2Nljx2vy+BpE0dkCbi44jxnMjmI4j8iuTZvfI32eX8p6qcX8lr3+q0kt5H6ac8SZryYfuKi0J3iPJ9UhECRJboFzVgc3nwF1KW18wNuD+GjWXG3cFkBNy4pmAZOqnJG6yiidIO8cz+dy6/
@efmeeks
efmeeks / bai.sh
Last active September 22, 2022 13:34
Better Apt Installer
#!/bin/bash
# Better Apt Installer
# https://git.io/vdimV
usage() {
cat << eof
Better Apt Installer
@efmeeks
efmeeks / appify
Created September 10, 2017 00:02 — forked from mathiasbynens/appify
appify — create the simplest possible Mac app from a shell script
#!/bin/bash
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
appify v3.0.1 for Mac OS X - http://mths.be/appify
Creates the simplest possible Mac app from a shell script.
Appify takes a shell script as its first argument:
`basename "$0"` my-script.sh
@efmeeks
efmeeks / index.html
Created August 28, 2017 17:55
Scrolling Golden Spiral
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div class="js-spiral">
<div class="js-section">
<div class="message">
Scroll, Use Arrow Keys or Click<br><br>
@efmeeks
efmeeks / index.html
Created August 28, 2017 06:56
Tuts+ 404
<div class="error-page"><header class="error-page__header"><img class="error-page__header-image" src="https://static.tutsplus.com/assets/sad-computer-128aac0432b34e270a8d528fb9e3970b.gif" alt="Sad computer"><h1 class="error-page__title nolinks">Page Not Found</h1></header><p class="error-page__message">The page you are looking for could not be found.</p></div>