The class
’ static methods make it easy to operate on files and directories.
===
The class
' static methods make it easy to operate on files and directories.
Then `monospaced
follows.
===
The class
’ static methods make it easy to operate on files and directories.
===
The class
' static methods make it easy to operate on files and directories.
Then `monospaced
follows.
===
;; from http://larkery.tumblr.com/post/465585528/emacs-dictionary-app | |
(defun mac-open-dictionary (the-word) | |
"Open Dictionary.app for the-word" | |
(interactive "Dictionary Lookup: ") | |
(shell-command | |
(concat "open \"dict:///" (replace-regexp-in-string "\"" "\\\\\"" the-word) "\""))) | |
;; see https://gist.github.com/1228110 | |
;; dict.py is from http://sakito.jp/mac/dictionary.html | |
(defun dictionary () |
Based on [Stackoverflow solution][0]
#!/usr/bin/env bash | |
# Setup custom SSL virtual host with Lets Encrypt certificate | |
# In /etc/httpd/conf.d/ssl.conf add line 'IncludeOptional conf.d/ssl/*.host' | |
searchDir=../path/to/dir/with/domain/names/to/setup | |
hostsDir=/etc/httpd/conf.d/ssl | |
documentRoot=../path/to/www/dir | |
certNotificationsEmail=some@email.dev | |
dbConfig=../path/to/db/config.file |
var merchants = 'Merchant Accounts:\n'; | |
jQuery('#defaultMerchantAccount option').each(function(i, elem){ | |
if (elem.value) { | |
merchants += '\t• ID ' + elem.value.split('|')[0] + '\t' + elem.text + '\n'; | |
} | |
}); | |
alert(merchants); |
<?php | |
header("Content-type: text/html"); | |
// | |
// Run composer with a PHP script in browser | |
// | |
// http://stackoverflow.com/questions/17219436/run-composer-with-a-php-script-in-browser | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); |
$ xcode-select --install
$ softwareupdate --list
sudo yum install supervisor
sudo systemctl enable supervisord
sudo systemctl start supervisord
sudo systemctl status supervisord
/etc/supervisord.conf
# docs | |
https://support.rackspace.com/how-to/cloud-backup-agent-logging-basics/ | |
# file path | |
/etc/driveclient/log4cxx.xml | |
# contents | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> | |
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> | |
<appender name="FILE" class="org.apache.log4j.RollingFileAppender"> | |
<param name="File" value="/var/log/driveclient.log"/> |