Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
notify-send "$(cat <<EOF
Lorem Ipsum
Voluptatem tempore necessitatibus dolor sed quos suscipit. Maiores quaerat delectus eos eum non modi sed. Consequatur nam molestiae expedita nisi.
Sit ipsum aut ea deserunt et sed eos repellendus. Qui omnis optio magnam eum. Dolores nemo iusto illum. Sed rem deleniti totam molestias non et pariatur voluptas.
Minus quisquam sit quia. Qui soluta deserunt quas. Amet voluptas omnis omnis qui debitis et.
#!/bin/bash
for i in $(seq 1 ${#@})
do
for j in $(seq 1 $(eval printf "\${#$i}"))
do
echo -e ":regional_indicator_$(eval printf "\${$i:$((${j}-1)):1}"):"
done
echo -e " "
done
7,8c7
< GOLANG_PKG_BUILDPATH="/src/${PN}"
< GOLANG_PKG_TAGS="release"
---
> GOLANG_PKG_TAGS="${PV}"
12,19c11
< GOLANG_PKG_DEPENDENCIES=(
< "github.com/junegunn/go-isatty:66b8e73"
< "github.com/junegunn/go-runewidth:63c378b"
< "github.com/junegunn/go-shellwords:33bd8f1"
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
GOLANG_PKG_IMPORTPATH="github.com/junegunn"
GOLANG_PKG_TAGS="${PV}"
GOLANG_PKG_HAVE_TEST=1
GOLANG_PKG_USE_CGO=1
@aidanharris
aidanharris / fontawesome.sh
Last active November 23, 2017 12:09
Displays a fontawesome cheatsheet in your terminal - Requires patched fonts such as nerd-fonts (https://github.com/ryanoasis/nerd-fonts)
#!/usr/bin/env bash
set -e
if [[ -z "$ENABLE_CACHING" ]]
then
export ENABLE_CACHING=1
fi
if [[ -z "$FONTAWESOME_CACHE" ]]
### Keybase proof
I hereby claim:
* I am aidanharris on github.
* I am aidanharris1 (https://keybase.io/aidanharris1) on keybase.
* I have a public key ASBLPY8eJpYhF8_OWize6EzEsUmLUCiAKqq0EzXD0ID2cAo
To claim this, I am signing this object:
@aidanharris
aidanharris / solarized-dark.css
Created January 10, 2017 20:23 — forked from nicolashery/solarized-dark.css
Solarized theme stylesheets for Jekyll and Pygments
/* Solarized Dark
For use with Jekyll and Pygments
http://ethanschoonover.com/solarized
SOLARIZED HEX ROLE
--------- -------- ------------------------------------------
base03 #002b36 background
base01 #586e75 comments / secondary content
@aidanharris
aidanharris / default.conf
Created April 14, 2016 18:31
NGINX PHP Default Configuration
server {
listen 80;
server_name localhost;
#charset koi8-r;
#access_log /var/log/nginx/log/host.access.log main;
location / {
root /usr/share/nginx/html;
index index.php index.html index.htm;
@aidanharris
aidanharris / Install_Awesome_On_Raspberry_Pi.sh
Created February 1, 2016 05:12
Install Awesome on Raspberry Pi
#!/bin/bash
#I needed a lightweight GUI for the raspberry pi that A) Didn't have a dependancy on the entire Internet and B) Uses low resources but is still pretty powerful. The awesome window manager fits the bill nicecly allowing for me to tile windows in various different ways.
#Awesome needs an X11 Server in order to start so install this as follows:
sudo apt-get install -y xinit #xinit has xserver-xorg and other packages under the "Recommends" section (you can see them with apt-cache show xinit) that *SHOULD* hopefully pull in all of the dependancies Awesome needs.
#Awesome can be installed as follows:
sudo apt-get install -y awesome
#To start awesome simply run `startx` and then `awesome`. E.g:
startx & awesome