Skip to content

Instantly share code, notes, and snippets.

@pypykim
pypykim / lock.m
Created March 29, 2016 06:59 — forked from typcn/lock.m
Unlock & Lock your mac
extern void SACLockScreenImmediate ( );
SACLockScreenImmediate();
@pypykim
pypykim / configure-winrm.ps1
Created November 23, 2015 12:40 — forked from sneal/configure-winrm.ps1
Configure WinRM for Vagrant
winrm quickconfig -q
winrm quickconfig -transport:http
winrm set winrm/config '@{MaxTimeoutms="7200000"}'
winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="0"}'
winrm set winrm/config/winrs '@{MaxProcessesPerShell="0"}'
winrm set winrm/config/winrs '@{MaxShellsPerUser="0"}'
winrm set winrm/config/service '@{AllowUnencrypted="true"}'
winrm set winrm/config/service/auth '@{Basic="true"}'
winrm set winrm/config/client/auth '@{Basic="true"}'
winrm set winrm/config/listener?Address=*+Transport=HTTP '@{Port="5985"} '

install php

with mysql pgsql intl support

$ brew install php --with-apache --with-mysql --with-pgsql --with-intl

set php timezone in php ini

date.timezone = Europe/Vienna