Skip to content

Instantly share code, notes, and snippets.

View eugenehp's full-sized avatar
🔬
DeepTech, FinTech, BioTech, Robotics, SEO.

Eugene Hauptmann eugenehp

🔬
DeepTech, FinTech, BioTech, Robotics, SEO.
View GitHub Profile
@eugenehp
eugenehp / svg2png.sh
Created June 9, 2018 13:12
Convert SVG files to PNG files
for filename in *.svg; do
basename="${filename%.*}"
convert -density 1200 -resize 512x512 "$filename" "$basename".png
done
@eugenehp
eugenehp / index.js
Created January 22, 2018 06:28
How to insert million records via nodejs at maximum speed via pipe
const knex = require('knex')(knexConfig)
const csv = require('csv-parser')
const Transform = require('stream').Transform;
var fs = require('fs');
function importData(knex, Promise) {
return new Promise(function (resolve, reject){
fs.createReadStream('some-csv-file.csv')
.on('error', reject)
.pipe(csv())
@eugenehp
eugenehp / arch_vbox.md
Last active October 18, 2019 11:51 — forked from dannycastonguay/arch_vbox.md
Installing Arch Linux on VirtualBox for beginners

Installing Arch Linux on VirtualBox

I recently upgraded to a new system, and instead of running Arch Linux natively I've decided to run it inside VirtualBox on Windows 10. Below I note down the steps I took, which closely follow the excellent wiki pages of archlinux. But along the way, I also noted a few other steps steps I took to make this system very comfortable, which you'll have to figure out for yourself if you like them or not!

Mount Arch Linux on VirtualBox

I couldn't find a section on the Arch wiki where these steps are listed, perhaps they are obvious, but since I think I know what I'm doing I'm just going off script here (what a great start!).

  1. Start VirtualBox and click New
  2. Name your machine, preferably with a descriptive but memorable name (e.g., exultant carpenter), select type Linux, and version Arch Linux (64 bit) (unless you downloaded the 32 bit version. A note on this, I recall in the past that for some machi
@eugenehp
eugenehp / free_email_provider_domains.txt
Created January 14, 2018 06:26 — forked from tbrianjones/free_email_provider_domains.txt
A list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
1033edge.com
11mail.com
123.com
123box.net
123india.com
123mail.cl
123qwe.co.uk
150ml.com
15meg4free.com
163.com
@eugenehp
eugenehp / Good IOS RTSP Player.md
Created October 22, 2017 15:41 — forked from oc2pcoj/Good IOS RTSP Player.md
iOS RTSP player for IP video cameras
@eugenehp
eugenehp / react-native-maps-enable-google-maps-instructions.md
Created August 10, 2017 02:54 — forked from heron2014/react-native-maps-enable-google-maps-instructions.md
Visual instructions how to enable Google Maps on IOS using react-native-maps

Visual instructions how to enable Google Maps on IOS using react-native-maps

This is for my personal use, things might not be correctly explained here. For the official docs please check https://github.com/airbnb/react-native-maps

Steps from scratch:

1.react-native init GoogleMapPlayground

2. cd GoogleMapPlayground

@eugenehp
eugenehp / android_instructions.md
Last active July 9, 2017 22:40 — forked from patrickhammond/android_instructions.md
Easily setup an Android development environment on a Mac

Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.

Prerequisites (for Homebrew at a minimum, lots of other tools need these too):

  • XCode is installed (via the App Store)
  • XCode command line tools are installed (xcode-select --install will prompt up a dialog)
  • Java

Install Homebrew:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

@eugenehp
eugenehp / stuns
Created June 26, 2017 00:03 — forked from yetithefoot/stuns
STUN+TURN servers list
{url:'stun:stun01.sipphone.com'},
{url:'stun:stun.ekiga.net'},
{url:'stun:stun.fwdnet.net'},
{url:'stun:stun.ideasip.com'},
{url:'stun:stun.iptel.org'},
{url:'stun:stun.rixtelecom.se'},
{url:'stun:stun.schlund.de'},
{url:'stun:stun.l.google.com:19302'},
{url:'stun:stun1.l.google.com:19302'},
{url:'stun:stun2.l.google.com:19302'},
@eugenehp
eugenehp / appify
Created June 5, 2017 00:14 — forked from mathiasbynens/appify
appify — create the simplest possible Mac app from a shell script
#!/bin/bash
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
appify v3.0.1 for Mac OS X - http://mths.be/appify
Creates the simplest possible Mac app from a shell script.
Appify takes a shell script as its first argument:
`basename "$0"` my-script.sh
@eugenehp
eugenehp / gist:6214401301c957af30c8cf91f3b66841
Created February 21, 2017 02:56 — forked from Bouke/gist:11261620
Multiple Python installations on OS X

Previous versions used homebrew to install the various versions. As suggested in the comments, it's better to use pyenv instead. If you are looking for the previous version of this document, see the revision history.

$ brew update
$ brew install pyenv
$ pyenv install 3.5.0
$ pyenv install 3.4.3
$ pyenv install 3.3.6
$ pyenv install 3.2.6
$ pyenv install 2.7.10

$ pyenv install 2.6.9