Skip to content

Instantly share code, notes, and snippets.

View mvaneijgen's full-sized avatar

Mitchel van Eijgen mvaneijgen

View GitHub Profile
@mvaneijgen
mvaneijgen / serverlog
Created March 3, 2014 16:59
spigotmc server crash
[16:55:49 INFO]: NLbrain: Set own game mode to CREATIVE mode
[16:57:43 ERROR]: The server has stopped responding!
[16:57:43 ERROR]: Please report this to http://www.spigotmc.org/
[16:57:43 ERROR]: Be sure to include ALL relevant console errors and Minecraft crash reports
[16:57:43 ERROR]: Spigot version: git-Spigot-1325 (MC: 1.7.2)
[16:57:43 ERROR]: ------------------------------
[16:57:43 ERROR]: Server thread dump (Look for plugins here before reporting to Spigot!):
[16:57:43 ERROR]: ------------------------------
[16:57:43 ERROR]: Current Thread: Server thread
[16:57:43 ERROR]: PID: 13 | Suspended: false | Native: false | State: RUNNABLE
@mvaneijgen
mvaneijgen / skype-mode
Created July 31, 2014 10:07
Set foreground application as skype mood
-- Global variables
global old_mood
global changed
global current_app
global last_current_app
-- Polling interval
property polling_interval : 10
@mvaneijgen
mvaneijgen / colors
Last active August 29, 2015 14:07 — forked from twerth/colors
# Make ls use colors
export CLICOLOR=1
alias ls='ls -Fa'
# define colors
C_DEFAULT="\[\033[m\]"
C_WHITE="\[\033[1m\]"
C_BLACK="\[\033[30m\]"
C_RED="\[\033[31m\]"
C_GREEN="\[\033[32m\]"

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

@mvaneijgen
mvaneijgen / agenda.twig
Last active August 29, 2015 14:14
Timely’s All-in-One Event Calendar agenda template file
{{ navigation | raw }}
<div class="ai1ec-agenda-view">
{% if dates is empty %}
<p class="ai1ec-no-results">
{{ text_upcoming_events }}
</p>
{% else %}
{% for date, date_info in dates %}
<div class="ai1ec-date
<?php
/**
* BP Usernames Only Core
*
* @package BP-Usernames-Only
* @subpackage Core
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) exit;

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

@mvaneijgen
mvaneijgen / Contract Killer 3.md
Last active August 29, 2015 14:16 — forked from malarkey/Contract Killer 3.md
Dutch version (Nederlandse versie)

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 02/03/2015
  • Revised date: 02/03/2015
  • Original post

@mvaneijgen
mvaneijgen / Scale resolution.scpt
Last active March 26, 2023 10:46
Change screen resolution AppleScript
local index1, index2
set index1 to 3 -- 1920 x 1200
set index2 to 4 -- 1280 x 800
-- Launch "System Preferences", open the "Displays" options and change to the "Display" tab
tell application "System Preferences"
activate
set the current pane to pane id "com.apple.preference.displays"
reveal anchor "displaysDisplayTab" of pane id "com.apple.preference.displays"
@mvaneijgen
mvaneijgen / Screencast Setup.scpt
Created March 9, 2015 14:10
Change screen resolution using Applescript works on 10.10 non-rentia macbook
-- Launch "System Preferences", open the "Displays" options and change to the "Display" tab
tell application "System Preferences"
activate
set the current pane to pane id "com.apple.preference.displays"
reveal anchor "displaysDisplayTab" of pane id "com.apple.preference.displays"
end tell
local indexToUse
-- Now lets make the necessary changes