Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Coding for food

Konstantin Ivanov bw2012

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

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
zhanwenchen / Install NVIDIA Driver and CUDA.md
Last active Apr 12, 2021 — forked from wangruohui/Install NVIDIA Driver and CUDA.md
Install NVIDIA CUDA 9.0 on Ubuntu 16.04.4 LTS
View Install NVIDIA Driver and CUDA.md
@lborg019
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
OpenCL
@bullda
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
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
iamnewton / bash-colors.md
Last active May 20, 2021
The entire table of ANSI color codes.
View bash-colors.md

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
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>
#else
#include <CL/cl.h>
#endif
int main() {
@hi2p-perim
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>
#endif
@digitaljhelms
digitaljhelms / gist:4287848
Last active Jun 17, 2021
Git/GitHub branching standards & conventions
View gist:4287848

Branching

Quick Legend

Instance Branch Description, Instructions, Notes