This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# particion swap size = ram | |
# gettear UUID con blkid | |
# en /etc/grub/default agregar, | |
# quiet splash resume=UUID=<UUID-swap-partition> | |
# sudo update-grub | |
# sudo vim /etc/polkit-1/localauthority.conf.d/10-hibernate.conf | |
[Re-enable hibernate by default for login1] | |
Identity=unix-user:* | |
Action=org.freedesktop.login1.hibernate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# sudo apt install jq wget curl | |
# usage: github-install user/repo | |
set -e | |
repo=$1 | |
tmp="/tmp/.github-install" | |
binpath="$HOME/.local/bin" | |
rm -rf $tmp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inotify(watch/wait) -- inotify tools to monitor file changes | |
wrk -- stress http server test | |
sendmidi/receivemidi -- midi tools | |
ipcalc -- calculate network hosts ranges | |
pup -- parse DOM | |
pyp -- pipe to python | |
qrcp -- transfer files scanning qr | |
gotty -- share tty | |
zerotier -- free tunnel / private LAN mesh network | |
castnow -- cast media to chromecast |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
date_from_ts () { date --date=@$1 +'%H:%M %D'; } | |
passes=$(http "satellites.fly.dev/passes/25544" lat=="-34.1234" lon=="-57.1234" | jq ".[] | select(.visible) | .start.timestamp") | |
for timestamp in $passes; do | |
echo "notify-send -u normal 'ISS arriba!'" | at "$(date_from_ts $timestamp)" | |
done | |
echo "$(realpath $0)" | at "$([ ! -z $timestamp ] && echo "$(date_from_ts $timestamp)" || echo "now + 1 day")" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/liquidsoap -v | |
set("log.stdout", true) | |
interim = single("~/Música/interim.mp3") | |
himno = single("~/Música/himno.mp3") | |
temas = playlist("~/Música/playlist") | |
radio = random(weights=[1,3], [interim, temas]) | |
radio = add([radio, switch([({0m0s}, himno)])]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"hostname":"x556","server":"http://localhost:19999/","netdata_version":"v1.20.0-211-g721b72a2","snapshot_version":1,"after_ms":1584997876166.5,"before_ms":1584997908833.5,"highlight_after_ms":0,"highlight_before_ms":0,"duration_ms":32667,"update_every_ms":1000,"data_points":33,"url":"http://localhost:19999/","comments":"I can't find the root cause of these IO waits!","hash":"#menu_system_submenu_cpu","charts":{"hostname":"x556","version":"v1.20.0-211-g721b72a2","release_channel":"nightly","os":"linux","timezone":"America/Argentina/Buenos_Aires","update_every":1,"history":3996,"memory_mode":"dbengine","custom_info":"","charts":{"mem.transparent_hugepages":{"id":"mem.transparent_hugepages","name":"mem.transparent_hugepages","type":"mem","family":"hugepages","context":"mem.transparent_hugepages","title":"Transparent HugePages Memory (mem.transparent_hugepages)","priority":1250,"plugin":"proc.plugin","module":"/proc/meminfo","enabled":true,"units":"MiB","data_url":"/api/v1/data?chart=mem.transparent_hugepages"," |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3 | |
ENV PYTHONUNBUFFERED 1 | |
RUN mkdir /code | |
WORKDIR /code | |
COPY requirements.txt /code/ | |
RUN pip install -r requirements.txt | |
COPY . /code/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('console-stamp')(console); | |
import { | |
IgApiClient, | |
IgCheckpointError, | |
IgLoginTwoFactorRequiredError, | |
IgResponseError | |
} from 'instagram-private-api' | |
import inquirer from 'inquirer' |