Skip to content

Instantly share code, notes, and snippets.

View Serranya's full-sized avatar
🤓
Moving my stuff to https://sourcehut.org/

Peter Lamby Serranya

🤓
Moving my stuff to https://sourcehut.org/
View GitHub Profile
@Serranya
Serranya / archlinux setup desktop
Last active November 25, 2018 10:28
The steps to install archlinux on my desktop with windows already installed
# Spam F12 to get into bios
# Select "UEFI USB DISK"
loadkeys de
timedatectl set-ntp true

Keybase proof

I hereby claim:

  • I am Serranya on github.
  • I am serra (https://keybase.io/serra) on keybase.
  • I have a public key whose fingerprint is 9E76 C3D2 86DD 2059 2DED 8321 CB47 F25E 9104 6BDF

To claim this, I am signing this object:

#! /bin/bash
ECD=5
RECIPIENT=<REDACTED>
SRC=${1%/}
DST=${2%/}
# $1 folder to index
# $2 index file
function create_idx {
@Serranya
Serranya / snake.c
Last active August 29, 2015 14:04
Snake in C with ncurses.
//POSIX
#include <limits.h>
//C Standard Library
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
//Third Party
@Serranya
Serranya / update.sh
Last active December 21, 2020 08:57
Update script for dynamic dns.
#! /bin/bash
MYIP=$(wget -qO - http://myexternalip.com/raw)
USER=Redacted
PASSWORD=Redacted
HOST=Redacted
if [ ! -f /var/run/last.ip ]
then echo $MYIP > /var/run/last.ip
curl -s -X GET "https://nic.ChangeIP.com/nic/update?u=$USER&p=$PASSWORD&myip=$MYIP&hostname=$HOST&set=1"