Skip to content

Instantly share code, notes, and snippets.

View UlasSAYGINIM's full-sized avatar

Ulaş SAYGIN UlasSAYGINIM

View GitHub Profile
@UlasSAYGINIM
UlasSAYGINIM / searchr.go
Created September 10, 2025 02:55 — forked from iamralch/searchr.go
searchr - a sample application that works with pipes
package main
import (
"bufio"
"flag"
"fmt"
"io"
"os"
"strings"
)
@UlasSAYGINIM
UlasSAYGINIM / ssh_client.go
Created September 10, 2025 02:55 — forked from iamralch/ssh_client.go
SSH client in GO
package main
import (
"fmt"
"io"
"io/ioutil"
"net"
"os"
"strings"
@UlasSAYGINIM
UlasSAYGINIM / download.go
Created August 19, 2025 04:42 — forked from cnu/download.go
Download files in Go
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
@UlasSAYGINIM
UlasSAYGINIM / 503.mysql.sh
Created May 16, 2022 14:17 — forked from geoffgarside/503.mysql.sh
FreeBSD periodic/daily script for running MySQL backups
#! /bin/sh
#
# $FreeBSD$
#
# Maintenance shell script to backup mysql databases
# Put this in /usr/local/etc/periodic/daily, and it will be run
# every night
#
# By Geoff Garside <Geoff.Garside at m247.com>, Mon, Jan 24 13:04:18 GMT 2010
#
package main
import (
"gorm.io/driver/sqlite"
"gorm.io/gorm"
)
type job1 struct {
ID int `gorm:"primaryKey"`
UniqueField1 string