Skip to content

Instantly share code, notes, and snippets.

View savelee's full-sized avatar

Lee Boonstra savelee

View GitHub Profile
######################
# IDE editor files #
######################
.project
.settings
.classpath
.idea
######################
@savelee
savelee / gist:a38043706673f9774b73
Created February 16, 2016 17:38
Install cURL on Digital Ocean
1. ssh root@<ip>
2. First Install CURL by typing sudo apt-get install curl
3. Then Restart Apache by typing sudo service apache2 restart
4. Then Install PHP5 CURL by typing sudo apt-get install php5-curl
will prompt to install... type y or yes!
5. Then Restart Apache by typing sudo service apache2 restart Done!
@savelee
savelee / js-impl.xml
Created February 21, 2016 16:44
js-impl.xml snippet
<target name="-compile-js" depends="-detect-app-build-properties">
<if>
<x-is-true value="${enable.split.mode}"/>
<then>
<property name="app.output.framework.include"
value="package-sencha-core,framework,toolkit,package-core"/>
<x-compile refid="${compiler.ref.id}">
<![CDATA[
...
@savelee
savelee / gist:4c2fdd2bda303bc03704
Created February 21, 2016 16:46
Custom split build process
<![CDATA[
# Build a set containing everything, the entire application and the used framework.
restore
page
and
save
entireApp
and
# Build a set containing the entire framework.
union
@savelee
savelee / pom.xml
Created February 21, 2016 17:21
Example pom.xml web app
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.ladysign.MavenApp</groupId>
<artifactId>MavenApp</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>MavenApp Maven Webapp</name>
<url>http://maven.apache.org</url>
<dependencies>
@savelee
savelee / .js
Created April 13, 2016 09:57
Sencha UI Test example - Sencha Test
describe("Email.js", function() {
describe('Compose', function () {
var compose;
// We need to create the email Compose view in a window like the app normally
// does as a Fixture for our tests.
//
beforeEach(function (done) {
compose = Ext.create({
xtype: 'window',
@savelee
savelee / .gitignore
Last active May 20, 2016 12:43
.gitignore for Sencha, Python, Node Projects
######################
# Python #
######################
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
@savelee
savelee / gist:9b107657b1c46ede0d3a46bb5f2a6bda
Created June 3, 2016 09:01
Digital Ocean - Install a free SSL certificate on Ubuntu with Apache.
1. First stop your droplet, and make a snapshot.
2. Login to you droplet
ssh root@<ip>
3. Go to https://certbot.eff.org/, select the setup for example Apache on Ubuntu 14
This will give you the instructions
These are the instructions for Ubuntu 14, with Apache.
We will install Certbot:
@savelee
savelee / gist:f6e9ca1b94eb88a649e784bf9260ecb8
Created June 15, 2016 17:37
Sencha software issues, due to wrong binding of localhost
//sudo nano /etc/hosts
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
How to enable server caching
Install the following 2 mods:
$ sudo a2enmod expires
$ sudo a2enmod headers
Add this to the .htaccess
<IfModule mod_expires.c>
ExpiresActive On