Skip to content

Instantly share code, notes, and snippets.

View robotamer's full-sized avatar

TaMeR robotamer

View GitHub Profile
@robotamer
robotamer / logrotate.sh
Last active December 30, 2015 01:29
Log file rotate bash script
#!/bin/bash
MAXSIZE=90000
LOGDIR=/var/www/log/
cd $LOGDIR
for FILENAME in *.log; do
SIZE=$(du -b $FILENAME | cut -f 1)
@robotamer
robotamer / earthporn.sh
Created January 13, 2015 01:28
Randomly picks one of the amazing photos at http://imgur.com/r/earthporn
#!/bin/bash
# Usage: earthporn [+format] [-time] [logfile]
# Dependencies: bash, wget, mktemp... and well, date and sleep
imgfile=~/.earthporn
# Help and version functions
help () {
echo "Randomly picks one of the amazing photos at http://imgur.com/r/earthporn"
echo "and sets it as the background image."
[
{
"name": "Afghanistan",
"code": "AF"
},
{
"name": "Åland Islands",
"code": "AX"
},
{
@robotamer
robotamer / countries.js
Last active August 29, 2015 14:14
Countries json js
var countries = [
{
"name": "Afghanistan",
"code": "AF"
},
{
"name": "Aland Islands",
"code": "AX"
},
{

Keybase proof

I hereby claim:

  • I am robotamer on github.
  • I am robotamer (https://keybase.io/robotamer) on keybase.
  • I have a public key ASAT0EwqG94zaiBfwYQs_8pgGxTXBARdRb1o12lDsgyUKwo

To claim this, I am signing this object:

@robotamer
robotamer / he-dns-update.sh
Created June 15, 2018 11:28 — forked from joemiller/he-dns-update.sh
script for updating dynamic DNS records on he.net (hurricane electric)
#!/bin/bash
#
# Script for updating DNS records on Hurricane Electirc's DNS system (https://dns.he.net).
#
# The record will be updated with the IP address that originates the request.
#
# Usage
# -----
#
# Create config file `/etc/he-dns-update.conf`:
@robotamer
robotamer / autocert-server.go
Created August 4, 2018 21:17 — forked from samthor/autocert-server.go
Demo autocert server in Go
package main
import (
"crypto/tls"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/user"
@robotamer
robotamer / Raspberry_Pi.md
Last active April 15, 2019 17:28 — forked from hofmannsven/README.md
Raspberry Pi Cheatsheet

Raspberry Pi

Setup

Find all available devices arp -a

Locate Raspberry (b8:27:eb) in Network: Pi Finder

SSH

  • Connect to device via SSH + Name: ssh pi@rasperrypi
@robotamer
robotamer / darkwallet-test.go
Created April 29, 2019 08:34
Skycoin Darkwallet Addresses #Skycoin #Crypto #Darkwallet
package main
import (
"fmt"
"github.com/skycoin/skycoin/src/cipher"
"log"
)
func main() {
Verifying my Blockstack ID is secured with the address 17UyWVJC6pgt7K6aZxaHXVVu4BWe3PXVDs https://explorer.blockstack.org/address/17UyWVJC6pgt7K6aZxaHXVVu4BWe3PXVDs