Skip to content

Instantly share code, notes, and snippets.

@alex-connor
alex-connor / backup_user.sql
Created March 21, 2019 13:01 — forked from dstrelau/backup_user.sql
mysql backups with duplicity
CREATE USER 'backup'@'localhost';
GRANT SELECT, LOCK TABLES ON *.* TO 'backup'@'localhost';
@alex-connor
alex-connor / parse_austria.php
Created March 21, 2019 10:10 — forked from geek-at/parse_austria.php
Parsing ip data from a file
<?php
$infile = 'austria.csv';
$outfile = 'austria.ips';
$fp = fopen($outfile,'w');
$handle = fopen($infile, "r");
if ($handle)
{
while (($line = fgets($handle)) !== false) {
$line = trim($line);
#include <Servo.h>
Servo myservo;
const int servoPin = 9;
const int buttonPin = 12;
const int ledPin = 13;
void setup() {
myservo.attach(servoPin);