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 | |
| ### | |
| # | |
| # Copyright (c) 2013 KimSia Sim | |
| # | |
| # Ubuntu 12.10 based make directories in /var/virtual for webapp.com | |
| # Run this by executing the following from a fresh install of Ubuntu 12.10 server: | |
| # | |
| # bash -c "$(curl -fsSL https://raw.github.com/gist/4528222)" <webapp.com> |
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/expect -f | |
| ### | |
| # | |
| # Copyright (c) 2013 KimSia Sim | |
| # | |
| # Ubuntu 12.10 based change shell for users | |
| # Run this by executing the following from a fresh install of Ubuntu 12.10 server: | |
| # | |
| # expect -c "$(curl -fsSL https://raw.github.com/gist/5126919)" <username> <password> |
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 | |
| ### | |
| # | |
| # Ubuntu 12.10 based web server installation script for Phing_d51PearPkg2Task | |
| # because the pear.domain51.com channel is down | |
| # Run this by executing the following from a fresh install of Ubuntu 12.10 server: | |
| # | |
| # bash -c "$(curl -fsSL https://raw.github.com/gist/4372049)" | |
| # |
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
| 0 info it worked if it ends with ok | |
| 1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'install' ] | |
| 2 info using [email protected] | |
| 3 info using [email protected] | |
| 4 verbose read json /var/virtual/storyzer.com/LearnBackboneLayoutManager/package.json | |
| 5 warn package.json [email protected] No README.md file found! | |
| 6 verbose readDependencies using package.json deps | |
| 7 verbose install where, deps [ '/var/virtual/storyzer.com/LearnBackboneLayoutManager', | |
| 7 verbose install [ 'grunt', | |
| 7 verbose install 'grunt-contrib-copy', |
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
| server { | |
| listen 80; | |
| server_name ci.example.com; | |
| location / { | |
| proxy_pass http://localhost:8080; | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
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 | |
| ### | |
| # | |
| # forked from https://gist.github.com/1264701/08f93534ba177f173b9382b53c419cd0de5b07ea | |
| # Copyright (c) 2011 Cake Development Corporation (http//cakedc.com) | |
| # | |
| # Ubuntu 12.10 based web server installation script | |
| # Run this by executing the following from a fresh install of Ubuntu 12.10 server: | |
| # |
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
| public class testTry { | |
| public static void main(String[] args) { | |
| String test = "test"; | |
| try{ | |
| test = "now changed"; | |
| }catch(Exception e) { | |
| } |
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
| public class ExceptionDemo19 { | |
| public void doC() throws Exception { | |
| throw new Exception("test"); | |
| } | |
| public void doB() throws Exception { | |
| doC(); | |
| } | |
| public void doA() throws Exception { | |
| doB(); | |
| } |
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.util.*; | |
| import java.io.*; | |
| public class TestTry{ | |
| public static void main(String []args){ | |
| int a = 5; | |
| int b = receiveNumberFromUser(); | |
| } |
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
| public class ExceptionDemo20 { | |
| public static void main (String[] args) throws Exception{ | |
| a(); | |
| } | |
| public static void a() throws Exception{ | |
| try { | |
| c(); | |
| } catch (Exception e) { | |
| b(); | |
| } |