Skip to content

Instantly share code, notes, and snippets.

View johannesberdin's full-sized avatar

Johannes Berdin johannesberdin

View GitHub Profile
sdk.dir=/Users/runner/Library/Android/sdk
ndk.dir=/Users/runner/Library/Android/sdk/ndk-bundle
@johannesberdin
johannesberdin / jigsaw-gh-workflow.yml
Created May 5, 2020 17:38
Jigsaw auto deployment to GitHub Pages
name: Auto-deploy
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
# This workflow contains a single job called "deploy"
deploy:
# The type of runner that the job will run on
@johannesberdin
johannesberdin / pre-commit
Created October 8, 2018 07:08
Warn on .spp files
#!/bin/sh
LIST=$(git diff --name-only --diff-filter=AM HEAD)
for file in $LIST
do
if [ "$file" == '#' ]; then
continue
fi
EXTENSION=$(echo "$file" | grep ".spp$")
@johannesberdin
johannesberdin / color-blind-simulation.js
Created March 26, 2018 17:50
color-blind simulation
var blinder = require('color-blind');
var colorBlindWatch = $('.color-blind-watch');
var colorBlindResult = $('.color-blind-result-watch');
var randomColor = '#000000';
window.setInterval(function(){
randomColor = '#'+ ('000000' + Math.floor(Math.random()*16777215).toString(16)).slice(-6);
colorBlindFn(randomColor);
}, 1000);
var color '#'+ ('000000' + Math.floor(Math.random()*16777215).toString(16)).slice(-6);
module Fastlane
module Actions
class SouyuzAction < Action
def self.run(params)
require 'souyuz'
absolute_app_path = File.expand_path(Souyuz::Manager.new.work(params))
if absolute_app_path.include?(".ipa")
Actions.lane_context[SharedValues::IPA_OUTPUT_PATH] = absolute_app_path
ENV[SharedValues::IPA_OUTPUT_PATH.to_s] = absolute_app_path
#!/bin/sh
# Arguments
MYSQL_PASSWORD=${1}
SERVER_NAME=${2}
SERVER_ALIAS=${3}
SERVER_ADMIN=${4}
MAIL_ADDRESS=${5}
MAIL_DOMAIN=${6}
MAIL_REPLY_PREFIX=${7}
@johannesberdin
johannesberdin / Vagrantfile
Created January 4, 2016 09:46
Default Vagrantfile for my Vagrant lamp stack
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.ssh.forward_agent = true
config.vm.network :private_network, ip: "10.0.0.10"
@johannesberdin
johannesberdin / vagrant.sh
Last active January 4, 2016 12:23
Provision shell script for my Vagrant lamp stack
#!/bin/sh
# vagrant shell script for simple lamp stack
export DEBIAN_FRONTEND=noninteractive
# update
apt-get -qq update
echo "Updated system."
# php55 repository
apt-get -qq -y install python-software-properties
@johannesberdin
johannesberdin / php.ini
Created January 3, 2016 20:38
Default PHP.ini for my Vagrant lamp stack
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order: