This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # BEGIN WordPress | |
| # Die Anweisungen (Zeilen) zwischen „BEGIN WordPress“ und „END WordPress“ sind | |
| # dynamisch generiert und sollten nur über WordPress-Filter geändert werden. | |
| # Alle Änderungen an den Anweisungen zwischen diesen Markierungen werden überschrieben. | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] | |
| RewriteBase / | |
| RewriteRule ^index\.php$ - [L] | |
| RewriteRule ^en/wp-login.php /wp-login.php [QSA,L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Document</title> | |
| <style media="screen"> | |
| body { | |
| position: fixed; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set nocompatible " be iMproved, required | |
| filetype plugin indent on " required | |
| syntax on | |
| " F keybord array keys | |
| noremap t h | |
| noremap m j | |
| set laststatus=2 | |
| set backspace=2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| psql \ | |
| -X \ | |
| -U user_name \ | |
| -h host_name1 \ | |
| -d database_name \ | |
| -c "\\copy tbl_Students to stdout" \ | |
| | \ | |
| psql \ | |
| -X \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Start from golang:latest base image | |
| FROM golang:latest | |
| # Add Maintainer Info | |
| LABEL maintainer="Zafer Çelenk <zafercelenk@gmail.com>" | |
| # Set the Current Working Directory inside the container | |
| WORKDIR /hello | |
| # Copy go mod and sum files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "strings" | |
| "net/http" | |
| ) | |
| func main() { | |
| body := strings.NewReader("{ \"message\": \"ok\" }") | |
| http.Post("http://requestbin.fullcontact.com/1hp80td1", "application/json", body) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "io/ioutil" | |
| "net/http" | |
| ) | |
| func main() { | |
| res, _ := http.Get("https://jsonplaceholder.typicode.com/todos/1") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "io/ioutil" | |
| ) | |
| func main() { | |
| err := ioutil.WriteFile("/tmp/test.txt", []byte("Hello"), 0644) | |
| if err != nil { | |
| panic(err) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "io/ioutil" | |
| ) | |
| func main() { | |
| res, _ := ioutil.ReadFile("/tmp/test.txt") | |
| fmt.Println(string(res)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func main() { | |
| http.HandleFunc(func (w http.ResponseWriter, r *http.Request) { | |
| w.Write([]byte("ok")) | |
| }) | |
| err := http.ListenAndServe(":1234", nil) | |
| if err != nil { | |
| fmt.Println(err) | |
| } | |
| } |
NewerOlder