Skip to content

Instantly share code, notes, and snippets.

View NuLL3rr0r's full-sized avatar
๐Ÿ’ญ
I may be slow to respond.

Mamadou Babaei NuLL3rr0r

๐Ÿ’ญ
I may be slow to respond.
View GitHub Profile
@plembo
plembo / vmwp-no3d-avail.md
Last active November 3, 2025 14:10
VMware Player: No 3d support available from the host

VMware Player: "No 3d support is available from the host"

NOTE: I no longer use VMware products, and on good authority this trick no longer works (see comments below).

Facts: VMware Player on Ubuntu 18.04 LTS with the standard Gnome desktop running an AMD WX-2100 graphics card. Both glxinfo and glxgears show 3d acceleration is enabled and working on the host. In addition to VMware Player, the host is also running the qemu-kvm/libvirtd stack from Ubuntu's official repositories. My use case for 3d accelerated graphics in a Windows guest is to occasionally play a Windows-only game.

Issue: Player barks this warning during installation of... anything.

Solution: This

@Brandawg93
Brandawg93 / google_login.ts
Last active November 6, 2025 04:08
Login to Google Account via Puppeteer
import puppeteer from 'puppeteer-extra';
import pluginStealth from 'puppeteer-extra-plugin-stealth'; // Use v2.4.5 instead of latest
import * as readline from 'readline';
puppeteer.use(pluginStealth());
// Use '-h' arg for headful login.
const headless = !process.argv.includes('-h');
// Prompt user for email and password.
@reanimat0r
reanimat0r / geoip2lookup.bash
Created May 10, 2020 09:51 — forked from bmatthewshea/geoip2lookup.bash
BASH GeoIP Lookup script for use with new Maxmind MMDB database files
#!/bin/bash
#
# By: Brady Shea - 10FEB2020
#
# Usage (ip4 only):
# geoip2lookup IP_ADDRESS
#
# ** Install GeoIP Tool and Updater **
#
# sudo add-apt-repository ppa:maxmind/ppa
@kongkrit
kongkrit / void-install.md
Created May 9, 2020 13:06
void linux installation on zfs root

Void Linux Root on ZFS Installation - glibc version

Part 1: Create a ZFS-Capable Installation

Create a void installation medium with ZFS (either a virtual hard disk or a USB stick)

Download ISO from here

  • choose void-live-x86_64-YYYYMMDD.iso - as of this writing (2020-03-20) the newest one is void-live-x86_64-20191109.iso
  • tested on VirtualBox 6.1 with the folllowing parameters:
    • system: chipset: ICH9, enable EFI, RAM: 2GB, 2 CPUs, enable nested VT-x/AMD-V
    • 3 SATA hard disks hanging of AHCI controller - 2 for mirror and the other 10GB for temp installation
    • IDE-CD-Rom on IDE PIIX4 controller.
@fundon
fundon / smol-hello.rs
Last active January 23, 2024 08:34
smol 16threads vs tokio 16threads
//! An HTTP server based on `hyper`.
//!
//! Run with:
//!
//! ```
//! cargo run --example hyper-server
//! ```
//!
//! Open in the browser any of these addresses:
//!
@Trass3r
Trass3r / dll2lib.bat
Last active August 25, 2024 04:17
generate import library from a dll
@echo off
REM Usage: dll2lib [32|64] some-file.dll
REM
REM Generates some-file.lib from some-file.dll, making an intermediate
REM some-file.def from the results of dumpbin /exports some-file.dll.
REM
REM Requires 'dumpbin' and 'lib' in PATH - run from VS developer prompt.
REM
REM Script inspired by http://stackoverflow.com/questions/9946322/how-to-generate-an-import-library-lib-file-from-a-dll
@sigwinch28
sigwinch28 / INSTALL.md
Created February 27, 2020 03:06
Installing FreeBSD using a separate boot device (SD card for booting SSD in ODD bay on HP Microserver, for example)

Assumptions

  1. You will be using the FreeBSD installer's automatic ZFS partitioning scheme
  2. Your boot filesystem is zfs:zroot/ROOT/default (the default with the installer)
  3. Your SD card is device da0

Instructions

@gamerxl
gamerxl / ue4-json-parsing.cpp
Last active January 27, 2025 08:24
How to parse a json response (e.g. a json array) in ue4 c++ context.
/**
* Include the PrivateDependencyModuleNames entries below in your project build target configuration:
* PrivateDependencyModuleNames.AddRange(new string[] { "Json", "JsonUtilities" });
*/
#include "Runtime/Online/HTTP/Public/Http.h"
#include "Serialization/JsonSerializer.h"
FHttpResponsePtr Response;
@oskar456
oskar456 / wgcf.py
Last active September 27, 2025 02:47
Cloudflare WARP linux client (using wg-quick for actual tunnel setup)
#!/usr/bin/env python3
import subprocess
import json
import os
from pathlib import Path
import requests
from requests.compat import urljoin
@tanaikech
tanaikech / submit.md
Created July 23, 2019 06:31
Resumable Uploading Files to Google Drive using Golang

Resumable Uploading Files to Google Drive using Golang

This is a sample script for the resumable upload of Files to Google Drive using Golang. This script uses the library of google-api-go-client. About the installation of google-api-go-client, please check the Quickstart for golang at the official site.

Sample script:

package main

import (