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 / 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",
@jfernandz
jfernandz / PKGBUILD
Last active March 11, 2017 00:53
Patch to teamspeak3 PKGBUILD in ArchLinux
# Maintainer: Sven-Hendrik Haase <[email protected]>
# Contributor: Slash <demodevil5[at]yahoo[dot]com>
# Contributor: J.W. Birdsong <jwbirdsongATmailDOTcom>
# Contributor: Javier Fernández <WyRe12[at]gmail[dot]com>
pkgname=teamspeak3
pkgver=3.1.1.1
pkgrel=1
pkgdesc="TeamSpeak is software for quality voice communication via the Internet"
url="http://www.teamspeak.com/"
@jfernandz
jfernandz / BiomeBundleSetup.ini
Created June 14, 2017 09:51
BiomeBundle setup
#######################################################################
# +-----------------------------------------------------------------+ #
# | WorldConfig | #
# +-----------------------------------------------------------------+ #
#######################################################################
# The author of this world
Author: MC_Pitman & LordSmellyPants (Team OTG)
# A short description of this world
@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 / gist:9a3c49c0582e860958506efe70df1579
Created January 17, 2020 16:37
hp-check and system info
-` wyre@GibyArch
.o+` -------------
`ooo/ OS: Arch Linux x86_64
`+oooo: Host: GA-78LMT-USB3 R2
`+oooooo: Kernel: 5.4.12-zen1-1-zen
-+oooooo+: Uptime: 6 hours, 56 mins
`/:-:++oooo+: Packages: 2445 (pacman), 9 (flatpak)
`/++++/+++++++: Shell: zsh 5.7.1
`/++++++++++++++: Resolution: 1920x1080
`/+++ooooooooooooo/` WM: i3
System Information
------------------
Raspberry Pi 3 Model B Rev 1.2
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
Raspberry Pi reference 2020-12-02
@jfernandz
jfernandz / toggle-overlayfs
Created June 24, 2021 14:48
Script to toggle overlayfs for rootfs in Debian
#!/bin/sh
# Part of raspi-config https://github.com/RPi-Distro/raspi-config
#
# See LICENSE file for copyright and license details
INTERACTIVE=True
ASK_TO_REBOOT=0
get_overlay_now() {
@jfernandz
jfernandz / python3-gpiodev_0.0.1.bb
Created February 3, 2022 21:46
gpiodev Yocto recipe
SUMMARY="Managing GPIO pins via character device"
HOMEPAGE="https://github.com/bookwar/python-gpiodev"
LICENSE="Apache-2.0"
LIC_FILES_CHKSUM="file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
SRC_URI[md5sum] = "ed2b0bb79c09174b6b0f0923463a7562"
SRC_URI[sha256sum] = "e49b9b75b118c7d433822dab72f0a45e83ef901005a825ddc36d88108e54e52d"
PYPI_PACKAGE = "gpiodev"

Keybase proof

I hereby claim:

  • I am jfernandz on github.
  • I am jfernandz (https://keybase.io/jfernandz) on keybase.
  • I have a public key ASBgMj8MuVS5LNDjHsmQmFUmLBvzCADXwwq-wkEvFc9YSgo

To claim this, I am signing this object: