Skip to content

Instantly share code, notes, and snippets.

View dreamIIx's full-sized avatar
🇸🇯

Evgeny Shibanov dreamIIx

🇸🇯
View GitHub Profile
@robertkirkman
robertkirkman / README.md
Last active April 20, 2025 17:54 — forked from thalamus/ArchLinuxARM-M1
How to install Arch Linux ARM or Debian ARM in QEMU full system emulator

How to install a GNU/Linux ARM emulator

Prerequisites:

  • A PC with a Linux distribution - Arch Linux amd64 used here

Dependencies (for Arch Linux amd64 but very easy to get on most distros):

ZSH CheatSheet

This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.

Strings

Description Syntax
Get the length of a string ${#VARNAME}
Get a single character ${VARNAME[index]}
@sergeiwaigant
sergeiwaigant / url_encode_string_with_linux_tools.md
Last active April 24, 2025 21:35
Simply URL encode string with Linux/Bash/Shell tools

Reference https://stackoverflow.com/a/34407620/13287790

$ printf %s 'encode this'|jq -sRr @uri
encode%20this

$ jq -rn --arg x 'encode this' '$x|@uri'
encode%20this

# -r (--raw-output) outputs the raw contents of strings instead of JSON string literals. -n (--null-input) doesn't read input from STDIN.
@igorpronin
igorpronin / txt
Last active April 26, 2023 17:33
Копирование файлов по ssh, работа с zip, утилита cp (копирование файлов)
Перенесено в мой ман https://github.com/igorpronin/my-mans/blob/master/ssh-zip/ssh.md
Пример 1: Копируем файл «file.txt» из удаленного сервера на локальный компьютер.
$ scp [email protected]:file.txt /some/local/directory
Пример 2: Копируем файл «file.txt» с локального компьютера на удаленный сервер.
$ scp file.txt [email protected]:/some/remote/directory
Пример 3: Копируем папку «dir1» с локального хоста в директорию «dir2» на удаленном хосте.
$ scp -r dir1 [email protected]:/some/remote/directory/dir2
@o-zombi-o
o-zombi-o / raw_speed_test_client.cpp
Created November 27, 2016 16:29
Example boost TCP client/server.
#include <thread>
#include <chrono>
#include <vector>
#include <signal.h>
#include <boost/asio.hpp>
#include <boost/thread.hpp>
namespace
{
bool keepGoing = true;