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
// ==UserScript==
// @name OGame Event Timer in Titlebar
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Zeigt die verbleibende Zeit des aktuellsten Events in der Browser-Titlebar an
// @author Michael Malura <[email protected]>
// @match *://*.ogame.gameforge.com/*
// @grant none
// ==/UserScript==
@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()
{