Skip to content

Instantly share code, notes, and snippets.

View theartofdevel's full-sized avatar

The Art of Development theartofdevel

View GitHub Profile
@theartofdevel
theartofdevel / iterm2-solarized.md
Created November 3, 2023 09:13 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@theartofdevel
theartofdevel / main.go
Last active April 27, 2023 19:48
Pattern Strategy in Golang for youtube channel The Art of Development
package main
func main() {
product := "vehicle"
payWay := 3
var payment Payment
switch payWay {
case 1:
payment = NewCardPayment("12345", "12345")
User:
{
"username": "vasya"
"password: "12345",
"roles": ["role1", "role2"]
}
Role:
{
"name": "role1"
cat /etc/opt/remi/php72/php-fpm.d/www.conf
; Start a new pool named 'www'.
; the variable $pool can we used in any directive and will be replaced by the
; pool name ('www' here)
[www]
; Per pool prefix
; It only applies on the following directives:
; - 'access.log'
; - 'slowlog'
cat /etc/nginx/conf.d/mysite.local.conf
server {
listen 80;
server_name _;
root /var/www/html;
index index.php;
location ~* .(jpg|jpeg|gif|css|png|js|ico|html)$ {
access_log off;
cat /etc/nginx/nginx.conf
# For more information on configuration, see:
# * Official English Documentation: http://nginx.org/en/docs/
# * Official Russian Documentation: http://nginx.org/ru/docs/
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;