Skip to content

Instantly share code, notes, and snippets.

@ChrisTollefson
ChrisTollefson / Boot Camp Assistant - USB Install Disk.md
Last active April 6, 2024 16:06
Boot Camp Assistant - Enabling creation of bootable USB disks for installing Windows
@graninas
graninas / cpp_stm_free_tutorial.md
Last active March 21, 2024 10:51
Software Transactional Memory in C++: Pure Functional Approach (tutorial)

Software Transactional Memory in C++: pure functional approach (Tutorial)

In this article I’ll tell you about my pure functional library for Software Transactional Memory (STM) that I’ve built in C++. I adopted some advanced functional programming concepts that make it composable and convenient to use. Its implementation is rather small and robust, which differentiates the library from competitors. Let’s discuss what STM is and how to use it.

@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
@seanjensengrey
seanjensengrey / octal_x86.txt
Created April 1, 2018 16:28
x86 is an octal machine
# source:http://reocities.com/SiliconValley/heights/7052/opcode.txt
From: mark@omnifest.uwm.edu (Mark Hopkins)
Newsgroups: alt.lang.asm
Subject: A Summary of the 80486 Opcodes and Instructions
(1) The 80x86 is an Octal Machine
This is a follow-up and revision of an article posted in alt.lang.asm on
7-5-92 concerning the 80x86 instruction encoding.
The only proper way to understand 80x86 coding is to realize that ALL 80x86
@pmttavara
pmttavara / defer.hpp
Created March 25, 2018 07:27
The definitive defer implementation for C++. Syntax: defer { statements; };
#ifndef defer
struct defer_dummy {};
template <class F> struct deferrer { F f; ~deferrer() { f(); } };
template <class F> deferrer<F> operator*(defer_dummy, F f) { return {f}; }
#define DEFER_(LINE) zz_defer##LINE
#define DEFER(LINE) DEFER_(LINE)
#define defer auto DEFER(__LINE__) = defer_dummy{} *[&]()
#endif // defer
# Latest available updates for Windows 10 RTM / version 1507 #
32-bit (x86)
Servicing Stack Update
https://www.catalog.update.microsoft.com/Search.aspx?q=servicing+stack+1507
click on "Last Updated" column to sort by newest update
Cumulative Update for Enterprise 2015 LTSB
https://www.catalog.update.microsoft.com/Search.aspx?q=cumulative+1507
@bkaradzic
bkaradzic / orthodoxc++.md
Last active April 23, 2024 13:59
Orthodox C++

Orthodox C++

What is Orthodox C++?

Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.

Why not Modern C++?

@xvitaly
xvitaly / remove_crw.cmd
Last active March 16, 2024 16:12
Remove telemetry updates for Windows 7 and 8.1
@echo off
echo Uninstalling KB3075249 (telemetry for Win7/8.1)
start /w wusa.exe /uninstall /kb:3075249 /quiet /norestart
echo Uninstalling KB3080149 (telemetry for Win7/8.1)
start /w wusa.exe /uninstall /kb:3080149 /quiet /norestart
echo Uninstalling KB3021917 (telemetry for Win7)
start /w wusa.exe /uninstall /kb:3021917 /quiet /norestart
echo Uninstalling KB3022345 (telemetry)
start /w wusa.exe /uninstall /kb:3022345 /quiet /norestart
echo Uninstalling KB3068708 (telemetry)

Simple Security Guidelines

Using an iDevice? (Best option)

  • Use an iPod or an iPad without a SIM card
  • Use an iPhone
  • Do not jailbreak
  • Always upgrade to new iOS versions
  • Use Brave browser

Need Secure chat?