Skip to content

Instantly share code, notes, and snippets.

@bglopez
bglopez / settings.jsonc
Created March 6, 2024 02:41 — forked from hyperupcall/settings.jsonc
VSCode config to disable popular extensions' annoyances (telemetry, notifications, welcome pages, etc.)
// I'm tired of extensions that automatically:
// - show welcome pages / walkthroughs
// - show release notes
// - send telemetry
// - recommend things
//
// This disables all of that stuff.
// If you have more config, leave a comment so I can add it!!
{
@bglopez
bglopez / convert.sh
Last active May 30, 2023 03:43 — forked from Lili1228/convert.sh
Convert Manjaro to Arch
#!/bin/bash
# https://www.gnu.org/licenses/old-licenses/gpl-2.0.html, who cares
#
# Tested on freshly installed Manjaro 22.0.5 Gnome.
pamac build trizen
cat >/tmp/convert.sh <<EOF
pacman -Qq | grep pamac | xargs pacman -Rs --noconfirm pamac-gtk web-installer-url-handler manjaro-hello libpamac pamac-cli libpamac-flatpak-plugin manjaro-application-utility
pacman -Rdd manjaro-release bashrc-manjaro manjaro-keyring
pacman -U https://www.archlinux.org/packages/core/x86_64/pacman/download/ https://www.archlinux.org/packages/core/any/pacman-mirrorlist/download/ https://www.archlinux.org/packages/community/any/lsb-release/download/
mv /etc/pacman.d/mirrorlist.pacnew /etc/pacman.d/mirrorlist
@bglopez
bglopez / nb_to_mvn.pl
Created May 29, 2023 21:36 — forked from abbaspour/nb_to_mvn.pl
Convert a NetBeans project to Maven
#!/usr/bin/perl
# generates Maven pom.xml based on nbproject
# d640492
use strict;
use warnings;
use File::Basename;
@bglopez
bglopez / rscan.js
Created May 25, 2023 17:02 — forked from 80sVectorz/rscan.js
Recursive scan terminal command for outputing an ascii tree representation of the network.
//Bitburner script: https://github.com/bitburner-official/bitburner-src https://store.steampowered.com/app/1812820/Bitburner/
//Recursive scan terminal command for displaying an ascii art tree representation of the full network:
// rscan --detailed
// -------------------Network Tree-------------------|-|Balance|-|Hack Chance|-|Security LVL|-|Root?|
// home----------------------------------------------| $387.370m 99% 1% [X]
// ├─n00dles | $62.856k 99% 1% [X]
// │ ├─zer0------------------------------------------| $3.717m 75% 8% [X]
// │ │ ├─silver-helix | $20.868m 57% 11% [X]
// . . . . ... ... ... ...
// . . . . ... ... ... ...
@bglopez
bglopez / sentinel.mrc
Created December 20, 2022 22:01 — forked from EdGruberman/sentinel.mrc
mIRC TFC Server Management Script
on *:START:{ sentinel.load }
on *:EXIT:{ sentinel.unload }
on *:CONNECT:{ if ( $hget(sentinel.general,autoactivate) == 1 && $hget(sentinel.general.status,activated) != 1 ) sentinel.activate }
alias sentinel.load {
;--Load settings from ini file into hash tables
hmake sentinel.irc 5
hload -i sentinel.irc sentinel.ini irc
if ( $hget(sentinel.irc,admin) == $null ) hadd sentinel.irc admin #clan.private password
if ( $hget(sentinel.irc,tv) == $null ) hadd sentinel.irc tv #clan.tv
if ( $hget(sentinel.irc,monitor) == $null ) hadd sentinel.irc monitor #clan
@bglopez
bglopez / JSON_to_URL_encoded_form.py
Created September 29, 2022 00:38 — forked from aayla-secura/JSON_to_URL_encoded_form.py
Convert JSON data to URL encoded form (application/x-www-form-urlencoded)
#!/usr/bin/env python3
import json
from urllib.parse import quote, quote_plus
import sys
import os
import argparse
parser = argparse.ArgumentParser(
@bglopez
bglopez / ln-log.mk
Created March 15, 2022 14:01 — forked from thydel/ln-log.mk
Link log from deep to flat
top:; @date
log := find /space/log -name '*.log'
base := cut -d/ -f4-
apache-links := sed -e 's;\(.*\)/\(.*\);ln -f /space/log/\1/\2 /space/log2/\1_\2;'
php-links := sed -e 's;\(.*\)/php/\(.*\);ln -f /space/log/\1/\2 /space/log2/\1_php_\2;'
apache := $(log) | grep -v /php/ | $(base) | $(apache-links)
php := $(log) | grep /php/ | $(base) | $(php-links)
@bglopez
bglopez / build_sl-h.sh
Created February 22, 2022 04:15 — forked from eggplants/build_sl-h.sh
build sl-h (patched sl, created by: jsdfq43wtr)
#!/usr/bin/env bash
set -euo pipefail
set -x
# Ubuntu: apt update && apt install build-essential curl libncurses5-dev -y
# Mac: brew update && brew install curl gcc ncurses make
if ! command -v curl gcc make &> /dev/null; then
echo "require: build-essential curl libncurses5-dev" >&2
@bglopez
bglopez / fifo_set_queue.py
Created December 12, 2020 03:30 — forked from lewellent/fifo_set_queue.py
FIFO Set Queue for Redis (Python)
__author__ = "Todd Lewellen"
"""
The MIT License (MIT)
Copyright (c) 2014 Todd Lewellen
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights