Skip to content

Instantly share code, notes, and snippets.

View sequencerr's full-sized avatar
👨‍💻

sequencerr

👨‍💻
  • 14:20 (UTC +01:00)
View GitHub Profile
@robotdad
robotdad / vs_cpp_winget.md
Last active September 25, 2025 04:37
Installing VS C++ workloads with winget

This is a short outline of how to install the C++ workload with Visual Studio or the build tools using winget.

To find VS releases with winget use search. winget search buildtools

The install command will install the VS installer with the core of the selected product installed. That isn't much. So if you use either of these commands to insll VS or the build tools you will need to launch the VS installer afterwards and select the relevant C++ workloads you need.

winget install Microsoft.VisualStudio.2022.BuildTools

winget install Microsoft.VisualStudio.2022.Community
@rambkk
rambkk / PHP-array_reduce,findIndex,findIndexes.php
Last active April 9, 2024 11:41
PHP array_reduce, findIndex, and findIndexes functions
<?php
/*
* PHP array_reduce_key (v0.11) - array_reduce with additional parameters
* array_reduce with key,
* (javascript like reduce method)
* (if initial value of carry is not specified, null is used)
*
* PHP array_reduce_JS (v0.12) - array_reduce with additional parameters
* (javascript like reduce method)
* if initial value of carry is not specified, first item of input ARRAY is used, and CALLBACK starts on the second item
@jdah
jdah / .vimrc
Created June 14, 2021 11:54
jdh's NeoVim .vimrc
call plug#begin()
Plug 'drewtempelmeyer/palenight.vim'
Plug 'vim-airline/vim-airline'
Plug 'wlangstroth/vim-racket'
Plug 'sheerun/vim-polyglot'
Plug 'rust-lang/rust.vim'
Plug 'preservim/tagbar'
Plug 'universal-ctags/ctags'
Plug 'luochen1990/rainbow'
Plug 'vim-syntastic/syntastic'
@danielwetan
danielwetan / nodejs-cicd-github-actions.md
Last active October 15, 2025 06:50
Deploy Node.js to VPS using Github Actions

Deploy Node.js to VPS using Github Actions

Steps to deploy Node.js to VPS using PM2 and Github Actions

1. Clone repo to VPS folder

@FreddieOliveira
FreddieOliveira / docker.md
Last active October 28, 2025 08:35
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@oofnikj
oofnikj / answerfile
Last active October 27, 2025 01:48
Install Docker on Termux
KEYMAPOPTS="us us"
HOSTNAMEOPTS="-n alpine"
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname alpine
"
TIMEZONEOPTS="-z UTC"
@tdegrunt
tdegrunt / keyboardLayout.json
Last active January 27, 2025 01:36
Visual Studio Code (vscode/code) Colemak keyboard layout
{
"layout": {
"id": "com.apple.keylayout.Colemak",
"localizedName": "Colemak",
"lang": "en"
},
"rawMapping": {
"KeyA": {
"value": "a",
"valueIsDeadKey": false,
@ilyazub
ilyazub / puppeteer-reuse-cookie-in-http-request-from-node.js
Last active January 9, 2025 11:06
Reuse `puppeteer` cookies in `tough-cookie` and `got`
@Pitasi
Pitasi / check_telegram_signature.js
Last active January 4, 2025 11:56
Telegram website login widget, signature check sample using Node.js
// Copied by https://gist.github.com/dotcypress/8fd12d6e886cd74bba8f1aa8dbd346aa,
// thanks for improving code style
const { createHash, createHmac } = require('crypto');
const TOKEN = "ABC:12345...";
// I prefer get the secret's hash once but check the gist linked
// on line 1 if you prefer passing the bot token as a param
const secret = createHash('sha256')
.update(TOKEN)