Skip to content

Instantly share code, notes, and snippets.

View UndeadDemidov's full-sized avatar

nick UndeadDemidov

View GitHub Profile
@olih
olih / jq-cheetsheet.md
Last active May 10, 2025 20:55
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

@zmts
zmts / tokens.md
Last active May 13, 2025 19:06
Про токены, JSON Web Tokens (JWT), аутентификацию и авторизацию. Token-Based Authentication

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

Last major update: 25.08.2020

  • Что такое авторизация/аутентификация
  • Где хранить токены
  • Как ставить куки ?
  • Процесс логина
  • Процесс рефреш токенов
  • Кража токенов/Механизм контроля токенов
@Potherca
Potherca / README.md
Last active August 26, 2024 13:39
BASH script to clone all git repository in a Group on GitLab, or Organization on GitHub.

Introduction

Starting at a new employer always mean checking out various git repositories.

As the amount of repositories a company has grows, the time needed to clone all of those repositories also grows.

This script automates this task.

In order for this script to work, a personal access token is needed.

@morrismukiri
morrismukiri / superset-admin-password-reset.sh
Created January 17, 2019 17:11
Apache Superset reset admin password
# activate the virtualenv
source /home/superset/.virtualenvs/superset/bin/activate
fabmanager reset-password --app superset --username admin --password enteryournewpassword
@Barolina
Barolina / CryptoPro.md
Last active March 24, 2025 16:35
Linux cryptopro5 подпись файлов и установка

Чуть-чуть об установке

  1. что б каждый раз не вводить полный путь до команд крипто
export PATH="$(/bin/ls -d /opt/cprocsp/{s,}bin/*|tr '\n' ':')$PATH"
  1. так как, выше описная команда измениет переменную PATH тольк на время сесии, это можно исправить так: меняем PATH

  2. если во время установки, к примеру от пользователя www-data, произошла ошибка во время установке pfx, убедитесь, что

@jacksluong
jacksluong / cdp.md
Last active September 4, 2024 07:18
An interactive way to navigate directories in a terminal

cdp: Change Directory Pro

recording How do you navigate in your terminal? Do you chain sequences of cd commands together, or copy a file path and paste it? Sometimes to a destination directory that's not adjacent to your current one?

cdp might be the solution for you. It's a command that activates an interactive way to navigate directories smoothly and easily. Compatible with bash and zsh.

Controls

  • cdp to activate
  • ↑/↓ to change the selected subdirectory
  • ← to move into the parent subdirectory (disallowed when in $HOME)
@agarzon
agarzon / clearCache.sh
Created March 30, 2023 13:19
gitlab-runner clear cache script
#!/bin/bash
#Variables
gitlabUrl="https://gitlab.yourdomain.com"
configFile="/etc/gitlab-runner/config.toml"
gitlabTolken="" # Get it from https://gitlabUrl/profile/account API read access token
# Get GitLab Runner tokens from config.toml
mapfile -t runner_tokens < <(sudo grep -oP 'token = "\K[^"]+' ${configFile})