This file contains hidden or 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
# Use tee | |
# from http://stackoverflow.com/a/550808/4498130 | |
echo 'deb blah # blah' | sudo tee --append /etc/apt/sources.list |
This file contains hidden or 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
# HTTP Proxy | |
# against specific NIC | |
<VirtualHost 10.10.10.1:80> | |
ServerName example.com | |
ProxyPreserveHost On | |
ProxyRequests Off | |
ProxyPass / http://10.10.10.2:80/ | |
ProxyPassReverse / http://10.10.10.2:80/ | |
ProxyTimeout 60 |
This file contains hidden or 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
## Required | |
# Default protocol http, specify otherwise | |
# May point to proxy | |
serverUrl=http\://teamcity.example.com | |
# Defaults to system hostname | |
name=Windows | |
# Checked out repositories |
This file contains hidden or 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
<PropertyGroup> | |
<OnBeforePackageUsingManifest>AddCustomSkipRules</OnBeforePackageUsingManifest> | |
</PropertyGroup> | |
<Target Name="AddCustomSkipRules"> | |
<ItemGroup> | |
<MsDeploySkipRules Include="SkipDeleteAppData"> | |
<SkipAction>Delete</SkipAction> | |
<ObjectName>filePath</ObjectName> | |
<AbsolutePath>$(_Escaped_PackageTempDir)\\App_Data\\.*</AbsolutePath> | |
<XPath> |
This file contains hidden or 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
'use strict'; | |
var readline = require('readline'); | |
// ------------------ | |
function TrelloJsonExport() {} | |
TrelloJsonExport.prototype.outputComments = function(json) { | |
json = JSON.parse(json); |
This file contains hidden or 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
# Shell scripts | |
# Dump database and unzip | |
mysqldump db_name -u user_name -p | gzip > db_uname.sql.gz | |
# Unzip and import database | |
gunzip < db_name.sql.gz | mysql db_name -u user_name -p | |
# Transfer database (on source server) |
This file contains hidden or 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 database | |
CREATE DATABASE name; | |
# Show databases | |
SHOW DATABASES; | |
# Use database | |
USE database; |
This file contains hidden or 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
### MANDATORY SETTINGS ### | |
# The url(s) of LDAP server, with URL escaping e.g. "%20" | |
java.naming.provider.url=ldap://dc.degree53.local:389/DC=degree53,DC=local | |
# The credentials to browse and sync LDAP | |
java.naming.security.principal=teamcity | |
java.naming.security.credentials= | |
# Users base DN, relative to "java.naming.provider.url" |
This file contains hidden or 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
@using Tridion.ContentManager.Templating.Expression | |
@using Tridion.ContentManager.ContentManagement | |
@using Tridion.Extensions.Mediators.Razor.Models | |
@* --------------- IDENTIFYING FIELDS ---------------------- *@ | |
@helper FieldStartMarker(string fieldExpression) | |
{ | |
var fn = new BuiltInFunctions(TridionHelper.Engine, TridionHelper.Package); | |
@fn.FieldStartMarker(fieldExpression) |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
NewerOlder