Skip to content

Instantly share code, notes, and snippets.

View boskiv's full-sized avatar

Ivan Skiridomov boskiv

  • ZFX
  • Cyprus
  • 13:47 (UTC +03:00)
View GitHub Profile
@macbookandrew
macbookandrew / readme.md
Last active September 13, 2024 13:44
Laravel VS Code Workspace Tasks

Runs these tasks automatically when the workspace is opened:

  1. npm run dev: recompiles assets when modified; useful for Tailwind JIT mode, Vite, etc.
  2. php artisan horizon: runs Horizon queue monitor
  3. php artisan schedule:work: runs scheduled tasks
  4. php artisan pulse:check: runs Pulse watcher
  5. Prunes failed queue jobs and telescope logs on open
@superseb
superseb / README.md
Last active August 30, 2024 18:02
Deploy kubernetes-dashboard on Rancher 2.x cluster exposed using NodePort

Deploy kubernetes-dashboard on Rancher 2.x cluster exposed using NodePort

This has been updated to install Dashboard v2.0.0, see below for pre v2.0.0 instructions

Requirements

Step 1: Generate kubeconfig from the UI

Generate the kubeconfig file for your cluster using the Kubeconfig File button in the Cluster view of your cluster.

@rafaellucio
rafaellucio / README.md
Last active August 14, 2024 17:33
Plugin NVM oh-my-zsh

NVM plugin

Description

This plugin provides load nvm if it exists and when the .nvmrc file exists in your directory, it will download the described node version.

To start using it:

  • Add the ZSH_NVM_AUTOLOAD=true at the beginning of the file ~/.zshrc
  • Add nvm plugin to your plugins array in ~/.zshrc
@zmts
zmts / tokens.md
Last active April 8, 2025 10:20
Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

Last major update: 25.08.2020

  • Что такое авторизация/аутентификация
  • Где хранить токены
  • Как ставить куки ?
  • Процесс логина
  • Процесс рефреш токенов
  • Кража токенов/Механизм контроля токенов
@gonzaloserrano
gonzaloserrano / log.go
Created August 18, 2015 17:56
logrus wrapper
package log
import (
"fmt"
"github.com/Sirupsen/logrus"
"runtime"
"strings"
)
var logger = logrus.New()
@snoek09
snoek09 / phpstorm.md
Last active August 29, 2015 14:03
PhpStorm

Shortcuts

  • ! Tab in template creates html skeleton
  • link Tab creates stylesheet link
  • .container Tab creates div with id=container
  • Alt-1 toggle sidebar
  • Shift-Alt-A search everything
  • Match sidebar color with color theme -> install plugin 'color ide'

Custom Keybindings

  • Begin of line - C-a
@alertor
alertor / jira-behing-nginx-ssl
Last active April 27, 2023 15:45
Atlassian JIRA behind nginx + SSL
# force HTTP to HTTPS - /etc/nginx/conf.d/nonssl.conf
server {
listen 80;
server_name jira.example.com;
access_log off;
return 301 https://$server_name$request_uri;
}
# /etc/nginx/conf.d/jira.conf
server {