Skip to content

Instantly share code, notes, and snippets.

Avatar
🌤️
The sun is behind every cloud

Fedir RYKHTIK fedir

🌤️
The sun is behind every cloud
View GitHub Profile
View history.sh
git clone https://github.com/GoogleCloudPlatform/kubernetes-engine-samples
cd kubernetes-engine-samples/hello-app
cat main.go
cat Dockerfile
gcloud container clusters get-credentials <;cluster-name> \
gcloud container clusters get-credentials cluster-1 --zone europe-west1
docker build -t gcr.io/meeetup-golang-marseille-03/hello-node:v1 $PWD
gcloud docker -- push gcr.io/meetup-golang-marseille-03/hello-node:v1
kubectl run hello-node --image=gcr.io/meetup-golang-marseille-03/hello-node:v1 --port=8080
kubectl expose deployment hello-node --type="LoadBalancer"
@mkrappitz
mkrappitz / typo3camp-nantes-cms-6-top-9-update-notes.txt
Last active Jan 17, 2020
TYPO3camp Nantes TYPO3 CMS 6 to 9 Update Notes
View typo3camp-nantes-cms-6-top-9-update-notes.txt
Here is my list of notes for the TYPO3 CMS 6 to 9 update session of the installation https://www.kastrati.com/ on the Sunday of the TYPO3Camp Nantes 2018. Makes only sense for participants of the session:
- set development system DB settings inf AdditionalConfiguration.php on domain condition
- execute DB Compare
- set Preview Domain in PageTs on domain condition
- set TS Domain Conditions for Frontend to Dev Environment
- extension updates (EXT:powermail only up to 2.25.3 for now)
- EXT: fix realurl configuration, changing $TYPO3_CONF_VARS to $GLOBALS['TYPO3_CONF_VARS']
- migrate to EXT:metaseo, rewrite data, change static TS, change constants
- set php to 7.1
@anujsinghwd
anujsinghwd / main.go
Created Mar 16, 2018
Upload File - golang
View main.go
package main
import (
"crypto/md5"
"fmt"
"io"
"net/http"
"os"
"strconv"
"text/template"
@fedir
fedir / golang.bashrc
Last active Jan 4, 2019
Go (Golang) installation and path configuration for Ubuntu / Debian / Linux Mint / ...
View golang.bashrc
export GOROOT=/usr/local/go
export PATH=${GOROOT}/bin:${PATH}
export GOPATH=$HOME/go
export PATH=${GOPATH}/bin:${PATH}
@fubarhouse
fubarhouse / loop_files_folders_recursively.go
Last active Jul 31, 2021 — forked from francoishill/loop_files_folders_recursively.go
Loop through files and folders recursively in golang
View loop_files_folders_recursively.go
package main
import (
"fmt"
"os"
"path/filepath"
)
func run() ([]string, error) {
searchDir := "c:/path/to/dir"
View google.go
package googlescraper
import (
"fmt"
"github.com/PuerkitoBio/goquery"
"net/http"
"strings"
)
type GoogleResult struct {
@cuixin
cuixin / json_to_map.go
Created Oct 25, 2017
json to map[string]interface{} example in golang
View json_to_map.go
package main
import (
"encoding/json"
"fmt"
)
func dumpMap(space string, m map[string]interface{}) {
for k, v := range m {
if mv, ok := v.(map[string]interface{}); ok {
@posener
posener / go-shebang-story.md
Last active Jul 30, 2021
Story: Writing Scripts with Go
View go-shebang-story.md

Story: Writing Scripts with Go

This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.

Why Go is good for scripting?

While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.

@Simplesmente
Simplesmente / install-docker-mint.sh
Created Aug 10, 2017
Install docker Linux Mint 18.2
View install-docker-mint.sh
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates -y
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo echo deb https://apt.dockerproject.org/repo ubuntu-xenial main >> /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt-get purge lxc-docker
sudo apt-get install linux-image-extra-$(uname -r) -y
sudo apt-get install docker-engine cgroup-lite apparmor -y
sudo usermod -a -G docker $USER
sudo service docker start
@manuelselbach
manuelselbach / HowToAddACustomElementForTheFormEditorOfExtForm.md
Last active Jul 17, 2021
How to add a custom element for the formEditor of ext:form
View HowToAddACustomElementForTheFormEditorOfExtForm.md

EXT:form How to add a custom form element

If you like to add a custom form element, please follow these steps. For detailed information and documentation of ext:form please visit the official documentation: https://docs.typo3.org/typo3cms/extensions/form/Index.html

Basics

First of all create a new extension, which will hold all the configuration, templates, etc.