Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Fajar A. R. farkroft

🎯
Focusing
View GitHub Profile
@farkroft
farkroft / main.go
Created Jan 14, 2021
Golang Time Ticker Every 1ms
View main.go
package main
import (
"fmt"
"time"
)
func main() {
done := make(chan bool)
i := 0
@farkroft
farkroft / main.go
Created Jul 10, 2019
Gin Rest Tutorial
View main.go
package main
import (
"fmt"
"log"
"time"
"github.com/gin-gonic/gin"
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/postgres"
@farkroft
farkroft / .htaccess
Created Jun 6, 2019 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
View .htaccess
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/