Skip to content

Instantly share code, notes, and snippets.

View OliverLeitner's full-sized avatar
💭
actually delivering

Oliver Leitner OliverLeitner

💭
actually delivering
  • -
  • Salzburg | Austria
View GitHub Profile
@brunocastello
brunocastello / WinXP.sh
Last active December 2, 2022 20:31
Run Windows XP SP3 with QEMU-3Dfx
#!/bin/sh
qemu-3dfx/bin/qemu-system-i386 \
-name "Windows 2002 Professional" \
-L pc-bios -nodefaults -no-hpet -no-reboot -display sdl \
-M pc,accel=tcg -cpu qemu32 -m 1024 \
-drive id=root,format=raw,file=Disks/WinXP.img \
-drive id=drive1,media=cdrom \
-device VGA -device sb16 -device rtl8139,netdev=net0 \
-netdev user,id=net0,hostfwd=tcp::8080-:80,hostfwd=tcp::2222-:22 \
-rtc base=localtime,clock=host -boot c
@jfeilbach
jfeilbach / sysctl.conf.md
Last active May 1, 2024 16:44
10/40 Gb NIC Linux Kernel Performance Tuning for samba file server

TCP tuning

The most important TCP tuning areas since kernel 4.9 are:

  • packet pacing
  • dynamic TSO sizing
  • TCP small queues
  • BBR TCP congestion algorithm

Definitions

  • Gb = gigabit
@JoeyBurzynski
JoeyBurzynski / sysctl.conf
Created December 11, 2019 07:13
sysctl.conf Optimization / Ubuntu 18.04
# Kernel sysctl configuration file for Linux
#
# Version 1.14 - 2019-04-05
# Michiel Klaver - IT Professional
# http://klaver.it/linux/ for the latest version - http://klaver.it/bsd/ for a BSD variant
#
# This file should be saved as /etc/sysctl.conf and can be activated using the command:
# sysctl -e -p /etc/sysctl.conf
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and sysctl.conf(5) for more details.
@TomFaulkner
TomFaulkner / ubuntu18.04-vfio.md
Last active February 3, 2024 15:28
VFIO Setup on Ubuntu 18.04
@mikroskeem
mikroskeem / qemu.sh
Last active February 28, 2024 14:22
Intel GVT (vGPU) and QEMU example
#!/bin/bash -e
# https://www.kraxel.org/blog/2018/04/vgpu-display-support-finally-merged-upstream/
# You should set up your system as following:
# 1) Add 'i915.enable_gvt=1 intel_iommu=on iommu=pt' to boot arguments
# 1.1) If you get Windows guest working somehow, then add 'kvm.ignore_msrs=1' to avoid guest BSOD-ing
# (Windows does weird stuff).
# 2) `MODULES=(kvm kvmgt i915)` in /etc/mkinitcpio.conf
# 3) `echo -e "options i915 enable_gvt=1\nsoftdep i915 pre: kvmgt" > /etc/modprobe.d/20-kvmgt.conf` for sure
@extremecoders-re
extremecoders-re / qemu-networking.md
Last active May 4, 2024 05:55
Setting up Qemu with a tap interface

Setting up Qemu with a tap interface

There are two parts to networking within QEMU:

  • The virtual network device that is provided to the guest (e.g. a PCI network card).
  • The network backend that interacts with the emulated NIC (e.g. puts packets onto the host's network).

Example: User mode network

@praveenpuglia
praveenpuglia / shadow-dom.md
Last active March 28, 2024 15:06
Everything you need to know about Shadow DOM

I am moving this gist to a github repo so more people can contribute to it. Also, it makes it easier for me to version control.

Please go to - https://github.com/praveenpuglia/shadow-dom-in-depth for latest version of this document. Also, if you find the document useful, please shower your love, go ⭐️ it. :)

Shadow DOM

Heads Up! It's all about the V1 Spec.

In a nutshell, Shadow DOM enables local scoping for HTML & CSS.

@nikneroz
nikneroz / Guardian JWT.md
Last active October 10, 2023 19:13
Elixir + Phoenix Framework + Guardian + JWT. This is tutorial and step by step installation guide.

Elixir + Phoenix Framework + Guardian + JWT + Comeonin

Preparing environment

We need to generate secret key for development environment.

mix phoenix.gen.secret
# ednkXywWll1d2svDEpbA39R5kfkc9l96j0+u7A8MgKM+pbwbeDsuYB8MP2WUW1hf

Let's generate User model and controller.

@laobubu
laobubu / ABOUT.md
Last active May 7, 2024 18:37
A very simple HTTP server in C, for Unix, using fork()

Pico HTTP Server in C

This is a very simple HTTP server for Unix, using fork(). It's very easy to use

How to use

  1. include header httpd.h
  2. write your route method, handling requests.
  3. call serve_forever("12913") to start serving on port 12913