Skip to content

Instantly share code, notes, and snippets.

@Erfan-Ahmadi
Erfan-Ahmadi / Bokeh-DOF
Last active March 13, 2024 16:44
Bokeh Depth Of Field Resources
GPU Gems 1 - Chapter 23. Depth of Field: A Survey of Techniques
GPU Gems 2
GPU Gems 3 - Chapter 28. Practical Post-Process Depth of Field
GPU Pro 1 - Realistic Depth of Field in Post-Production
GPU Pro 2 - Post-Proccessing Effects on Mobile Devices
GPU Pro 3 -
GPU Pro 4 - Images Space -> First Two Chapters
GPU Pro 5 - 241 - Bokeh Effects on The SPU
GPU Pro 6 -
@dgoguerra
dgoguerra / opengl-ubuntu-ec2-install.md
Last active September 11, 2020 13:27
Set up OpenGL on a Ubuntu 16.04 g2.2xlarge EC2 machine (following https://stackoverflow.com/q/19856192)

Steps from https://stackoverflow.com/q/19856192 with minor changes to work on Ubuntu 16.04.

# Install the Nvidia driver
sudo apt-add-repository ppa:ubuntu-x-swat/updates
sudo apt-get update
sudo apt-get install nvidia-current

# Driver installation needs reboot
sudo reboot now
@mochja
mochja / main.c
Last active September 25, 2023 15:08
Yoga + OpenGL Example
#include <GLFW/glfw3.h>
#include <yoga/Yoga.h>
#include <stdlib.h>
int main(void)
{
GLFWwindow* window;
/* Initialize the library */
if (!glfwInit())
@nathancorvussolis
nathancorvussolis / wix-bootstrap-download-vcredist-sample.wxs
Last active April 22, 2024 15:29
Visual C++ 2015-2022 Redistributable - 14.36.32532
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Bundle
Name="Example Product"
Version="1.2.3.4"
Manufacturer="John Doe"
Copyright="© 2023 John Doe"
@takashyx
takashyx / Cout2VisualStudioDebugOutput.h
Last active June 23, 2022 05:15
Redirect std::cout to Visual Studio Debug Output
#pragma once
#include <iostream>
#include <Windows.h>
class debugStreambuf : public std::streambuf {
public:
virtual int_type overflow(int_type c = EOF) {
if (c != EOF) {
@kimus
kimus / ufw.md
Created March 2, 2014 22:46
NAT and FORWARD with Ubuntu’s ufw firewall

UFW

I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.

Install UFW

if ufw is not installed by default be sure to install it first.