Skip to content

Instantly share code, notes, and snippets.

View T-Damer's full-sized avatar
Code flows through my blood

Daniil Pankov T-Damer

Code flows through my blood
View GitHub Profile
@leovido
leovido / le-ham-widget-v2.0.0.txt
Last active June 22, 2024 13:59
Ham widget (iOS) - Farcaster (by leovido.eth)
// Visit https://iamng.wtf/widgets/fc-degen/points for installation instructions
// 1. Install Scriptable from the App Store
// 2. Create a new script once downloaded clicking the plus button (clicking on the Untitled title will allow you to name the script; I suggest naming it Ham widget)
// 3. Copy the following code:
const scriptURL = 'https://ham-api.leovido.xyz/api/widget-script?fid=' + encodeURIComponent(args.widgetParameter || 'yourFID');
const script = await new Request(scriptURL).loadString();
eval(script);
// 4. Replace 'yourFID' with your Farcaster/Warpcast FID (you can find this in your own profile, clicking on the about button)
@MrEnder0
MrEnder0 / main.rs
Last active January 8, 2024 08:11
Bash Terminal Gateway in Rust
// Code written by Mr.Ender for educational purposes only, version 2
use std::{process::Command, io};
fn main() {
let host_name = Command::new("sh")
.arg("-c")
.arg("hostname")
.output()
.expect("failed to get host name");
@erangaeb
erangaeb / ipfs-cluster-secret
Created May 25, 2022 03:00
generate ipfs cluster secret
# generate cluster secret
export CLUSTER_SECRET=$(od -vN 32 -An -tx1 /dev/urandom | tr -d ' \n')
echo $CLUSTER_SECRET
# this is the generated cluster secret
e23e876e6742615eca9aefdc05943fa0d1bbc18f7d0a4f27e22ff8931fc56624
@JohnyDeath
JohnyDeath / Установка Outline VPN на Ubuntu 20.04.md
Created March 4, 2022 19:36 — forked from YPermitin/Установка Outline VPN на Ubuntu 20.04.md
Инструкция по развертыванию собственного VPN-сервиса на базе Outline VPN

Установка Outline VPN на Ubuntu 20.04

Outline VPN - это бесплатный инструмент с открытым исходным кодом, позволяющий развернуть собственную VPN на Вашем собственном сервере или на машине облачного провайдера. Подробную информацию Вы можете узнать здесь и здесь.

В своем составе имеет как графические инструменты, так и средства работы через командную строку. Позволяет использовать VPN как на настольных компьютерах, так и на мобильных устройствах.

Прежде чем начать

Вам нужен сервер. Да, его нужно арендовать, учитывая его местоположение. Например, если Вам нужно получать доступ к ресурсам, которые недоступны в текущем местоположении, но доступны, например, в Канаде, то смело арендуйте виртуальную машину в AWS, Digital Ocean или любом другом месте.

@starlinq
starlinq / cloud.mail.ru-webdav-ubuntu-20.04.md
Last active September 3, 2024 14:56
Подключение к Cloud.mail.ru с помощью WebDAV эмулятора в Убунту 20.04
title date
Подключение к Cloud.mail.ru с помощью WebDAV эмулятора в Убунту 20.04
2020-10-16

Подключение к Cloud.mail.ru с помощью WebDAV эмулятора в Убунту 20.04

Инструкцию для Убунту 18.04 см. здесь.

@madkoding
madkoding / pair-dual-boot-bluetooth.md
Last active March 5, 2025 12:41
Pairing bluetooth devices in dual boot with Linux Ubuntu and Windows 10/11

Pairing Bluetooth Devices in Dual Boot with Linux Ubuntu and Windows 10/11

Introduction

This guide provides updated instructions for pairing Bluetooth devices (such as keyboards or mice) in a dual-boot environment with Linux Ubuntu and Windows 10/11, incorporating community feedback and suggestions.

Instructions

1. Pair in Linux First

  • Pair your Bluetooth device in Linux. This is crucial to ensure the LinkKey remains consistent.
  • Note: Do not re-pair the device in Linux after completing the pairing in Windows.
" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
"Plug 'tsony-tsonev/nerdtree-git-plugin'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons'
Plug 'airblade/vim-gitgutter'
@koshatul
koshatul / README.md
Last active March 2, 2025 21:01
use Apple Keychain to store GPG Passphrases

gpg-agent setup

Need to setup gpg-agent first, on OSX I use keychain (it also does ssh-agent)

$ brew info keychain
keychain: stable 2.8.5
User-friendly front-end to ssh-agent(1)
https://www.funtoo.org/Keychain
/usr/local/Cellar/keychain/2.8.5 (7 files, 108.5KB) *
@joeltg
joeltg / cluster.sh
Last active November 5, 2024 22:48
IPFS Cluster Setup
#!/bin/bash
set -x
USER=ec2-user
GROUP=ec2-user
# Update these when appropriate
IPFS_VERSION=v0.4.21
IPFS_CLUSTER_VERSION=v0.10.1
@paolocarrasco
paolocarrasco / README.md
Last active February 10, 2025 15:41
How to understand the `gpg failed to sign the data` problem in git

Problem

You have installed GPG, then tried to commit and suddenly you see this error message after it:

error: gpg failed to sign the data
fatal: failed to write commit object

Debug