Skip to content

Instantly share code, notes, and snippets.

View fedir's full-sized avatar
🌤️
The sun is behind every cloud

Fedir RYKHTIK fedir

🌤️
The sun is behind every cloud
View GitHub Profile
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 January 17, 2020 08:18
TYPO3camp Nantes TYPO3 CMS 6 to 9 Update Notes
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 March 16, 2018 10:47
Upload File - golang
package main
import (
"crypto/md5"
"fmt"
"io"
"net/http"
"os"
"strconv"
"text/template"
@fedir
fedir / golang.bashrc
Last active April 19, 2024 12:06
Go (Golang) installation and path configuration for Ubuntu / Debian / Linux Mint / ...
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 January 2, 2023 10:31 — forked from francoishill/loop_files_folders_recursively.go
Loop through files and folders recursively in golang
package main
import (
"fmt"
"os"
"path/filepath"
)
func run() ([]string, error) {
searchDir := "c:/path/to/dir"
package googlescraper
import (
"fmt"
"github.com/PuerkitoBio/goquery"
"net/http"
"strings"
)
type GoogleResult struct {
@cuixin
cuixin / json_to_map.go
Created October 25, 2017 01:53
json to map[string]interface{} example in golang
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 March 29, 2024 08:38
Story: Writing Scripts with Go

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 August 10, 2017 17:21
Install docker Linux Mint 18.2
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 February 6, 2024 14:56
How to add a custom element for the formEditor of ext:form

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.