Skip to content

Instantly share code, notes, and snippets.

View karasu's full-sized avatar

Gustau Castells karasu

View GitHub Profile
@karasu
karasu / firetv.py
Created December 14, 2018 19:08
alexa firetv basic homeassistant
import json
import urllib3
import requests
def lambda_handler(event, context):
""" lambda handler function """
session = event['session']
request = event['request']
@karasu
karasu / sources.list
Created October 2, 2018 07:11
sources.list debian
deb http://ftp.es.debian.org/debian/ stable main contrib non-f$
deb http://ftp.es.debian.org/debian/ stable-updates main contr$
deb http://security.debian.org/ stable/updates main
deb http://ftp.debian.org/debian stretch-backports main
@karasu
karasu / gist:eb126a0e62307c85bbdd
Created March 14, 2016 18:14
Install when having mirror problems "connection reset by peer"
1. Load Antergos ISO
If using UEFI, please also try CD/DVD option if USB one is not working
2. Wait until Cnchi loads... it should update to the latest version. Close it.
3. Open gnome-terminal
4. Edit /etc/pacman.d/antergos-mirrorlist
sudo nano /etc/pacman.d/antergos-mirrorlist
@karasu
karasu / gist:56230a830398e5fd7240
Last active March 18, 2016 11:24
Install Antergos when mirrors fail
Please, use this ONLY if mirrors are failing and you are unable to install Antergos.
1. Edit /etc/pacman.d/antergos-mirrorlist
sudo nano /etc/pacman.d/antergos-mirrorlist
Leave only this server
Server = http://mirrors.antergos.com/$repo/$arch
2. Edit /etc/pacman.conf and remove staging repository (leave it commented)
#[antergos-staging]