Skip to content

Instantly share code, notes, and snippets.

View boboben1's full-sized avatar
🏠
Working from home

Ben boboben1

🏠
Working from home
  • Brecher Trading, LLC
View GitHub Profile
@boboben1
boboben1 / CMakeLists.txt
Created December 11, 2018 21:05
My CMakeLists.txt
cmake_minimum_required(VERSION 3.1)
project(testproj VERSION 0.1.0)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED 17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
@boboben1
boboben1 / cloudSettings
Last active October 31, 2018 17:07
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-10-31T17:02:56.989Z","extensionVersion":"v3.2.0"}
@boboben1
boboben1 / material.module.ts
Created October 14, 2018 20:43
Import All Angular Material in Angular 6
import { NgModule } from '@angular/core';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import {
MatCheckboxModule,
MatButtonModule,
MatInputModule,
MatAutocompleteModule,
MatDatepickerModule,
MatFormFieldModule,
@boboben1
boboben1 / cloudSettings
Created October 12, 2018 19:31
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-10-12T19:31:21.098Z","extensionVersion":"v3.1.2"}
@boboben1
boboben1 / .babelrc
Last active August 13, 2018 16:39
Gulp Bootstrap
{
"presets": [
["env", {
"targets": {
"node": true
},
"useBuiltIns": true
}]
]
}
@boboben1
boboben1 / gulpfile.js
Created July 25, 2018 20:09
Browserify Gulp
'use strict';
var browserify = require('browserify');
var gulp = require('gulp');
var tsify = require('tsify');
var source = require('vinyl-source-stream');
var es = require('event-stream');
var rename = require('gulp-rename');
var buffer = require('vinyl-buffer');
var uglify = require('gulp-uglify');
@boboben1
boboben1 / install_ffmpeg_libfdkaac.sh
Last active December 20, 2017 01:07 — forked from rafaelbiriba/install_ffmpeg_libfdkaac.sh
Install FFmpeg with libfdk_aac support (For Ubuntu)
# Criando um script .sh para executar todos os comandos:
#root@servidor:~# vi script.sh
#root@servidor:~# chmod +x script.sh
#root@servidor:~# ./script.sh
apt-get update
apt-get -y install autoconf automake build-essential git-core libass-dev libgpac-dev libsdl1.2-dev libtheora-dev libtool libvdpau-dev libvorbis-dev libx11-dev libxext-dev libxfixes-dev pkg-config texi2html zlib1g-dev libmp3lame-dev nasm gcc yasm && true
mkdir ~/ffmpeg_sources
cd ~/ffmpeg_sources
git clone --depth 1 git://github.com/mstorsjo/fdk-aac.git
@boboben1
boboben1 / NVIDIA Drivers and Color Fix.md
Last active September 3, 2017 16:07
NVIDIA Drivers and Color Fix

Wiping and Updating Drivers:

Try upgrading your graphics drivers. http://www.nvidia.com/download/driverResults.aspx/123225/en-us Is the most updated drivers for GTX 960 as of 9/3/2017 for Windows 7 64bit

Before updating I would recommend running DDU to remove all old drivers as they can cause issues. https://www.guru3d.com/files-details/display-driver-uninstaller-download.html

  1. Download graphics drivers and install to desktop. Do not run it yet
  2. Extract DDU to desktop and navigate to the folder created then run the executable. It will ask if you wish to restart to safe mode. Say yes to this prompt.
@boboben1
boboben1 / Observer.cpp
Last active December 2, 2017 19:10
Observer Library
//TESTS NOT NEEDED
#include "Observer.h"
//Create Events
class TestEvent : public Observer::Event<TestEvent>
{
public:
int data = 123;
};