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"
View README.md

Open Weather API call

Installation procedure

  • Create scripts
  • Define CITY_ID and APP_ID in each script
  • Add scritps into the crontab

Crontab

@fedir
fedir / fosdem_2019.md
Created Feb 18, 2019
FOSDEM 2019 > Videos ranking
View fosdem_2019.md
@fedir
fedir / shutter-edit-linux-mint-19.sh
Created Dec 6, 2018
Stutter / Edit button enable / Linux Mint 19
View shutter-edit-linux-mint-19.sh
mkdir ~/libgoo-canvas-perl
cd ~/libgoo-canvas-perl
wget http://archive.ubuntu.com/ubuntu/pool/universe/libg/libgoo-canvas-perl/libgoo-canvas-perl_0.06-2ubuntu3_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/libe/libextutils-depends-perl/libextutils-depends-perl_0.405-1_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/libe/libextutils-pkgconfig-perl/libextutils-pkgconfig-perl_1.15-1_all.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/g/goocanvas/libgoocanvas3_1.0.0-1_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/g/goocanvas/libgoocanvas-common_1.0.0-1_all.deb
sudo dpkg -i *.deb
sudo apt install -f
View typo3camp-nantes-cms-6-top-9-update-notes.md

Notes of Matthias Krappitz 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

From 6 to 7

  • 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)
View web-summit-2018-likes.md
@fedir
fedir / 1-node-sass-centos-6.sh
Last active Nov 16, 2018
Install node-sass on CentOS 6
View 1-node-sass-centos-6.sh
yum update
yum install -y gcc-c++ make
curl -sL https://rpm.nodesource.com/setup_8.x | sudo -E bash -
npm install --unsafe-perm -g node-sass
type node-sass
npm install -g less
type lessc
@fedir
fedir / private-domain-with-redirects-by-ip.htaccess
Last active Nov 2, 2018
.htaccess, Private domain access from selected IPs only, with a redirect to fallback domain
View private-domain-with-redirects-by-ip.htaccess
RewriteCond %{REMOTE_ADDR} !^XX\.XX\.XX\.XX$
RewriteCond %{REMOTE_ADDR} !^XX\.XX\.XX\.XX$
RewriteCond %{HTTP_HOST} ^(private-domain) [NC]
RewriteRule ^(.*)$ http://fallback-domain$1 [R=301,L]
@fedir
fedir / google-next-2018-likes.md
Last active Oct 14, 2018
google-next-2018 (sorting by positive interest / likes) #yrank
View google-next-2018-likes.md