-
Sugar 7 CRM Install zip file
-
elastics
curl -O https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.4.4.zip
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
import random | |
ATTACKS = ('Cowboy', 'Ninja', 'Bear') | |
COWBOY = 0 | |
NINJA = 1 | |
BEAR = 2 | |
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
#!/bin/bash | |
# Pull this file down, make it executable and run it with sudo | |
# wget https://gist.githubusercontent.com/bryanhunter/10380945/raw/build-erlang-17.0.sh | |
# chmod u+x build-erlang-17.0.sh | |
# sudo ./build-erlang-17.0.sh | |
if [ $(id -u) != "0" ]; then | |
echo "You must be the superuser to run this script" >&2 | |
exit 1 | |
fi |
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
#!/usr/bin/env python | |
# http://support.sugarcrm.com/02_Documentation/04_Sugar_Developer/Sugar_Developer_Guide_6.7/02_Application_Framework/Authentication/Oauth/ | |
# pip install oauth2 | |
import urllib | |
import urlparse | |
import oauth2 as oauth | |
SUGAR_INSTANCE_URL = 'REPLACE-WITH-YOUR-SUGAR-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
package com.sugarcrm.client; | |
import com.sun.jersey.api.client.Client; | |
import com.sun.jersey.api.client.ClientResponse; | |
import com.sun.jersey.api.client.WebResource; | |
import net.sf.json.JSONObject; | |
public class JerseyClientPost { | |
public static void main(String[] args) { |
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
_slugify_strip_re = re.compile(r'[^\w\s-]') | |
_slugify_hyphenate_re = re.compile(r'[-\s]+') | |
def slugify(value): | |
""" | |
Normalizes string, converts to lowercase, removes non-alpha characters, | |
and converts spaces to hyphens. | |
From Django's "django/template/defaultfilters.py". | |
""" | |
import unicodedata |
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
test: | |
clear | |
nosetests --with-coverage --cover-package name_utils test_name_utils.py | |
clean: | |
find -regex '.*\.pyc' -exec rm {} \; | |
find -regex '.*~' -exec rm {} \; | |
.PHONY: test clean |
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
var monthly_plans = [ | |
{ | |
"id": "plus-monthly", | |
"name": "Plus", | |
"billing_cycle": "monthly", | |
"period_length": "months_1", | |
"monthly_price": 6.0, | |
"total_price": 6.0, | |
"selected": false, | |
"disabled": false, |
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
appcfg.py update appengine/ | |
10:27 AM Application: myapp-id; version: 1 | |
10:27 AM Host: appengine.google.com | |
10:28 AM | |
Starting update of app: myapp-id, version: 1 | |
10:28 AM Getting current resource limits. | |
10:28 AM Scanning files on local disk. | |
10:28 AM Scanned 500 files. | |
Could not guess mimetype for static/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf. Using application/octet-stream. | |
Could not guess mimetype for static/lib/bootstrap/css/bootstrap-theme.css.map. Using application/octet-stream. |