Skip to content

Instantly share code, notes, and snippets.

View dnavarrom's full-sized avatar
🎯
Focusing

Diego Navarro M dnavarrom

🎯
Focusing
View GitHub Profile
@dnavarrom
dnavarrom / install-open-media-vault-orange-pizero.sh
Created March 23, 2019 16:59
Install open media vault server on orange pi zero - Debian.
#!/bin/bash
#### PART ONE
cat > /etc/apt/sources.list.d/openmediavault.list << EOF
# deb http://packages.openmediavault.org/public arrakis main
deb http://downloads.sourceforge.net/project/openmediavault/packages arrakis main
## Uncomment the following line to add software from the proposed repository.
# deb http://packages.openmediavault.org/public arrakis-proposed main
# deb http://downloads.sourceforge.net/project/openmediavault/packages arrakis-proposed main
## This software is not part of OpenMediaVault, but is offered by third-party
## developers as a service to OpenMediaVault users.
@dnavarrom
dnavarrom / install-python-3-pip-linux-mint-19.sh
Last active October 2, 2021 06:19
Install python 3.7 + pip in linux mint 19 cinnamon
#Step 1 : preconditions
sudo apt-get install build-essential checkinstall
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev \
libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev
#Step 2: download an unpack python
cd /usr/src
sudo wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tgz
sudo tar xzf Python-3.7.2.tgz
#### This will install Fluxion on Linux Mint 19
# REMOVE OLD AIRCRACK AND COMPILE NEW VERSION
sudo apt remove aircrack-ng
sudo apt install autoconf automake libpcre3-dev libnl-3-dev libsqlite3-dev libssl-dev ethtool build-essential g++ libnl-genl-3-dev libgcrypt20-dev libtool python3-distutils
sudo apt install -y pkg-config
git clone https://github.com/aircrack-ng/aircrack-ng.git
cd aircrack-ng/
autoreconf -i
@dnavarrom
dnavarrom / pixitext.js
Created January 16, 2019 21:12
PIXI text with spacing
text = new PIXI.Text('TEST', {
align: 'center',
fill: 'rgba(255, 255, 255, .9)',
fontSize: 30,
fontWeight: 100,
fontFamily: 'FuturaICG, Roboto, Tahoma, Geneva, sans-serif',
letterSpacing: 100
});
@dnavarrom
dnavarrom / setup-node.js-nvm
Last active July 13, 2020 04:49
To install Node.js using nvm under Linux [Ubuntu / Mint 20] - 2020
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
source ~/.profile
nvm ls-remote
nvm install 12.18.2
nvm use 12.18.2
node -v
npm -v
##Edit version
nvm alias default 12.18.2
@dnavarrom
dnavarrom / ffmpeg_cmd_alexa
Created September 11, 2018 01:42
Convert mp3 to use in AWS Alexa
ffmpeg -y -i input.mp3 -ar 16000 -ab 48k -codec:a libmp3lame -ac 1 output.mp3
@dnavarrom
dnavarrom / pushover_yun_demo.ino
Created July 16, 2018 21:39
Pushover Message API sample using Arduino Yun and Curl
/*********************************************************************************
PUSHOVER ARDUINO YUN SAMPLE
Tested on: Arduino Uno + Arduino Yun Shield (iduino)
Written by Diego Navarro M
***********************************************************************************/
#include <Bridge.h>
@dnavarrom
dnavarrom / gist:077291a8706ab06f7bdc15612937e2e0
Created July 16, 2018 18:58
Configure GEETECH Iduino Yun Shield
### Problem: Cannot send console messages from arduino console sample: https://www.arduino.cc/en/Tutorial/ConsoleRead
### Config:
1.- Original Arduino Uno Board
2.- Geetech Iduino Yun Shield Clone
3.- Arduino IDE 1.8.5
4.- Ubuntu 18.04 Linux 64
### Symptom:
@dnavarrom
dnavarrom / installJenkins.sh
Last active May 27, 2018 16:45
install Jenkins on Linux mint 18 - then open https://localhost/jenkins
#!/bin/sh
set -e
jenkins_install()
{
wget -q -O - http://pkg.jenkins-ci.org/debian-stable/jenkins-ci.org.key | \
sudo apt-key add -
echo deb http://pkg.jenkins-ci.org/debian-stable binary/ | \
sudo tee /etc/apt/sources.list.d/jenkins.list
Kill jekyll server:
$ lsof -wni tcp:4000
$ kill -9 <PID of process>
Note: use crtl-c to stop.