Skip to content

Instantly share code, notes, and snippets.

@isacikgoz
isacikgoz / smtp.go
Last active December 10, 2019 19:31
create smtp client with timeout
package smtptest
import (
"context"
"net"
"net/smtp"
"time"
)
func NewSMTPClient(ctx context.Context, conn net.Conn) (*smtp.Client, error) {
@isacikgoz
isacikgoz / notes.sh
Created January 19, 2019 16:47
note taking from commandline
note() {
# start a new heading and append from stdout
file_name=$HOME"/Documents/notes.md"
# get the date for datestamp
cur_date=$(date +"%Y-%m-%d")
# get the time for time
cur_time=$(date +"%H:%M:%S")
if [ ! -z "$1" ]; then
# clear

Keybase proof

I hereby claim:

  • I am isacikgoz on github.
  • I am isacikgoz (https://keybase.io/isacikgoz) on keybase.
  • I have a public key ASANukKeF-UM0eOvZJ8sBYoxlcnAYiMEDcjTDRFRzxjDsQo

To claim this, I am signing this object:

@isacikgoz
isacikgoz / build.sh
Created December 25, 2018 12:53 — forked from jojomi/build.sh
Simple bash script for cross-compiling Go code for release
#!/bin/bash
#
APP_VER="0.3"
BUILD_ARCH_AMD64="amd64"
BUILD_ARCH_ARM64="arm64"
BUILD_ARCH_ARM="arm"
BUILD_ARCH_x86="386"