Skip to content

Instantly share code, notes, and snippets.

View darkguy2008's full-sized avatar

Alemar darkguy2008

View GitHub Profile
@yosefd
yosefd / httpoverpipe
Created June 27, 2012 11:49
http over named pipe sample
var http = require('http');
var port = '\\\\.\\pipe\\nameofthepipe';
http.createServer(function (req, res) {
console.info('request received');
res.end('gotyou');
}).listen(port);
console.info('listening on:', port);
using System;
using System.Globalization;
using System.Net;
using System.Security.Cryptography;
using System.Text;
public class GoogleAuthenticator
{
const int IntervalLength = 30;
const int PinLength = 6;
@McFunkypants
McFunkypants / FlyCamera.cs
Created November 7, 2014 21:59
New Script FlyCamera add to any camera obj: instant unity editor style wasd rightclick debug cam
using UnityEngine;
using System.Collections;
public class FlyCamera : MonoBehaviour {
/*
Writen by Windexglow 11-13-10. Use it, edit it, steal it I don't care.
Converted to C# 27-02-13 - no credit wanted.
Simple flycam I made, since I couldn't find any others made public.
Made simple to use (drag and drop, done) for regular keyboard layout
@foxlet
foxlet / setup.md
Last active April 23, 2023 09:08
macOS Installation Media Guide (Windows)

Download macOS

  1. Get FetchMacOS and place it in a known folder.

  2. Open Command Prompt and use cd to go to the known folder.

  3. Run fetch-macos.exe -p PRODUCTID -o SharedSupport where PRODUCTID is the macOS package you want to download.

Edit Downloaded Files

  1. Rename InstallESDDmg.pkg inside the SharedSupport folder to InstallESD.dmg
wget -O /tmp/YaHei.Consolas.1.12.zip https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/uigroupcode/YaHei.Consolas.1.12.zip
unzip /tmp/YaHei.Consolas.1.12.zip
sudo mkdir -p /usr/share/fonts/consolas
sudo mv YaHei.Consolas.1.12.ttf /usr/share/fonts/consolas/
sudo chmod 644 /usr/share/fonts/consolas/YaHei.Consolas.1.12.ttf
cd /usr/share/fonts/consolas
sudo mkfontscale && sudo mkfontdir && sudo fc-cache -fv
@smoser
smoser / README.md
Last active June 1, 2024 09:44
qemu to linux mapping of smbios / dmi information

Mappings for DMI/SMBIOS to Linux and dmidecode

Information can be put into dmi tables via some qemu-system hosts (x86_64 and aarch64). That information is exposed in Linux under /sys/class/dmi/id and can be read with dmidecode. The names are very annoyingly inconsistent. The point of this doc is to map them.

Mappings

Example qemu cmdline:

qemu-system-x86_64 -smbios type=<type>,field=value[,...]

qemu-system-x86_64 -smbios type=0,vendor=superco,version=1.2.3
@ruanbekker
ruanbekker / 0_drone_minio_gitea_local.md
Last active November 29, 2023 23:06
Drone, Minio, Gitea, Sqlite on Docker Compose
  • docker-compose.yml
version: '3.6'

services:
  minio:
    image: minio/minio:RELEASE.2020-01-03T19-12-21Z
    container_name: minio
    volumes:
@midi1996
midi1996 / README.md
Last active May 3, 2024 22:26
M2000M passthrough experiences.

I've seen people passing their laptop dGPUs yet I haven't been successful because of a lot of reasons, mainly extracting the vbios (that somehow some laptop users can do but I cannot, and I wasn't the only one) and having it UEFI (mine wasn't which is weird as it's a SKL laptop) and they said that some Muxed laptops are easy to deal with. And after a while with the help of some people in the hackintosh discord server, we made an even larger layout list of display outputs we stumbled upon while helping some new users with their laptops (thanks /u/dhinakg):

dGPU Laptop setups

My laptop (Thinkpad P50) happened to be something like the Macbooks where there is a mux between the iGPU and dGPU to the eDP (this has been confirmed with my laptop's schematics).

Great! So you can just pass the dGPU and see stuff on either the display

@cfebs
cfebs / windows_update_powershell.md
Last active June 11, 2024 14:41
Windows update powershell cli (PSWindowsUpdate, Get-WindowsUpdate)