Skip to content

Instantly share code, notes, and snippets.

View romualdr's full-sized avatar
🎩
work@romuald.io

Romuald R. romualdr

🎩
work@romuald.io
View GitHub Profile
@romualdr
romualdr / docker-compose.yml
Last active January 13, 2020 00:14
About my first few hours with Traefik 2.0 ... feedback explained with code
version: "3.3"
services:
###
### So, new project, new versions, you know the drill
### Today we summon Traefik 2 - which will make you wanna basically cry
### This intro is pretty long but REALLY important for the gotcha's explained later
###
### Multiple painpoints exposed here
@romualdr
romualdr / trainer.js
Last active November 12, 2019 01:22
DevShop trainer - apply before clicking on "start"
clearInterval(window.cheatInterval)
window._getNewPerson = getNewPerson
window._go = go
window._applyItem = applyItem
;(function () {
function everyOneIsAwesome() {
Object.values(game.People).forEach((person) => {
person.keyboardLevel = 100
person.seatLevel = 100

Fabrice Bellard is an awesome guy. He made a JS engine Quick JS which looks awesome ...

... but doesn't compile on Mac OS Mojave if you have XCode 10 and fails with this error

ld: symbol(s) not found for architecture i386

Here is how to solve the issue and make it compile

@romualdr
romualdr / date-from-time-unit.filter.js
Created December 6, 2016 10:45
Angular filter to transform a time unit to a date
(function() {
'use strict';
angular
.module('myApp')
.filter('DateFromTimeUnit', DateFromTimeUnit);
var DATE_METHODS = {
milliseconds: Date.prototype.setMilliseconds,
seconds: Date.prototype.setSeconds,
@romualdr
romualdr / java-8-ami.md
Last active January 27, 2016 16:46 — forked from rtfpessoa/java-8-ami.md
[Guide] Install Sun Java 8 on Amazon EC2 Ami

First verify the version of Java being used is not Sun Java 8 SDK

java -version

Get the Sun Java 8 SDK from Oracle

wget --no-cookies --header "Cookie: gpw_e24=xxx; oraclelicense=accept-securebackup-cookie;" "http://download.oracle.com/otn-pub/java/jdk/8u72-b15/jre-8u72-linux-x64.rpm"

Install Sun Java 8

sudo rpm -i jre-8u72-linux-x64.rpm

Check if the default java version is set to Sun Java 8 SDK

@romualdr
romualdr / xbuild.sh
Last active December 16, 2015 08:53 — forked from skhatri/xbuild.sh
XCode command line build to create IPA file.
#$1 = scheme name. usually project name.
export ARCHIVE_PATH=/usr/home/source/archives
rm -rf $ARCHIVE_PATH/$1*
rm -rf build
mkdir build
# Let's asume the xcarchive already exists
# xcodebuild -scheme $1 archive -archivePath $ARCHIVE_PATH/$1.xcarchive
@romualdr
romualdr / libdwarf.rb
Last active November 10, 2015 16:54 — forked from zlandau/libdwarf.rb
Libdwarf Homebrew Formula
require 'formula'
class Libdwarf < Formula
homepage 'http://libdwarf.sourceforge.net/'
url 'git://git.code.sf.net/p/libdwarf/code', :tag => '20150915'
depends_on 'libelf'
def install
chdir 'libdwarf' do