Skip to content

Instantly share code, notes, and snippets.

Avatar

tripu tripu

View GitHub Profile
@tripu
tripu / npm-check.txt
Last active Jan 22, 2018
w3c/spork vulnerabilities (after)
View npm-check.txt
$ npm-check
emailjs NOTUSED? Still using emailjs?
Depcheck did not find code similar to require('emailjs') or import from 'emailjs'.
Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
Use --skip-unused to skip this check.
To remove this package: npm uninstall --save emailjs
nopt NOTUSED? Still using nopt?
Depcheck did not find code similar to require('nopt') or import from 'nopt'.
Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
@tripu
tripu / npm-check.txt
Last active Jan 22, 2018
w3c/spork vulnerabilities
View npm-check.txt
$ npm-check
urijs NOTUSED? Still using urijs?
Depcheck did not find code similar to require('urijs') or import from 'urijs'.
Check your code before removing as depcheck isn't able to foresee all ways dependencies can be used.
Use --skip-unused to skip this check.
To remove this package: npm uninstall --save urijs
emailjs MAJOR UP Major update available. https://github.com/eleith/emailjs#readme
npm install --save emailjs@1.0.12 to go from 0.3.16 to 1.0.12
NOTUSED? Still using emailjs?
@tripu
tripu / ubuntu-artful-upgrade-troubleshooting.md
Created Jan 18, 2018
Ubuntu 17.10 "Artful Aardvark" upgrade troubleshooting
View ubuntu-artful-upgrade-troubleshooting.md

NB: beware of this bug!

Bug: gdm can't unlock desktop (after suspending, to switch users, etc)

Symptoms: lock screen takes very long (ie, a few seconds) to process username+password, returns “authentication error”, and becomes impossible to log in and unlock the screen again, with any user.

Also, /var/log/syslog shows:

Failed to add watch on /run/systemd/ask-password: No space left on device
@tripu
tripu / calendar-madrid-2018.txt
Last active Dec 26, 2017
All public holidays in 2018 for Madrid city (Spain), in RTM format
View calendar-madrid-2018.txt
Public holiday (Spain): Año Nuevo !1 #Spain #holiday #weekend ^1 Jan 2018
Public holiday (Spain): Epifanía del Señor !1 #Spain #holiday #weekend ^6 Jan 2018
Public holiday (Spain): Jueves Santo !1 #Spain #holiday #weekend ^29 Mar 2018
Public holiday (Spain): Viernes Santo !1 #Spain #holiday #weekend ^30 Mar 2018
Public holiday (Spain): Fiesta del Trabajo !1 #Spain #holiday ^1 May 2018
Public holiday (Madrid region): Fiesta de la CAM !1 #Spain #holiday #Madridregion ^2 May 2018
Public holiday (Madrid city): San Isidro Labrador !1 #Spain #holiday #Madridcity ^15 May 2018
Public holiday (Spain): Asunción de la Virgen !1 #Spain #holiday ^15 Aug 2018
Public holiday (Spain): Fiesta de la Hispanidad !1 #Spain #holiday #weekend ^12 Oct 2018
Public holiday (Spain):
@tripu
tripu / normalise-podcasts.sh
Created Dec 9, 2017
Increase volume of podcasts
View normalise-podcasts.sh
#!/bin/sh
INPUTDIR="/home/tripu/gPodder/Downloads/"
PREFIXLENGTH=6
OUTPUTDIR=/home/tripu/t/personal/podcasts/
GAIN=2.5
find "$INPUTDIR" -regextype egrep -iregex '.+\.mp3$' | while read f; do
SHORT=$(echo $f | cut -d'/' -f"$PREFIXLENGTH"-)
echo -n "$SHORT"
@tripu
tripu / backup-github.sh
Last active Aug 20, 2019 — forked from rodw/backup-github.sh
A simple script to backup an organization's GitHub repositories, wikis and issues.
View backup-github.sh
#!/bin/bash
# A simple script to backup an organization's GitHub repositories.
# NOTE: if you have more than 100 repositories, you'll need to step thru the list of repos
# returned by GitHub one page at a time, as described at https://gist.github.com/darktim/5582423
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"github-backups"} # where to place the backup files
GHBU_ORG=${GHBU_ORG-"<CHANGE-ME>"} # the GitHub organization whose repos will be backed up
# (if you're backing up a user's repos instead, this should be your GitHub username)
GHBU_UNAME=${GHBU_UNAME-"<CHANGE-ME>"} # the username of a GitHub account (to use with the GitHub API)
@tripu
tripu / server-setup.md
Created Sep 20, 2017
Server setup cheat sheet
View server-setup.md
@tripu
tripu / workstation-setup.md
Last active Sep 11, 2020
Workstation setup cheat sheet
View workstation-setup.md

Workstation setup cheat sheet

Last: Ubuntu 17.04 Zesty Zapus

/et/apt/sources.list

deb       http://archive.canonical.com/ubuntu  zesty           partner main universe restricted multiverse
deb       http://es.archive.ubuntu.com/ubuntu/ zesty           main universe restricted multiverse
deb       http://es.archive.ubuntu.com/ubuntu/ zesty-backports main universe restricted multiverse
You can’t perform that action at this time.