Skip to content

Instantly share code, notes, and snippets.

@nenadalm
nenadalm / .emacs
Last active November 3, 2021 15:12
(setq inhibit-startup-screen t)
(setq gc-cons-threshold 50000000)
(tool-bar-mode -1)
(menu-bar-mode -1)
(setq-default indent-tabs-mode nil)
(setq tab-width 4)
(setq c-basic-indent 4)
(setq scroll-conservatively 1)
(global-linum-mode)
(ido-mode)
@nenadalm
nenadalm / Configuration.h
Last active August 29, 2015 14:15
Marlin configuration
#ifndef CONFIGURATION_H
#define CONFIGURATION_H
// This configuration file contains the basic settings.
// Advanced settings can be found in Configuration_adv.h
// BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration
//===========================================================================
//============================= DELTA Printer ===============================
//===========================================================================
Section "Monitor"
Identifier "Monitor0"
Option "DPMS" "false"
EndSection
Section "ServerLayout"
Identifier "ServerLayout0"
Option "BlankTime" "0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
#!/usr/bin/env php
<?php
define('MIGRATIONS_DIR', 'app/DoctrineMigrations');
list(, $previousHead, $currentHead) = $argv;
$excessMigrations = getExcessMigrations($previousHead, $currentHead);
rsort($excessMigrations);
removeExcessMigrations($excessMigrations, $previousHead);
addMissingMigrations();