Skip to content

Instantly share code, notes, and snippets.

View aparedero's full-sized avatar
🚧
GitHub and Azure DevOps Migration

Alejandro Paredero aparedero

🚧
GitHub and Azure DevOps Migration
View GitHub Profile
@aparedero
aparedero / keybase.md
Created May 29, 2018 08:21
keybase.md

Keybase proof

I hereby claim:

  • I am aparedero on github.
  • I am paredero (https://keybase.io/paredero) on keybase.
  • I have a public key ASCRP85xjFM8G4GacL6kjyze1HgbCMtINkZJ2RChGP656Qo

To claim this, I am signing this object:

@aparedero
aparedero / titanic.csv
Last active December 15, 2018 17:44
Example data of Titanic passengers
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 1 column, instead of 3. in line 1.
pclass;survived;name;sex;age;sibsp;parch;ticket;fare;cabin;embarked;boat;body
1;1;Allen, Miss. Elisabeth Walton;female;29;0;0;24160;211,3375;B5;S;2;
1;1;Allison, Master. Hudson Trevor;male;0,9167;1;2;113781;151,55;C22 C26;S;11;
1;0;Allison, Miss. Helen Loraine;female;2;1;2;113781;151,55;C22 C26;S;;
1;0;Allison, Mr. Hudson Joshua Creighton;male;30;1;2;113781;151,55;C22 C26;S;;135
1;0;Allison, Mrs. Hudson J C (Bessie Waldo Daniels);female;25;1;2;113781;151,55;C22 C26;S;;
1;1;Anderson, Mr. Harry;male;48;0;0;19952;26,55;E12;S;3;
1;1;Andrews, Miss. Kornelia Theodosia;female;63;1;0;13502;77,9583;D7;S;10;
1;0;Andrews, Mr. Thomas Jr;male;39;0;0;112050;0;A36;S;;
1;1;Appleton, Mrs. Edward Dale (Charlotte Lamson);female;53;2;0;11769;51,4792;C101;S;D;
@aparedero
aparedero / workaround_windows.bat
Last active May 31, 2020 21:52
Vagrant Workaround: Permission denied after setting up and environment. Source: https://superuser.com/questions/1296024/windows-ssh-permissions-for-private-key-are-too-open
:: # Set Variable ::
Set Key=".vagrant\machines\default\virtualbox\private_key"
:: # Remove Inheritance ::
Cmd /c Icacls %Key% /c /t /Inheritance:d
:: # Set Ownership to Owner ::
Cmd /c Icacls %Key% /c /t /Grant %UserName%:F
:: # Remove All Users, except for Owner ::
import time
import requests
import math
import random
TOKEN = "..." # Just put your TOKEN here (API Credentials --> On left side)
DEVICE_LABEL = "mbit-iot-simulator" # Put name of DEVICE here
VARIABLE_LABEL_1 = "temperature" # Name of first variable: Temperature
VARIABLE_LABEL_2 = "humidity" # Name of second var: Humidity
VARIABLE_LABEL_3 = "position" # Name of third var: Position