Skip to content

Instantly share code, notes, and snippets.

View DiracSpace's full-sized avatar
:shipit:
Hacking the world, one 0x41414141 at a time

Roberto de León DiracSpace

:shipit:
Hacking the world, one 0x41414141 at a time
  • Asterias Software Solutions
  • San Luis Potosi
  • X @0x0302
View GitHub Profile
@shifterbit
shifterbit / ssf2linux.md
Last active June 20, 2025 02:34
Installing Super Smash Flash 2 on Linux/Steam Deck

RUNNING DIRECTLY THROUGH STEAM(EASIEST METHOD)

Downloading and Extracting SSF2

If you use a 64 bit System(Steam Deck Users, Desktop Linux Users), Make sure you the Windows 64-bit portable version of Super Smash Flash 2 downloaded and extracted into its own folder.

  • If you use a 32-bit System, Make sure you the Windows 32-bit portable version of Super Smash Flash 2 downloaded
  • Extract The portable version into a folder somewhere.

Adding SSF2 to Steam

Click Add a Game at the bottom left corner of the steam window

image

@andygeorge
andygeorge / steamdeck_ssh_instructions.md
Last active February 15, 2026 04:53
Steam Deck `ssh` instructions

These are manual instructions on enabling SSH access on your Steam Deck, adding public key authentication, and removing the need for a sudo password for the main user (deck).

This gist assumes the following:

  • you have a Steam Deck
  • you have a home PC with access to a Linux shell that can ssh, ssh-keygen, and ssh-copy-id
  • your Steam Deck and home PC are on the same local network, with standard SSH traffic (tcp/22) allowed over that network from the PC to the Steam Deck

NOTE: @crackelf on reddit mentions that steamOS updates blow away everything other than /home, which may have the following effects:

  • removing the systemd config for sshd.service, which would prevent the service from automatically starting on boot
  • removing the sudoers.d config, which would reenable passwords for sudo
@gtirloni
gtirloni / wsl-luks.md
Created May 2, 2022 12:44
Windows WSL2 and LUKS

If you have a LUKS-encrypted partition on another disk, it's easy to mount it inside WSL.

List your disks:

> wmic diskdrive list brief

Mount the whole disk inside WSL (using --bare so WSL doesn't attempt to mount it automatically):

@aspose-com-kb
aspose-com-kb / Send Email Using Gmail SMTP C#.cs
Last active August 16, 2021 21:44
Send Mail Using SMTP Server in C#. Send Email Using Gmail SMTP C#. See Details: https://kb.aspose.com/email/net/how-to-send-email-in-c-sharp/
using System;
//Add Aspose.Email for .NET package reference
//Use following namespaces to convert OTG to PDF format
using Aspose.Email;
using Aspose.Email.Clients;
using Aspose.Email.Clients.Smtp;
namespace SendEmailUsingSMTPServer
{
# USE THIS SCRIPT TO UPLOAD LARGE .PBIX FILES TO POWER BI REPORT SERVER
#
# I needed to manually construct the form-data as PowerShell doesn't appear to have full support for
# this yet, though it appears to be coming soon.
#CREDENTIALS
[string]$userName = 'BIWIN\MS'
[string]$userPassword = 'xxxxxxxxxxxxx'
[securestring]$secStringPassword = ConvertTo-SecureString $userPassword -AsPlainText -Force
$Credential = New-Object System.Management.Automation.PSCredential ($userName, $secStringPassword)
@jongalloway
jongalloway / markdown-image-with-link.md
Last active March 26, 2021 02:55
Markdown image with link sample
@theodorosploumis
theodorosploumis / Nework_throttling_profiles.md
Last active January 27, 2026 12:53
Web development - Custom network throttling profiles
Profile download (kb/s) upload (kb/s) latency (ms)
Native 0 0 0
GPRS 50 20 500
56K Dial-up 50 30 120
Mobile EDGE 240 200 840
2G Regular 250 50 300
2G Good 450 150 150
3G Slow 780 330 200
@taxilian
taxilian / README.md
Created November 9, 2019 22:13
Mongodb scripts for incremental backup

Introduction

I can't take credit for much of the work here -- I adapted it from this blog post: https://tech.willhaben.at/mongodb-incremental-backups-dff4c8f54d58

My main contribution was to make it a little easier to use with docker as well as numerous little cleanup tasks. I also made it gzip the oplog backups and added support for SSL connections

Note that I havne't yet tested the point in time restore script; it likely needs work, particularly to make things work with the gzipped oplog files

/**
* Converts an ArrayBuffer to a String.
*
* @param buffer - Buffer to convert.
* @returns String.
*/
export default function arrayBufferToString(buffer: ArrayBuffer): string {
return String.fromCharCode.apply(null, Array.from(new Uint16Array(buffer)));
}
@anscharivs
anscharivs / abbHaskell.hs
Last active June 5, 2024 22:29
Árbol Binario de búsqueda en Haskell. Operaciones: crea un árbol a partir de una lista, inserta nodos a un árbol, búsqueda de un nodo, mostrar número de nodos, mostrar número de hojas, mostrar altura del árbol y recorridos preorden, inorden y postorden.
-- Estructura del árbol
data Abb a = Vacio | Nodo a (Abb a) (Abb a) deriving (Show)
-- Insertar un nuevo nodo a un árbol definido
-- insertarNodo (Valor a insertar) (Árbol)
insertarNodo :: (Ord a) => a -> Abb a -> Abb a
insertarNodo nuevo Vacio = Nodo nuevo Vacio Vacio
insertarNodo nuevo (Nodo a izq der)
| nuevo <= a = Nodo a (insertarNodo nuevo izq) der
| nuevo > a = Nodo a izq (insertarNodo nuevo der)