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
Go to IBM Bluemix Catalog | |
Use the Wordpress Boiler plate. | |
Download the Start code and upload it on Bluemix using cf push <app name> | |
That's it. Wordpress deployed. |
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
Step 1: | |
git clone https://github.com/vik-y/cf-ex-phpmyadmin | |
Step 2: | |
Create a Clear DB Service on IBM Bluemix | |
Step 3: | |
Create a PHP application on bluemix, we'll upload phpmyadmin code in this application | |
Step 4: |
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
<%@ page language="java" contentType="text/html; charset=UTF-8" | |
pageEncoding="UTF-8"%> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>Insert title here</title> | |
</head> |
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.example.bobo.sensorapp; | |
import android.content.Intent; | |
import android.os.AsyncTask; | |
import android.support.v7.app.ActionBarActivity; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.view.Menu; | |
import android.view.MenuItem; | |
import android.view.View; |
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
After you are done configuring SSH: | |
To log in: | |
First you have to make sure that your ssh-agent uses your public key. For that run | |
eval "$(ssh-agent -s)" in the terminal from which you want to SSH | |
After doing that | |
To get ssh access: | |
ssh username@kodingurl |
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
def run_terminal(command): | |
p = subprocess.Popen(command.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE) | |
out, err = p.communicate() | |
return out |
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 java.lang.reflect.Array; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Collections; | |
import java.util.Comparator; | |
import java.util.Scanner; | |
import java.io.*; | |
import javax.naming.ldap.SortControl; |
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 requests | |
from BeautifulSoup import BeautifulSoup | |
r = requests.get('http://<url>') | |
while r.status_code!=200: | |
r = requests.get('http://<urL>') | |
soup = BeautifulSoup(r.text) | |
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 | |
echo "" > result.txt | |
date >> result.txt | |
echo "Zense" | |
function test (){ | |
date | |
echo " " |
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
/* | |
* App crashes if you don't make a separate thread to send your http requests. | |
* This example uses a new thread to send http requests and hence won't crash the application. | |
*/ | |
Random generator = new Random(); | |
int i = generator.nextInt(6) + 1; | |
List<NameValuePair> pairs = new ArrayList<NameValuePair>(); |