Skip to content

Instantly share code, notes, and snippets.

View jfernandz's full-sized avatar
🎯
Focusing

Javier Fernández jfernandz

🎯
Focusing
View GitHub Profile
@jfernandz
jfernandz / largepkg
Last active July 15, 2018 22:40 — forked from tmhedberg/largepkg
List installed Arch Linux packages in descending order of size
#!/bin/bash
for pkg in `pacman -Qq`; do
size=`
LC_ALL=C pacman -Qi $pkg |
grep '^Installed Size' |
awk -F '[[:space:]]+:[[:space:]]+' '{print $2}'
`
echo "$size - $pkg"
done |
@jfernandz
jfernandz / status.html
Last active August 22, 2020 20:17 — forked from cfstras/status.html
Simple Minecraft Server status box using https://mcapi.us/
<script src="//code.jquery.com/jquery-2.2.1.min.js"></script>
<script src="//momentjs.com/downloads/moment.min.js"></script>
<script src="//ujafedny.org/assets/bower_components/moment/locale/*.js"></script> <!-- Your preferred locale instead of * -->
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<script>
var rq = '//mcapi.us/server/status?ip= '; // <---- Your Minecraft server IP here; add &port=<port> if you are using a different port
var error = 'unknown'; // of 25565. For instance: https://mcapi.us/server/status?ip=s.nerd.nu&port=25565
var classes = { // more info in https://mcapi.us/
error: "fa-question",
false: "fa-times",