start new:
tmux
start new with session name:
tmux new -s myname
arp-scan 192.168.2.0/24 | grep 2c:be:08:8a:83:1b |
#!/bin/bash | |
# No-IP uses emails as passwords, so make sure that you encode the @ as %40 | |
USERNAME=username | |
PASSWORD=password | |
HOST=hostsite | |
LOGFILE=logdir/noip.log | |
STOREDIPFILE=configdir/current_ip | |
USERAGENT="Simple Bash No-IP Updater/0.4" |
# print the numbers 1 to 5 | |
(1..5).each do |page| | |
puts page | |
end | |
# print a url string with a page number inside | |
(1..5).each do |page| | |
puts "http://blog/scripted.com/page/#{page}" | |
end |
#Create dummy data | |
DIR=staging/recordings/XXXXXX | |
FOLDER=dumy_data | |
mkdir $FOLDER | |
cd $FOLDER; | |
mkdir -p $DIR; | |
for i in {1..100}; do dd if=/dev/urandom bs=1 count=1 of=$DIR/dummy-file$i.mp3; done |
I hereby claim:
To claim this, I am signing this object:
time mysqldump -uroot -p --skip-set-charset --default-character-set=latin1 -h HOST TABLE | sed 's/CHARSET=latin1/CHARSET=utf8/g' > dump.sql | |
time mysql -uroot -p --default-character-set=utf8 -h HOST TABLE < dump.sql |
#include <Arduino.h> | |
#include <WiFi.h> | |
void setup() | |
{ | |
Serial.begin(9600); | |
delay(10); | |
Serial.print("Connecting"); |
#Check logs tail -f /var/log/tbeard/*
#Remove this file rm -rf /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tunnelbear_temp_40/dnsManager.sh
#List all sequence id | |
curl --request GET \ | |
--url 'https://<NAME>.app.invoicexpress.com/sequences.json?api_key=API_KEY' \ | |
--header 'accept: application/json' | |
# Invoice | |
curl --request POST \ | |
--url 'https://<NAME>.app.invoicexpress.com/invoices.json?api_key=API_KEY' \ | |
--header 'accept: application/json' \ |