Skip to content

Instantly share code, notes, and snippets.

View Benehiko's full-sized avatar
🏡

Alano Terblanche Benehiko

🏡
View GitHub Profile

Keybase proof

I hereby claim:

  • I am benehiko on github.
  • I am benehiko (https://keybase.io/benehiko) on keybase.
  • I have a public key ASBn7m5pRq7fWzkxmJdPGxBk2RJM8PPPjzZdpUvbSsZGjAo

To claim this, I am signing this object:

@Benehiko
Benehiko / codes.csv
Last active January 8, 2019 01:39
Phone number codes by country http://country.io/data/
phone_code country_code country_name
880 BD Bangladesh
32 BE Belgium
226 BF Burkina Faso
359 BG Bulgaria
387 BA Bosnia
387 BA Herzegovina
1246 BB Barbados
681 WF Wallis
681 WF Futuna
@Benehiko
Benehiko / ffmpeg-build.txt
Last active August 3, 2018 02:37
building ffmpeg for opencv - Specific case Ubuntu 16.04
# Similar ffmpeg issue https://github.com/opencv/opencv/issues/9794
# Generic Build: https://trac.ffmpeg.org/wiki/CompilationGuide/Generic
# Issues resolved:
# https://github.com/Homebrew/legacy-homebrew/issues/17004
# https://superuser.com/questions/1022116/ffmpeg-build-with-v4l2
cd ~/ffmpeg_source
./configure --enable-indev=v4l2 --enable-avresample
make all -j
sudo make install
@Benehiko
Benehiko / fix-gstreamer
Created August 2, 2018 18:33
gstreamer not found in opencv build Ubuntu 16
list=$(apt-cache --names-only search ^gstreamer1.0-* | awk '{ print $1 }' | grep -v gstreamer1.0-hybris)
sudo apt-get install $list
# https://github.com/mavlink/qgroundcontrol/issues/4303 Found this answer here
@Benehiko
Benehiko / arti-install.sh
Last active August 1, 2018 11:53
Install-Artifactory-Ubuntu16
# !/bin/sh
echo "deb https://jfrog.bintray.com/artifactory-debs xenial main" | sudo tee -a /etc/apt/sources.list
curl https://bintray.com/user/downloadSubjectPublicKey?username=jfrog | sudo apt-key add -
sudo apt-get update
sudo apt-get install jfrog-artifactory-oss
file ="/etc/systemd/system/artifactory-custom.service"
if [ -f $file]; then
var http = require('http');
let message = '';
http.createServer(function (request, response) {
var url = request.url;
var url = request.url;
switch (url) {
case '/unit':
message = 'Hello from FIT2095';
break;
@Benehiko
Benehiko / The Technical Interview Cheat Sheet.md
Created July 30, 2018 06:51 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@Benehiko
Benehiko / Expected-Output.txt
Created July 28, 2018 21:20
FIT2095-Lab1-Week2
2
[ 10, 20 ]
[ 20, 33 ]
true
false
1 2 - - - - 1 2
p¼ p¼ p¼ p¼ p¼ p¼ -
-
Tencent il RECONCILIATIONS OF IFRS TO NON-GAAP RESULTS Adjustments RMB in mi/”?fi, repoftid Share-based Net (gains)/losses from Amortisation of Impa.lir.ment Non-GAAP unless specified compensation (a) investee companies (b) intangible assets (c) provision (d) Unaudited three months ended March 31, 2018 Operating profit 30,692 1,632 (7,788) 100 636 25,272 Profit for the period 23,973 1,682 (7,765) 531 709 19,130 Profit attributable to equity holders 23,290 1,585 (7,766) 495 709 18,313 Operating margin 42% 34% Net margin 33% 26% Unaudited three months ended December 31, 2017 Operating profit 25,724 1,874 (6,281) 112 424 21,853 Profit for the period 21,622 2,146 (6,229) 474 358 18,371 Profit attributable to equity holders 20,797 2,084 (6,189) 442 320 17,454 Operating margin 39% 33% Net margin 33% 28% Unaudited three months ended March 31, 2017 Operating profit 19,272 1,339 (2,747) 153 503 18,520 Profit for the period 14,548 1,530 (2,717) 500 511 14,372 Profit attributable to equity holders 14,