Skip to content

Instantly share code, notes, and snippets.

View Giorgospago's full-sized avatar
🥇
Setting Priorities

George Pagonoudis ⚡ Giorgospago

🥇
Setting Priorities
View GitHub Profile
@Giorgospago
Giorgospago / AppModule.ts
Last active October 5, 2018 06:59
ComponentsModule.ts
import { NgModule, ErrorHandler } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';
import { SuperTabsModule } from 'ionic2-super-tabs';
import { TabsPage } from '../pages/tabs/tabs';
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
@Giorgospago
Giorgospago / ajax_file_upload.js
Last active September 27, 2017 09:37
Ajax file upload
$scope.submitForm = function(){
var formData = new FormData();
var postUrl = '/admin/landing-pages/create';
formData.append('zip_file', jQuery('#zip_file')[0].files[0]);
$http({
url: postUrl,
method: 'POST',
data: formData,
# downgrade to php5.4 first
sudo apt-get install software-properties-common python-software-properties
sudo add-apt-repository ppa:ondrej/php5-oldstable -y
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php5
# install ajenti
wget -O- https://raw.github.com/Eugeny/ajenti/master/scripts/install-ubuntu.sh | sudo sh