Things to remember when setting up a WordPress site on an Apache server
/etc/hosts
add local url to 127.0.0.1
/etc/apache2/extra/httpd-vhosts.conf
add vhost config for site
- If Wordpress/bedrock the path needs to be the projectfolder/web
Things to remember when setting up a WordPress site on an Apache server
/etc/hosts
add local url to 127.0.0.1
/etc/apache2/extra/httpd-vhosts.conf
add vhost config for site
- If Wordpress/bedrock the path needs to be the projectfolder/web
<!DOCTYPE html> | |
<html> | |
<head> | |
<title><%= "Dynamic Dispatch" %></title> | |
<link rel='stylesheet' href='/stylesheets/application.css' /> | |
<script src='/components/jquery/jquery.min.js' type='text/javascript'></script> | |
<script src='/components/knockout/knockout.js' type='text/javascript'></script> | |
<script type='text/javascript'> | |
function GithubProjectViewModel() { |
migration_added = git.added_files.include?('db/migrate/*.rb') | |
schema_modified = git.modified_files.include?('db/structure.sql') | |
warn 'Migration has been added, but structure.sql has not been modified' if | |
migration_added && !schema_modified | |
warn 'Schema has been modified, but no migration has been added' if | |
schema_modified && !migration_added |
$net = new-object -ComObject WScript.Network | |
$net.MapNetworkDrive("r:", "\\romeobox\files", $false, "domain\user", "password") |
{"lastUpload":"2019-04-03T15:00:53.348Z","extensionVersion":"v3.2.7"} |
begin | |
require "bundler/inline" | |
rescue LoadError => e | |
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler" | |
raise e | |
end | |
gemfile(true) do | |
source "https://rubygems.org" |
public static Map<String, String> getHashMapResource(Context c, int hashMapResId) { | |
Map<String, String> map = null; | |
XmlResourceParser parser = c.getResources().getXml(hashMapResId); | |
String key = null, value = null; | |
try { | |
int eventType = parser.getEventType(); | |
while (eventType != XmlPullParser.END_DOCUMENT) { |
# gem install bitbucket_rest_api | |
# gem install octokit | |
require 'bitbucket_rest_api' | |
require 'octokit' | |
task :migrate do | |
bitbucket = BitBucket.new login: '', password: '' | |
bitbucket_owner = '' | |
github = Octokit::Client.new login: '', password: '' | |
github_org = '' |
osascript -e 'tell application "Safari" to add reading list item "http://totl.net/"' |
#!/bin/bash | |
FRESHMEAT_TOKEN=xtJ4zwGPM14iBmKnledd | |
DATA="auth_code=$FRESHMEAT_TOKEN" | |
ROOT="http://freshmeat.net" | |
function get { | |
[ -z "$1" ] && echo "Error: Must supply request path." && return | |
echo $(curl -G -d $DATA $ROOT/${1}) | |
} |