⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
replace "<\?=\$(.*)\?>" to "<?php echo \$\1; ?>" | |
and then "<\?(?!php)" to "<?php" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Macvim < Formula | |
homepage 'http://code.google.com/p/macvim/' | |
url 'https://github.com/b4winckler/macvim/tarball/snapshot-65' | |
version '7.3-65' | |
sha1 'fa5f6e0febe1ebcf5320a6ff8bcf4c7e39eccf8e' | |
head 'https://github.com/b4winckler/macvim.git', :branch => 'master' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import shutil | |
import sqlite3 | |
from sys import argv | |
from xml.dom.minidom import parse | |
def dom_element_to_insert(elem): | |
return (elem.getAttribute('xmlUrl'),elem.getAttribute('text'), elem.getAttribute('title'), elem.getAttribute('htmlUrl')) | |
def main(path_to_opml): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(window.location.href.indexOf("translate.google.com")>-1)?((new%20RegExp('[?&]u=([^&]*)')).exec(location.search)!=null)?window.location.assign("https://translate.google.com/translate?hl=en&sl=auto&tl=en&sandbox=1&u="+(new%20RegExp('[?&]u=([^&]*)')).exec(location.search)[1]):alert("Error:%20This%20google%20translate%20page%20does%20not%20have%20a%20url%20parameter."):window.location.assign("https://translate.google.com/translate?hl=en&sl=auto&tl=en&sandbox=1&u="+encodeURIComponent(window.location.href)); |
Cgroups is a flexible Linux kernel feature to limit, police and account resources usage. A cgroup is a set of tasks for a subsystems, that is typically a resource controller.
A file system of type cgroup is mounted and all operations are run over it.
The installation can be done using any of libcgroup, cgmanager or systemd.