Skip to content

Instantly share code, notes, and snippets.

View amiroff's full-sized avatar

Metin Emiroğlu amiroff

View GitHub Profile
@amiroff
amiroff / git_toturial
Created December 21, 2016 12:44 — forked from BitaminKim/git_toturial
git命令大全
git init # 初始化本地git仓库(创建新仓库)
git config --global user.name "xxx" # 配置用户名
git config --global user.email "xxx@xxx.com" # 配置邮件
git config --global color.ui true # git status等命令自动着色
git config --global color.status auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.interactive auto
git config --global --unset http.proxy # remove proxy configuration on git
git clone git+ssh://git@192.168.53.168/VT.git # clone远程仓库
@amiroff
amiroff / README.md
Last active August 29, 2015 14:06 — forked from denji/README.md
# install laravel under bash
wget http://laravel.com/laravel.phar && chmod +x laravel.phar && mv laravel.phar /usr/local/bin/laravel
# under fish
wget http://laravel.com/laravel.phar ; chmod +x laravel.phar; mv laravel.phar /usr/local/bin/laravel
@amiroff
amiroff / lamp.sh
Last active December 31, 2015 10:59
#!/usr/bin/env bash
export DEBIAN_FRONTEND=noninteractive
#echo "--> Configuring locales <--"
#locale-gen en_US.UTF-8
#apt-get install language-pack-en-base
echo "--> Updating package db <--"
apt-get update
@amiroff
amiroff / Vagrantfile
Last active December 31, 2015 10:59
Vagrantfile example using Raring Ringtale and LAMP provisioning script
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provider "virtualbox" do |v|
v.memory = 256
end
config.vm.box = "precise32"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
config.vm.synced_folder "./" , "/vagrant/", :mount_options => ["dmode=777", "fmode=666"]
config.vm.provision :shell, :path => "https://gist.github.com/amiroff/7976592/raw/lamp.sh"
@amiroff
amiroff / Custom.css
Last active December 14, 2015 01:19
Make Chrome dev tools look good under Linux
/**********************************************/
/*
/* Make Chrome dev tools look good under Linux
/* ~/.config/google-chrome/Default/User StyleSheets/Custom.css
/* chrome-devtools://devtools/devTools.css
/* See https://plus.google.com/115133653231679625609/posts/UZF34wPJXsL
/*
/**********************************************/
@amiroff
amiroff / reference.md
Created February 4, 2013 21:23
Markdown reference

Mou

Mou icon

Overview

Mou, the missing Markdown editor for web developers.

Syntax

@amiroff
amiroff / gist:4148511
Last active October 13, 2015 05:48
Clean up the crap of Ubuntu Gnome Remix
sudo apt-get purge gnome-games-* xdiagnose aisleriot gnome-dictionary gnome-contacts gnumeric abiword cheese alacarte rhythmbox alacarte
sudo apt-get autoremove
sudo apt-add-repository ppa:gnome3-team/gnome3
sudo apt-add-repository ppa:webupd8team/sublime-text-2
sudo add-apt-repository ppa:mystic-mirage/komodo-edit
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install sublime-text-2-dev dkms ppa-purge oracle-java6-installer
sudo apt-get install htop tmux screen software-center jockey-gtk git-core mercurial vim font-manager xclip vim tasksel
<?php
/**
* SplClassLoader implementation that implements the technical interoperability
* standards for PHP 5.3 namespaces and class names.
*
* http://groups.google.com/group/php-standards/web/final-proposal
*
* // Example which loads classes for the Doctrine Common package in the
* // Doctrine\Common namespace.
@amiroff
amiroff / MacClassic.tmTheme
Last active December 14, 2018 21:24
My custom modified Mac Classic Textmate/ST2 Theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>author</key>
<string>Chris Thomas</string>
<key>name</key>
<string>Mac Classic</string>
<key>settings</key>
<array>