Skip to content

Instantly share code, notes, and snippets.

View vxxvvxxv's full-sized avatar
🪄
Creating something magical

VxxV VxxV vxxvvxxv

🪄
Creating something magical
View GitHub Profile
{
"input": {
"blocklist": [],
"compressor#0": {
"attack": 5.0,
"boost-amount": 6.0,
"boost-threshold": -72.0,
"bypass": false,
"dry": -100.0,
"hpf-frequency": 10.0,

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
@vxxvvxxv
vxxvvxxv / LocalFileManager.swift
Created February 8, 2024 05:49
Instance of localFileManager
//
// LocalFileManager.swift
// CryptoApp
//
// Created by Vladimir Sokolovskiy on 07.02.2024.
//
import Foundation
import SwiftUI
@vxxvvxxv
vxxvvxxv / generate-icns.sh
Created May 4, 2023 10:30 — forked from ahmed-musallam/generate-icns.sh
A Shell script to generate .ico and .icns files (mac/windows app icons) from a single PNG
# Required deps:
# imagemagick: https://imagemagick.org/script/download.php
# name of your master icon, must be at least 512X512
PNG_MASTER="icon-large.png"
ICONSET_FOLDER="AppIcon.iconset"
sizes=(
16x16
32x32
@vxxvvxxv
vxxvvxxv / macos-app-icon.md
Created May 4, 2023 09:23 — forked from jamieweavis/macos-app-icon.md
How to create an .icns macOS app icon
@vxxvvxxv
vxxvvxxv / get_all_values_memcached.sh
Created February 3, 2021 05:49
Get all values from Memcached
echo -e "stats items" \
| nc localhost 11211 \
| cut -s -d ":" -f 2 \
| sort \
| uniq \
| xargs -L1 -I{} bash -c 'echo -e "stats cachedump {} 1000" | nc localhost 11211' \
| cut -s -d " " -f 2 \
| sort \
| uniq \
| xargs -L1 -I{} bash -c 'echo -e "get {}" | nc localhost 11211'