Tested in Mac OS X: super == command
Open/Goto
- super+t: go to file
- super+ctrl+p: go to project
- super+r: go to methods
<?php | |
add_action( 'save_post', 'cd_meta_box_save' ); | |
function cd_meta_box_save( $post_id ) | |
{ | |
// Bail if we're doing an auto save | |
if( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return; | |
// if our nonce isn't there, or we can't verify it, bail | |
if( !isset( $_POST['meta_box_nonce'] ) || !wp_verify_nonce( $_POST['meta_box_nonce'], 'my_meta_box_nonce' ) ) return; | |
{ | |
"cmd": ["bash", "-c", "clang -lobjc -framework Cocoa -framework Carbon -o /tmp/sublime-objc-output $file"], | |
"file_regex": "^(.*?):([0-9]+):([0-9]+): (.*)", | |
"selector": "source.objc", | |
"variants": [ | |
{ | |
"name": "Run", | |
"cmd": ["bash", "-c", "clang -lobjc -framework Cocoa -framework Carbon -o /tmp/sublime-objc-output $file && /tmp/sublime-objc-output"] | |
} | |
] |
define('FTP_PUBKEY','/home/user1/wp_rsa.pub'); | |
define('FTP_PRIKEY','/home/user1/wp_rsa'); | |
define('FTP_USER','user1'); | |
define('FTP_PASS',''); | |
define('FTP_HOST','127.0.0.1:22'); |
// Change the columns for the edit CPT screen | |
function change_columns( $cols ) { | |
$cols = array( | |
'cb' => '<input type="checkbox" />', | |
'url' => __( 'URL', 'trans' ), | |
'referrer' => __( 'Referrer', 'trans' ), | |
'host' => __( 'Host', 'trans' ), | |
); | |
return $cols; | |
} |
There are two types of ACLs: access ACLs and default ACLs. An access ACL is the access control list for a specific file or directory. A default ACL can only be associated with a directory; if a file within the directory does not have an access ACL, it uses the rules of the default ACL for the directory. Default ACLs are optional. | |
ACLs can be configured: | |
1. Per user | |
2. Per group | |
3. Via the effective rights mask | |
4. For users not in the user group for the file | |
The setfacl utility sets ACLs for files and directories. Use the -m option to add or modify the ACL of a file or directory: | |
setfacl -m <rules> <files> | |
Rules (<rules>) must be specified in the following formats. Multiple rules can be specified in the same command if they are separated by commas. | |
u:<uid>:<perms> |
Here are all the Rails 4 (ActiveRecord migration) datatypes: | |
• :binary | |
• :boolean | |
• :date | |
• :datetime | |
• :decimal | |
• :float | |
• :integer | |
• :primary_key | |
• :references |
I hereby claim:
To claim this, I am signing this object:
var message_with_attachments = { | |
"channel": channel, | |
"text": '*How are you feeling ?*', | |
"attachments": [ | |
{ | |
"fallback": "Sigmend want's to know your mood! Open Slack to respond.", | |
"text": "Click on the reaction that best matches your mood.\n", | |
"mrkdwn_in": ["text"] | |
}, | |
{ |
require 'formula' | |
class Simian < Formula | |
url 'http://www.harukizaemon.com/simian/simian-2.4.0.tar.gz' | |
homepage 'http://www.harukizaemon.com/simian/index.html' | |
md5 '3382f3ca3cb9d0190d89689bec3c92a9' | |
def install | |
libexec.install "bin/simian-2.3.32.jar" | |
(bin+'simian').write <<-EOS.undent |