Skip to content

Instantly share code, notes, and snippets.

View consoledotblog's full-sized avatar

consoledotblog

View GitHub Profile
//Java
public class HelloWorld {
public static void main(String[] args){
System.out.println("Hello, world!");
}
}
- (void)setImageWithURL:(NSURL *)url;
- (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholderImage;
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example Blog</title>
<link rel="import" href="../components/core-scroll-header-panel/core-scroll-header-panel.html">
<link rel="import" href="../components/core-toolbar/core-toolbar.html">
<link rel="import" href="../components/core-icon-buttons/core-icon-buttons.html">
<link rel="import" href="../components/core-card/core-card.html">
</head>
<!doctype HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example Blog</title>
</head>
<body>
<h1>My Blog Entry</h1>
<small>by: John Smith</small>
object TestObject extends TestTraitClass {
val immutableVariable: String = "Hello Immutable"
var mutableVariable: String = "Hello Mutable"
def getImmutable(): String = immutableVariable
def getMutable(): String = {
mutableVariable
}
@consoledotblog
consoledotblog / run-ansible.sh
Created October 26, 2015 22:45 — forked from pb8226/run-ansible.sh
Packer and Ansible Commands
ansible-playbook -i ansible-inventory.ini provision-server-playbook.yml
@consoledotblog
consoledotblog / provision-server-playbook.yml
Created October 26, 2015 22:45 — forked from pb8226/provision-server-playbook.yml
Ansible Blue/Green Deploy to Rackspace Playbook
---
- name: Get Load Balancer Info
gather_facts: False
hosts: webservers
tasks:
- name: Retrieve Load Balancer Information
local_action:
module: rax_clb
name: '{{load_balancer_name}}'
port: 80
@consoledotblog
consoledotblog / ansible-inventory.ini
Created October 26, 2015 22:45 — forked from pb8226/ansible-inventory.ini
Ansible Inventory File
[webservers]
localhost
[webservers:vars]
rackspace_image=project-name-$bamboo_buildResultKey
server_name=nodejs-AU-PSQA.cmx-
load_balancer_name=AT-PSQA-AU
instances_count=1
rackspace_private_key_path=/home/bamboo/RackSpacePrivateKey.pk
rackspace_region=IAD
@consoledotblog
consoledotblog / app_server_packer_config.json
Created October 26, 2015 22:45 — forked from pb8226/app_server_packer_config.json
Rackspace Packer Configuration File
{
"variables":{
"bamboo_build_number":"",
"bamboo_build_user_pass":""
},
"builders":[
{
"type":"openstack",
"username":"INSERT YOUR RACKSPACE USERNAME HERE",
"api_key":"INSERT YOUR RACKSPACE API KEY HERE",
@consoledotblog
consoledotblog / bawts-01.js
Created January 14, 2016 17:14 — forked from Nijhazer/bawts-01.js
Building Applications with TypeScript - Snippet 01
var TaskManager = {
getTask: function(id) {
// issue an API request to fetch this task
}
};