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
--- ImportExport.pm.bak 2014-04-01 12:45:00.873266322 -0400 | |
+++ ImportExport.pm 2014-04-01 17:35:53.995130625 -0400 | |
@@ -483,15 +483,14 @@ | |
$tmpl->text(<<'TEXT'); | |
AUTHOR: <$MTEntryAuthor strip_linefeeds="1"$> | |
TITLE: <$MTEntryTitle strip_linefeeds="1"$> | |
-BASENAME: <$MTEntryBasename$> | |
+BASENAME: <mt:IfNonEmpty tag="EntryKeywords"><$MTEntryKeywords$><mt:Else><$MTEntryTitle dirify="1"></mt:IfNonEmpty> | |
STATUS: <$MTEntryStatus strip_linefeeds="1"$> | |
ALLOW COMMENTS: <$MTEntryFlag flag="allow_comments"$> |
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
create KEYSPACE spark_demo WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'}; | |
create table spark_demo.raw_files (filename text,line int, contents text, PRIMARY KEY(filename,line)); | |
create table spark_demo.users (id int PRIMARY KEY ); | |
create table spark_demo.movies (id int PRIMARY KEY, name text, year int); | |
create table spark_demo.ratings (id int PRIMARY KEY, user_id int, movie_id int, rating float ); |
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
#!/usr/bin/perl | |
$foo = "alert ('foo');"; | |
open (FH, ">file.in"); | |
print FH $foo; | |
close (FH); | |
system ("java -jar yuicompressor-2.4.2.jar --type js <file.in >file.out"); |
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
# Makefile for JS/CSS: | |
# Uses Closure for JS compiling, YUI for CSS compiling, and JsHint for code quality checking | |
MAKEFLAGS = --no-print-directory --always-make | |
MAKE = make $(MAKEFLAGS) | |
BUILDDIR = ./.build | |
CLOSUREURL = http://closure-compiler.googlecode.com/files/compiler-latest.zip | |
CLOSUREDIR = $(BUILDDIR)/closure |
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
#!/usr/bin/php | |
<?php | |
/* pushit | |
Command-line script for uploading files: | |
* reduce image file size thru online Smush.it service | |
* add file signature (md5) to name for uniqueness and long expiration times | |
* configurable copy command to blog, Amazon S3, etc. | |
* configurable move original file to local archive |
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:var%20text='['+document.title+']('+location.href+')';window.prompt("Copy%20to%20clipboard:%20Ctrl+C,%20Enter",text);void(0); |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.provision "shell", privileged: true, inline: <<-SHELL1 | |
apt-get update | |
apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev git -y | |
SHELL1 |
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
#!/usr/local/bin/python | |
""" | |
Convert podcast OPML file into Markdown format suitable for blog posting | |
Brian Cantoni | |
""" | |
import opml | |
import codecs | |
import locale | |
import sys |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrant on AWS Example | |
# Brian Cantoni | |
# This sample sets up 1 VM ('delta') with only Java installed. | |
# Adjustable settings | |
CFG_TZ = "US/Pacific" # timezone, like US/Pacific, US/Eastern, UTC, Europe/Warsaw, etc. |
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
FROM wordpress:5.2.4-php7.2-apache | |
# replace stock plugins/themes with our own | |
RUN rm -rf /var/www/html/wp-content/{plugins,themes} | |
COPY --chown=www-data:www-data ./src /var/www/html/wp-content |
OlderNewer