Skip to content

Instantly share code, notes, and snippets.

View a-n-d-r's full-sized avatar
👋

Andre a-n-d-r

👋
  • bogdanna.com
  • Kazakhstan
  • 08:26 (UTC +05:00)
View GitHub Profile
@santaklouse
santaklouse / CrossOver.sh
Last active May 5, 2025 11:25
unlimited CrossOver trial (MacOS)
#!/usr/bin/env bash
# checck if pidof exists
PIDOF="$(which pidof)"
# and if not - install it
(test "${PIDOF}" && test -f "${PIDOF}") || brew install pidof
# find app in default paths
CO_PWD=~/Applications/CrossOver.app/Contents/MacOS
test -d "${CO_PWD}" || CO_PWD=/Applications/CrossOver.app/Contents/MacOS
@ethicnology
ethicnology / bitcoin-full-node.sh
Last active July 9, 2022 07:23
wget, chmod +x and execute
#!/bin/bash
echo Setup bitcoin full node.
echo Specify bitcoin version, e.g. 22.0:
read version
echo Install bitcoin-core version $version
#Download bitcoin-core:
wget https://bitcoincore.org/bin/bitcoin-core-$version/bitcoin-$version-x86_64-linux-gnu.tar.gz
#Download the list of cryptographic checksums:
wget https://bitcoincore.org/bin/bitcoin-core-$version/SHA256SUMS
#Download the signatures attesting to validity of the checksums:
@kolyanok
kolyanok / Установка bol-van zapret на OpenWrt.md
Created April 21, 2020 03:04
Установка bol-van/zapret на OpenWrt

1. Установите OpenWrt на ваш роутер.

Для каждой модели роутера процесс установки различается. Ищите инструкции для своей модели в Google.

2. Подключитесь к роутеру по SSH

Чтобы подключиться по SSH, на роутере должен быть установлен пароль. Его можно установить в веб-интерфейсе. Для Windows используйте программу PuTTY, в macOS/Linux достаточно открыть системное приложение Терминал и ввести там следующую команду:

ssh root@IP-адрес_роутера

IP адрес роутера в стандартной конфигурации — 192.168.1.1

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tkon99
tkon99 / name.js
Last active September 16, 2024 20:38
Random Name Generator for Javascript
/*
(c) by Thomas Konings
Random Name Generator for Javascript
*/
function capFirst(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}
function getRandomInt(min, max) {
@ValdikSS
ValdikSS / donotasktoask_ru.md
Last active February 19, 2025 19:48
Спрашивайте сразу

Вам отправили это сообщение по следующим возможным причинам:

  • Вы поприветствовались и ждете ответа
  • Вы спросили о том, можно ли задать вопрос, и ждете ответа
  • Вы скинули запрос авторизации и ждете ответа

Пожалуйста, не делайте так. Задавайте вопрос сразу, без прелюдий, без запросов авторизации (в том числе и в Jabber), и ждите ответа. Не повторяйте свой вопрос и не спрашивайте, на месте ли я.

Здесь комментарии не пишите, уведомление о них не приходит ни мне, ни вам.

Если вам интересно получить развернутый ответ и аргументы, почему не стоить здороваться и ожидать ответа при общении онлайн:

@romantomjak
romantomjak / ProfilingPython3CodeWithcProfieAndCProfileV.md
Last active July 16, 2022 16:49
Profiling Python 3 Code with cProfile and CProfileV

First, profile your code with cProfile:

$ python3 -m cProfile -o profile_output search.py

But output of that is not very helpful. To make sense of the cProfiler's output install CProfileV:

# install cprofilev
$ pip3 install cprofilev