Skip to content

Instantly share code, notes, and snippets.

View Simpfc's full-sized avatar

simpfc Simpfc

  • Digicode
  • Ukraine
View GitHub Profile
@Simpfc
Simpfc / k8cloud
Last active July 13, 2021 18:49
Clouds & k8
## k8
kubectl get nodes
kubectl get componentstatuses
kubectl cluster-info
kubectl run hello --generator=run-pod/v1 --image=nginx:latest --port=80
kubectl get pods
kubectl delete pods hello
kubectl describe pods hello
kubectl exec -it hello sh
@Simpfc
Simpfc / development.md
Last active August 19, 2021 11:41
[Development] #development
Free for developers
free-for.dev

This is a list of software (SaaS, PaaS, IaaS, etc.) and other offerings that have free tiers for developers. http://free-for.dev/

geeksforgeeks.org

It contains well written, well thought and well explained computer science and programming articles, quizzes and https://www.geeksforgeeks.org/

Software Architecture

@Simpfc
Simpfc / settings
Created December 27, 2019 14:56
Php Storm
File and code templates
/**
${PARAM_DOC}
#if (${PARAM_DOC} != '' && ${TYPE_HINT} != "void")
*
#end
#if (${TYPE_HINT} != "void")
* @return ${TYPE_HINT}
#end
@Simpfc
Simpfc / Centos
Created July 14, 2019 20:55
#Centos
$ cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
$ uname -r
4.6.2-1.el7.elrepo.x86_64
@Simpfc
Simpfc / Docker (common)
Last active July 20, 2019 09:18
#docker
yum repolist
yum install epel-release
yum search Docker
yum install docker.x86_64
yum search Docker compose
yum install docker-compose.noarch
sestatus
cat /etc/selinux/config
mcedit /etc/selinux/config
@Simpfc
Simpfc / MySQL (common)
Last active July 10, 2019 15:03
#mysql
# error: "Your password does not satisfy the current policy requirements."
Solution 1:
Because of your password. You can see password validate configuration metrics using the following query in MySQL client:
SHOW VARIABLES LIKE 'validate_password%';
or you can set the password policy level lower, for example:
SET GLOBAL validate_password_length = 6;
SET GLOBAL validate_password_number_count = 0;
Solution 2:
mysql -h localhost -u root -p
@Simpfc
Simpfc / provision.sh
Created October 4, 2018 12:07 — forked from masiuchi/provision.sh
Install Docker and Docker Compose to Ubuntu 14.04 LTS.
#!/bin/bash
# https://docs.docker.com/engine/installation/linux/ubuntulinux/
sudo apt-get update
sudo apt-get -y install apt-transport-https ca-certificates
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo bash -c 'echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list'
sudo apt-get update
sudo apt-get -y install linux-image-extra-$(uname -r)
sudo apt-get -y install docker-engine
@Simpfc
Simpfc / 0_reuse_code.js
Created November 6, 2015 13:58
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Simpfc
Simpfc / .gitignore
Last active July 4, 2019 11:28 — forked from redoPop/.gitignore
#Wordpress
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your