Skip to content

Instantly share code, notes, and snippets.

@atomaths
atomaths / crontabshow.sh
Last active November 13, 2015 01:08 — forked from stefanocudini/crontabshow.sh
show sorted by time, all crontab tasks defined in the system
#!/bin/bash
CRONTAB='/etc/crontab'
CRONDIR='/etc/cron.d'
tab=$(echo -en "\t")
function clean_cron_lines() {
while read line ; do
echo "${line}" |
// サンタクロース問題
// http://karetta.jp/article/blog/oneline/030756
package main
import (
"fmt"
"math/rand"
"reflect"
"time"
)
@atomaths
atomaths / mail.go
Last active December 16, 2015 08:59 — forked from suapapa/spam.go
package main
import (
"flag"
"fmt"
"io/ioutil"
"net/smtp"
"os"
)