Skip to content

Instantly share code, notes, and snippets.

View bbg's full-sized avatar
👍
"Our true mentor in life is science."   Mustafa Kemal Atatürk

Batuhan Göksu bbg

👍
"Our true mentor in life is science."   Mustafa Kemal Atatürk
View GitHub Profile
@bbg
bbg / 01_basic.go
Created January 28, 2020 13:53 — forked from reagent/00_README.md
Custom HTTP Routing in Go
package main
import (
"io"
"log"
"net/http"
)
func main() {
@bbg
bbg / files.go
Created February 4, 2020 12:06
file listing in folder
package main
import (
"fmt"
"os"
"path/filepath"
)
func main() {
var files []string
@bbg
bbg / parse_json_post.go
Created February 7, 2020 19:25 — forked from andreagrandi/parse_json_post.go
Parse a JSON http POST in GoLang
package main
import (
"encoding/json"
"fmt"
"net/http"
)
type test_struct struct {
Test string
@bbg
bbg / example.html
Created February 9, 2020 13:05
Canvas Stream Capture
<!DOCTYPE html>
<html>
<head>
<title>Parcel Sandbox</title>
<meta charset="UTF-8" />
<style>
div {
display: block;
}
</style>
@bbg
bbg / useful-commands.md
Last active February 16, 2020 21:31
Genel olarak sıkca kullandığım unuttuğum zaman hatırlamak için tutacağım komutlar.
  • Docker Container Bash -> sudo docker exec -it container_name /bin/bash
@bbg
bbg / settings.json
Last active February 29, 2020 23:23
vscode settings
{
"go.buildOnSave": "workspace",
"go.toolsGopath": "/home/nocturnalmonster/go",
"workbench.tree.renderIndentGuides": "always",
"workbench.colorCustomizations": {
// "list.inactiveSelectionBackground": "#C5DEF0",
// "sideBar.background": "#F8F6F6",
// "sideBar.foreground": "#000000",
// "editor.background": "#FFFFFF",
// "editor.foreground": "#000000",
@bbg
bbg / grub2_options_update_f.sh
Created February 15, 2020 22:55 — forked from dbfin/grub2_options_update_f.sh
Update grub in Fedora
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
@bbg
bbg / workbench.colorCustomizations.json
Created February 19, 2020 20:18 — forked from jacklorusso/workbench.colorCustomizations.json
A list of all Visual Studio Code customizable colors, grouped by UI region. Copy and paste into User Settings (comments are allowed) to tweak an existing theme or work on your own.
"workbench.colorCustomizations": {
// Contrast Colors - The contrast colors are typically only set for high contrast themes. If set, they add an additional border around items across the UI to increase the contrast.
"contrastActiveBorder": "",
"contrastBorder": "",
// Base Colors
"focusBorder": "",
"foreground": "",
"widget.shadow": "",
"selection.background": "",
"descriptionForeground": "",
@bbg
bbg / space-astronaut.svg
Created February 19, 2020 22:52
404 sayfası için svg formatında görsel
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bbg
bbg / git-deployment.md
Created March 5, 2020 13:52 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.