Skip to content

Instantly share code, notes, and snippets.

View maluramichael's full-sized avatar
🏠
Working from home

Michael maluramichael

🏠
Working from home
View GitHub Profile
@maluramichael
maluramichael / download_games.sh
Created August 16, 2022 18:17
Utilizes lgogdownloaded to download gog games. Supports skipping games by name.
#!/bin/bash
set -e
set -u
SKIP_GAMES="cyberpunk chernobylite"
if grep -qs '/tank' /proc/mounts; then
echo 'Download gog games to /tank/games/gog/'
@maluramichael
maluramichael / BackgroundTask.h
Created July 6, 2016 09:16 — forked from liamzebedee/BackgroundTask.h
Attempts at implementing background tasks in React Native iOS
//
// BackgroundTask.h
// tomtrack
//
// Created by Liam Edwards-Playne on 13/02/2016.
//
#import "RCTBridgeModule.h"
@interface BackgroundTask : NSObject <RCTBridgeModule>
// install ffmpeg with all flags
brew info ffmpeg | grep '^\-\-with-' | xargs brew install ffmpeg
// delete all local merged branches
git branch --merged | grep -v develop | grep -v master | xargs git branch -d --
// install software via cask
brew cask install google-chrome firefox jdownloader webstorm phpstorm rubymine clion skype spotify 1password sourcetree hipchat
@maluramichael
maluramichael / osx_install.sh
Created February 7, 2016 11:14 — forked from t-io/osx_install.sh
Install most of my Apps with homebrew & cask
#!/bin/sh
echo Install all AppStore Apps at first!
# no solution to automate AppStore installs
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo Install and Set San Francisco as System Font
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)"
echo Install Homebrew, Postgres, wget and cask
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
// use 'npm install --save-dev gulp browserify babel babelify babel-preset-react babel-preset-es2015 gulp-util vinyl-buffer vinyl-source-stream gulp-uglify gulp-sourcemaps'
var gulp = require('gulp');
var browserify = require('browserify');
var babelify = require('babelify');
var util = require('gulp-util');
var buffer = require('vinyl-buffer');
var source = require('vinyl-source-stream');
var uglify = require('gulp-uglify');
var sourcemaps = require('gulp-sourcemaps');
/*/*****************************************************************************************/
{
"name": "cof",
"version": "0.0.0",
"description": "",
"main": "main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
#include <iostream>
#include <bitset>
#include <vector>
#include <map>
#include <algorithm>
#include <memory>
template<typename Creator, typename Destructor, typename... Arguments>
auto make_resource(Creator c, Destructor d, Arguments&&... args){
auto r = c(std::forward<Arguments>(args)...);
<html>
<body>
<canvas id='canvas' width='300' height='300'></canvas>
<script type="text/javascript">
window.requestAnimFrame = (function(){
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
function( callback ){
class Foo {
public:
Foo()
{
// wird weg optimiert oO
std::cout << "construct\n";
}
~Foo()
{
@maluramichael
maluramichael / gist:8842776
Created February 6, 2014 11:56
pico monsters fight log
Olaf's turn.
Behemoth used 'Sketch'. Dealing 20.0 critical damage. Gigas has 921.88855 left.
Ignaz's turn.
Gigas used 'Shadow Ball'. Dealing 80.0 critical damage. Behemoth has 438.0927 left.
Olaf's turn.
Behemoth used 'Extremespeed'. Dealing 80.0 damage. Gigas has 841.88855 left.
Ignaz's turn.