Skip to content

Instantly share code, notes, and snippets.

@karimgarza
karimgarza / teamcity-agent.service
Created December 19, 2019 19:52 — forked from BenWhitehead/teamcity-agent.service
systemd service files for running TeamCity (create in /usr/lib/systemd/system)
[Unit]
Description=TeamCity Build Agent
After=network.target
[Service]
Type=forking
PIDFile=$AGENT_HOME/logs/buildAgent.pid
ExecStart=/usr/bin/sudo -u teamcity $AGENT_HOME/bin/agent.sh start
ExecStop=/usr/bin/sudo -u teamcity $AGENT_HOME/bin/agent.sh stop
@karimgarza
karimgarza / bash-cheatsheet.sh
Last active August 29, 2015 14:28 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@karimgarza
karimgarza / store.js
Last active August 29, 2015 14:23 — forked from jdhines/store.js
App.Adapter = DS.RESTAdapter.extend({
serializer: DS.RESTSerializer.extend({
extract: function(loader, json, type, record) {
var newJSON,
root;
root = this.rootForType(type);
newJSON = {};
newJSON[root] = json;
json = newJSON;
@karimgarza
karimgarza / pom.xml
Last active August 29, 2015 14:22 — forked from snuxoll/pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<groupId>com.snuxoll.example</groupId>
<artifactId>ember-maven-example</artifactId>
<version>0.1-SNAPSHOT</version>
<modelVersion>4.0.0</modelVersion>
<artifactId>getcheckedin-frontend</artifactId>
// Somewhere in your controllers for this given example
// Example functions
$scope.itemOnLongPress = function(id) {
console.log('Long press');
}
$scope.itemOnTouchEnd = function(id) {
console.log('Touch end');
}