Skip to content

Instantly share code, notes, and snippets.

@maxxborer
maxxborer / language_switch.json
Created October 27, 2025 12:24
Direct Language Switch [ru, en] for Karabiner-Elements
{
"title": "Direct Language Switch",
"rules": [
{
"description": "Ctrl+Space → прямое переключение EN/RU",
"manipulators": [
{
"type": "basic",
"conditions": [
{
@maxxborer
maxxborer / History|-10447397|entries.json
Last active May 27, 2025 07:53
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///Users/kaspi2/Work/mobile/components/product/masterProduct/MasterProductForm/MasterProductFormImages.vue","entries":[{"id":"iL8Q.vue","source":"searchReplace.source","timestamp":1741250748437},{"id":"uNUZ.vue","source":"searchReplace.source","timestamp":1741251253132}]}
Сетевые технологии
Программирование
Научно-популярное
Информационная безопасность
Карьера в IT-индустрии
Искусственный интеллект
DIY или Сделай сам
Python
Машинное обучение
Производство и разработка электроники
@maxxborer
maxxborer / gitlab-mr.js
Last active August 9, 2024 17:45
This script is used to create a merge request from develop to testing or testing to production
/**
* This script is used to create a merge request from develop to testing or testing to production
* Usage: node scripts/release.js [testing|production]
* Example: node scripts/release.js testing
* Example: node scripts/release.js production
* Note: This script is only for windows, mac and linux
*/
import { execSync, spawn } from 'child_process';
import os from 'os';
@maxxborer
maxxborer / git-push.js
Created February 15, 2023 17:27
Git push current brach (Even if the branch is new)
// git push or git push --set-upstream current branch
import { execSync } from 'child_process';
const output = execSync('git branch').toString().trim();
const CURRENT_BRANCH = output.match(/^\* (.+)$/m)[1];
execSync(`git push --set-upstream origin ${CURRENT_BRANCH}`);
@maxxborer
maxxborer / delete_artifacts.sh
Created February 15, 2023 09:02
Delete all artifacts of gitlab project
#!/bin/bash
# find it here: https://gitlab.com/[organization name]/[repository name]/edit inside the "General project settings" tab
PROJECT_ID="1234567890"
# find it here: https://gitlab.com/profile/personal_access_tokens
TOKEN="qwertyuiopasdfghjklzxcvbnm1234567890"
GITLAB_URL="https://gitlab.com"
# The initial values of the parameters of the request