Skip to content

Instantly share code, notes, and snippets.

--Run as a scheduled task: "C:\Program Files\Microsoft SQL Server\100\Tools\Binn\SQLCMD.EXE" -i F:\Images2\Backup\AperioDBBackup.sql -o F:\Images2\Backup\AperioDBBackup.log
DECLARE @BackupFile varchar(1000)
SELECT @BackupFile = (SELECT 'F:\Images2\Backup\NSAperio-FullDB-'+ CONVERT(varchar(500),getDate(),112) +'.bak')
BACKUP DATABASE Aperio
TO DISK = @BackupFile
WITH FORMAT;
GO
@bdunnette
bdunnette / data.html.twig
Created June 15, 2016 15:10
Exclude reCaptcha responses from Grav form emails
{% extends "forms/default/data.html.twig" %}
{% block field %}
{% if field.name!='g-recaptcha-response' %}
<div>{% block field_label %}<strong>{{ field.label }}</strong>{% endblock %}: {% block field_value %}{{ string(form.value(field.name)|e)|nl2br }}{% endblock %}</div>
{% endif %}
{% endblock %}
@bdunnette
bdunnette / config.json
Last active June 27, 2016 23:57 — forked from anonymous/config.json
Bootstrap Customizer Config
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "#bada55",
"@brand-success": "#5cb85c",
@bdunnette
bdunnette / add-gulp.sh
Last active May 9, 2018 10:28
Add Gulp & Angular to your Loopback project
# cd to your Loopback project directory and run:
# curl https://gist.githubusercontent.com/bdunnette/4c1c7a153c70e8988fa48363f6b429d8/raw/add-gulp.sh | sh
REPO=https://gist.githubusercontent.com/bdunnette/4c1c7a153c70e8988fa48363f6b429d8/raw
echo client/vendor >> .gitignore
mv server/boot/root.js server/boot/root.js.bak
sed 's/\("files\".*\:.*{\)/&\"loopback\#static\"\:\{\"params\"\:\"\$\!\.\.\/client\"\}/' -i server/middleware.json
mkdir -p client/js client/css server/fixtures
touch client/css/app.css server/fixtures/.gitkeep
wget -O gulpfile.js $REPO/gulpfile.js
wget -O server/component-config.json $REPO/component-config.json
# Rename original out of the way, so updates / reinstalls don't squash our hack fix
sudo dpkg-divert --add --rename --divert /usr/bin/ruby.divert /usr/bin/ruby
sudo dpkg-divert --add --rename --divert /usr/bin/gem.divert /usr/bin/gem
# Create an alternatives entry pointing ruby -> ruby2.0
sudo update-alternatives --install /usr/bin/ruby ruby /usr/bin/ruby2.0 1
sudo update-alternatives --install /usr/bin/gem gem /usr/bin/gem2.0 1
del .gsf-save*
FOR %%A IN (*.svs) DO vips dzsave %%A %%~nA.zip --centre --overlap 0 --layout google

creative commons

Attribution-ShareAlike 4.0 International

Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible.

Using Creative Commons Public Licenses

Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not

Recycling

Sales

Taxes

Donations

if (Meteor.isServer) {
Accounts.onCreateUser(function(options, user) {
// Create blank user.emails field if it doesn't already exist
user.emails = user.emails || [];
if (user.services && user.services.google) {
// Add Google email address to user.emails - fixes issues with some packages that expect this field, e.g. yogiben-admin
user.emails.push({
address: user.services.google.email,
verified: user.services.google.verified_email
});
twbs:bootstrap
ian:accounts-ui-bootstrap-3
fortawesome:fontawesome
zimme:active-route
lbee:moment-helpers
momentjs:moment
aldeed:collection2
aldeed:autoform