Skip to content

Instantly share code, notes, and snippets.

Coding for food

Konstantin Ivanov bw2012

Coding for food
View GitHub Profile
jlblancoc /
Last active May 29, 2021
Installing gcc-7 & g++-7 in Ubuntu 16.04LTS Xenial

Run the following in the terminal:

Install the gcc-7 packages:

sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install g++-7 -y

Set it up so the symbolic links gcc, g++ point to the newer version:

zhanwenchen / Install NVIDIA Driver and
Last active Apr 12, 2021 — forked from wangruohui/Install NVIDIA Driver and
Install NVIDIA CUDA 9.0 on Ubuntu 16.04.4 LTS
View Install NVIDIA Driver and
lborg019 / codevr.Build.cs
Last active Nov 13, 2020
Boost library in Unreal
View codevr.Build.cs
// Fill out your copyright notice in the Description page of Project Settings.
using System;
using System.IO;
using UnrealBuildTool;
public class codevr : ModuleRules
public codevr(ReadOnlyTargetRules Target) : base(Target)
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
View amdgpupro_in_container.bash
#!/bin/bash -e
ln -s /usr/lib/x86_64-linux-gnu/amdgpu-pro .
ln -s /etc/OpenCL .
tar -czvf libs.tar.gz amdgpu-pro/*
tar -czvf conf.tar.gz OpenCL/*
cat > .dockerignore << EOF
bullda / xcarchive2ipa
Created Dec 23, 2015
How to convert .xcarchive to .ipa
View xcarchive2ipa
xcodebuild -exportArchive -exportFormat ipa -archivePath {PATH}/MyApp.xcarchive -exportPath ~/Desktop/MyApp.ipa
tailriver / dlopen_sample.c
Created Nov 18, 2015
A sample of using dlopen library.
View dlopen_sample.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dlfcn.h>
int main(int argc, char** argv)
void *handle;
void (*func_print_name)(const char*);
iamnewton /
Last active May 20, 2021
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
courtneyfaulkner / devices.c
Created Dec 11, 2013
List OpenCL platforms and devices
View devices.c
#include <stdio.h>
#include <stdlib.h>
#ifdef __APPLE__
#include <OpenCL/opencl.h>
#include <CL/cl.h>
int main() {
hi2p-perim / ssecheck.cpp
Last active May 22, 2021
Check SSE/AVX instruction support.
View ssecheck.cpp
Check SSE/AVX support.
This application can detect the instruction support of
SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, SSE4a, SSE5, and AVX.
#include <iostream>
#ifdef _MSC_VER
#include <intrin.h>
digitaljhelms / gist:4287848
Last active Jun 17, 2021
Git/GitHub branching standards & conventions
View gist:4287848


Quick Legend

Instance Branch Description, Instructions, Notes