Skip to content

Instantly share code, notes, and snippets.

View Benehiko's full-sized avatar
🏡

Alano Terblanche Benehiko

🏡
View GitHub Profile
@Benehiko
Benehiko / 15000691526464720.txt
Created July 25, 2018 22:08
Pdf to text with Tesseract and ImageMagick
Page 1
Tencent &t
For Immediate Release
TENCENT ANNOUNCES 2018 FIRST QUARTER RESULTS
Hong Kong, May 16, 2018 — Tencent Holdings Limited (“Tencent” or the “Company”, 00700.HK), a leading provider
of Internet value added services in China, today announced the unaudited consolidated results for the first quarter
of 2018 (“1Q2018”).
@Benehiko
Benehiko / build.xml
Created April 4, 2018 23:54
Compile dependencies into a fat jar
<target name="package-for-store" depends="jar">
<property name="store.jar.name" value="myProject"/> <!--CHANGE VALUE TO PROJECT NAME-->
<property name="store.dir" value="store"/>
<property name="store.jar" value="${store.dir}/${store.jar.name}.jar"/>
<echo message="Packaging ${application.title} into a single JAR at ${store.jar}"/>
<delete dir="${store.dir}"/>
<mkdir dir="${store.dir}"/>
<jar destfile="${store.dir}/temp_final.jar" filesetmanifest="skip">
<zipgroupfileset dir="dist" includes="*.jar"/>
@Benehiko
Benehiko / clone-branch.sh
Created March 15, 2018 15:38
Clone branch bash script
#!/bin/bash
#Simple script to pull compiled jar and lib
echo "Enter github repository URL"
read $github
echo "Enter branch to clone"
read $branch
git clone -b $branch --single-branch $github
echo "Fetched compiled jar and lib"
@Benehiko
Benehiko / tesseract-ocr-autobuild.sh
Created March 14, 2018 17:14
Tesseract auto build tool
#!/bin/sh
#This script is just for the python tesseract-ocr wrapper
#First install all pre-requisits
sudo apt-get install g++ # or clang++ (presumably)
sudo apt-get install autoconf automake libtool
sudo apt-get install autoconf-archive
sudo apt-get install pkg-config
sudo apt-get install libpng-dev
sudo apt-get install libjpeg8-dev
@Benehiko
Benehiko / Windows10_virt-manager.xml
Created February 18, 2018 13:17
My Windows10 Virt-manager XML dump
<domain type='kvm' id='2'>
<name>windows</name>
<uuid>c4fb436e-3a76-4975-960f-dfb50e6d915b</uuid>
<memory unit='KiB'>8388608</memory>
<currentMemory unit='KiB'>8388608</currentMemory>
<vcpu placement='static'>8</vcpu>
<cputune>
<vcpupin vcpu='0' cpuset='2'/>
<vcpupin vcpu='1' cpuset='6'/>
<vcpupin vcpu='2' cpuset='3'/>
@Benehiko
Benehiko / start-shotcut.sh
Created February 18, 2018 13:04
Shotcut video editor small Text UI Bug Fix
#!/bin/sh
#Add this file to Shotcut.app folder
QT_AUTO_SCREEN_SCALE_FACTOR=0 ./shotcut