Skip to content

Instantly share code, notes, and snippets.

View dniquery.go
package main
import (
View gpedit.bat
@echo off
pushd "%~dp0"
rem enable gpedit on windows home (tested windows 10)
dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum > pkgs.txt
dir /b %SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >> pkgs.txt
for /f %%i in ('findstr /i . pkgs.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del pkgs.txt
bryanjhv / main.go
Created May 26, 2021 — forked from enricofoltran/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
View main.go
package main
import (
View gammu_smsd_summary.sql
-- Get SMS summary from Gammu SMSD
-- from almost all content tables.
'inbox' AS kind,
ID AS id,
ReceivingDateTime AS created,
bryanjhv / Raspberry and
Created Apr 28, 2021 — forked from tomysmile/Raspberry and
GAMMU: Send SMS with Raspberry Pi
View Raspberry and

Send SMS messages using Raspberry Pi.

Using gammu and Huawei E220

Prepare SD card with wheezy.

Login / complete rasp-config / reboot / login

Set vimrc to prevent annoying ADBC arrow keys

cp /etc/vim/vimrc ~/.vimrc

bryanjhv / Caddyfile
Created Apr 27, 2021
Aria2 daemon with Web UI using Caddy server
View Caddyfile
aria2.server.lan {
encode gzip zstd
root * /home/myself/Projects/aria2/docs
@jsonrpc {
path /jsonrpc
header Upgrade websocket
header Connection *Upgrade*
route {
bryanjhv /
Created Apr 26, 2021 — forked from donno/
Downloads and extract the Visual C++ Redistributables.
"""Downloads and extract the Visual C++ Redistributables.
This is useful when working with minidump files as the user may be running
with a new different version of the runtime. This script aims to maintain
a copy of the various versions.
Versions are normally added once I encounter them.
This requires dark.exe from Wix ( and
expand.exe (File Expansion Utility - this comes with Microsoft Windows).
bryanjhv /
Created Apr 6, 2021
Eliminar chequeo de ROOT de Yape BCP (Android)

Eliminar chequeo de ROOT de Yape BCP (Android)

Algunos puntos / aclaraciones

  • NO trabajo para BCP en este momento ni previo a esta fecha.
  • NO me hago responsable por lo que otros hagan con este script.
  • NO brindo ningún tipo de soporte, si quieres usarlo lee tutoriales.
  • SOLO para uso personal, NO hacerlo comercial. EVITAR piratear.
  • SI lo RE-POSTEAS, hazlo agregando un enlace a este ORIGINAL.
  • ESPERO que BCP mejore su APP en vez de chequeos TONTOS.
if [ $# -lt 1 ]; then
echo "ERROR: Specify operation (backup/restore)."
exit 1
View cpuid.c
#include <cpuid.h>
#include <stdio.h>
// print CPUID vendor
// using almost plain C
// almost = GCC specific?
int main() {
int a, b, c, d;
__cpuid(0, a, b, c, d);