Skip to content

Instantly share code, notes, and snippets.

View zsim0n's full-sized avatar

Zoltan Simon zsim0n

View GitHub Profile
#!/usr/bin/sh
rm -rf $HOME/Library/Preferences/WebIde*
rm -rf $HOME/Library/Preferences/WebStorm*
rm -rf $HOME/Library/Caches/WebIde*
rm -rf $HOME/Library/Caches/WebStorm*
rm -rf $HOME/Library/Application\ Support/WebIde*
rm -rf $HOME/Library/Application\ Support/WebStorm*
rm -rf $HOME/Library/Logs/WebIde*
rm -rf $HOME/Library/Logs/WebStorm*
@zsim0n
zsim0n / delicious-widget.html
Last active December 28, 2015 04:59
Delicious feed widget Display delicious.com recent posts in a beautified list with iCanHaz.js and moment.js
<!-- Dependencies -->
<script src="http://codeorigin.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/ICanHaz.js/0.10/ICanHaz.min.js" type="text/javascript"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/moment.js/2.4.0/moment.min.js" type="text/javascript"></script>
<!-- Small styling for blogger.com -->
<style>
.delicious-widget {
width: 246px;

Quick guide to setup an Azure instance to able to run TYPO3

Obvious steps

  • Join to Azure (Microsoft Live account and credit card needed) - Azure has 30 day free trial
  • Create Virtual Machine with Windows Server 2008 R2

Optional Useful tools

@zsim0n
zsim0n / .gitignore
Last active August 29, 2015 13:57 — forked from redoPop/.gitignore
.gitignore for wordpress
/*
!.gitignore
!favicon.ico
!favicon.png
!robots.txt
!humans.txt
!wp-content/
wp-content/*
!wp-content/plugins/
@zsim0n
zsim0n / git stop tracking file
Created March 15, 2014 18:36
Git : Stop tracking a <file> after ignoring it
git rm --cached <file>
git add . # or git add <file>
#!/bin/bash
# Pre-commit hook to make a mysql dump right before committing and add it to the commit.
#
## Change the following values to suit your local setup.
# The name of a database user with read access to the database.
DBUSER=root
# The password associated with the above user. Leave commented if none.
#DBPASS=password
# The database associated with this repository.
DBNAME=site1
@zsim0n
zsim0n / veewee-build.sh
Last active August 29, 2015 14:01
veewee build awesome-ubuntu-server
http://cbednarski.com/articles/veewee/
$ cd veewee
$ veewee vbox define awesome-ubuntu-server ubuntu-14.04-server-amd64
$ veewee vbox build awesome-ubuntu-server -n
$ veewee vbox export awesome-ubuntu-server
$ vagrant box add 'awesome-ubuntu-server' '/path/to/awesome-ubuntu-server.box'
@zsim0n
zsim0n / VagrantFile-Set-TimeZone.rb
Created June 1, 2014 09:25
Provision timezone in vagrant
config.vm.provision :shell, :inline => "echo \"Europe/Copenhagen\" | sudo tee /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata"
@zsim0n
zsim0n / .gitignore
Last active August 29, 2015 14:02
a TYPO3 CMS gitingore
## TYPO3 v4
# Ignore serveral upload and file directories.
/fileadmin/user_upload/
/fileadmin/_temp_/
/uploads/
# Alternative Ignore all fileadmin and enable only a few
# /fileadmin
# !/fileadmin/res
vagrant up
vagrant ssh
cd /vagrant
mkdir myproj
cd myproj
npm install generator-angular
yo angular
sed -i 's/localhost/0.0.0.0/' Gruntfile.js
grunt serve