Skip to content

Instantly share code, notes, and snippets.


Marc J. Schmidt marcj

Block or report user

Report or block marcj

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:ab66f9e2cef2e6d5925e12b8885ab549
sudo mount -uw /
rm -rf /System/Library/Extensions/AMDRadeon*
rm -rf /System/Library/Extensions/GeForce*
rm -rf /System/Library/Desktop\ Pictures/*
find /System/Library/Templates/Data/System/Library/Speech -name PCMWave -exec rm -rf {} \;
rm -rf /System/Library/Screen\ Savers/*.saver
rm -rf /private/var/db/dyld
View Enter hyperkit vm in Docker 19 for macOS
screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty
marcj / docker-run.ts
Last active May 5, 2019
Dockerode Docker run with STDIN in Node.Js
View docker-run.ts
import * as Dockerode from "dockerode";
import * as stream from "stream";
import {ContainerCreateOptions, HostConfig} from "dockerode";
export async function dockerRunWithStdIn(
docker: Dockerode,
stdin: NodeJS.ReadableStream | Buffer,
options: {name: string} & ContainerCreateOptions
): Promise<Buffer> {
return await new Promise<Buffer>(async (resolve, reject) => {
marcj / Bla2.ts
Last active Feb 17, 2019
Typescript creating a new deep subtype based on runtime arguments.
View Bla2.ts
interface Writer {
id: number;
username: string;
notIncludedAsWell: string;
interface Post {
id: number;
content: string;
notIncluded: string;
marcj / gist:5e74e4a20205509fe9d7bdbe2d961699
Last active Feb 1, 2017
Install AETROS on Windows 10
View gist:5e74e4a20205509fe9d7bdbe2d961699
sudo apt-get install libblas3 libblas-dev
sudo apt-get install liblapack3gf liblapack-dev
sudo apt-get install gfortran
sudo apt-get install libhdf5-dev
sudo chmod -R o+w /usr/local/lib/python2.7/dist-packages
sudo chmod -R o+w /usr/local/bin
pip install numpy
import time
import math
import aetros.backend
job = aetros.backend.start_job('marcj/example-1', '----')
logging_channel = job.create_channel('logging_channel', type=aetros.backend.JobChannel.TEXT)
traces = [
View Release changelog
git log --format="%h - %s <%an>" "1.2.0..master"
297f89e - scaleToFix makes now sure that the layer never overlaps the page dimensions <Marc J. Schmidt>
aebfdf7 - allow to choose multiple times the same file in image file input <Marc J. Schmidt>
f729f52 - fixed placeholder loading the right way <Marc J. Schmidt>
git log --date=short --format="%cd %h - %s" "$version..master"
marcj /
Last active Nov 6, 2019
OSX PhpStorm, better performance - more FPS using OpenGL
cp /Applications/ ~/Library/Preferences/WebIde*
echo -ne "\n-Dawt.useSystemAAFontSettings=lcd\n-Dawt.java2d.opengl=true" >> ~/Library/Preferences/WebIde*/phpstorm.vmoptions
marcj / gist:dda218b489cedc5cc3e8
Last active May 18, 2016
AngularJS Cheatsheet
View gist:dda218b489cedc5cc3e8

AngularJS Cheatsheet


Scope does not detect changes with whitespace at the end and beginning

A: You need to set ng-trim to false.

   <input ng-model="" ng-trim="false />
View propel test performance.php
$loader = require_once __DIR__ . '/../vendor/autoload.php';
include __DIR__ . '/generated-conf/config.php';
$loader->add('', __DIR__ . '/generated-classes');
$con = \Propel\Runtime\Propel::getConnection('bookstore');
You can’t perform that action at this time.