This file contains 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
cd ~ | |
sudo npm install -g sm | |
sudo apt-get install git-core libxml2-dev | |
git clone https://github.com/ajaxorg/cloud9.git cloud9 | |
cd ./cloud9 | |
sudo sm install | |
... |
This file contains 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
#ifconfig wlan0 192.168.1.1 | |
cp /etc/dnsmasq.conf.bk /etc/dnsmasq.conf | |
#echo "interface=wlan0" > /etc/dnsmasq.conf | |
#echo "dhcp-range=192.168.1.5,192.168.1.254,255.255.255.0,12h" >> /etc/dnsmasq.conf | |
/etc/init.d/dnsmasq restart | |
rm hostapd.conf | |
#echo "interface=wlan0 | |
#driver=nl80211 |
This file contains 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 | |
BLD="$(tput bold)" | |
GRN="$(tput setab 2)" | |
RED="$(tput setab 1)" | |
BLK="$(tput sgr0)" | |
function test { | |
clear | |
cd ./test |
This file contains 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.rmi.Naming; | |
import java.rmi.RemoteException; | |
import java.rmi.RMISecurityManager; | |
public class RmiClient { | |
// "obj" is the reference of the remote object | |
RmiServerIntf obj = null; | |
public String getMessage() { | |
try { |
This file contains 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
# install.packages("xlsx") | |
options(java.parameters = "-Xmx2000m") | |
require(xlsx) | |
x <- read.xlsx2("big3m.xlsx", 1) |
This file contains 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
mkdir out dot | |
for f in $1/*.c; | |
do | |
filename=$(basename "$f") | |
echo "Processing ${filename%.*} file.."; | |
cat $f | ./canalyze > ./dot/${filename%.*}.dot; dot -Tpng ./dot/${filename%.*}.dot -o ./out/${filename%.*}.png | |
done | |
echo "-------------------------------------------------------"; | |
ls ./out/* -al | awk '{ print $5 "\t" $9 }' | sort -n |
This file contains 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/sh | |
# the next line restarts using expect \ | |
exec expect $0 ${1+"$@"} | |
#!/usr/local/bin/expect -f | |
# | |
# serialWatch.exp | |
# Connect up to a device on a serial port | |
# Time stamp any incoming lines to stdout | |
This file contains 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
mtype {MSG, ACK}; | |
chan toS = [2] of {mtype, bit}; | |
chan toR = [2] of {mtype, bit}; | |
proctype Sender(chan inp, out) | |
{ | |
bit sendbit, recvbit; | |
do | |
:: out ! MSG, sendbit -> |
This file contains 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
<!DOCTYPE html> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one | |
or more contributor license agreements. See the NOTICE file | |
distributed with this work for additional information | |
regarding copyright ownership. The ASF licenses this file | |
to you under the Apache License, Version 2.0 (the | |
"License"); you may not use this file except in compliance | |
with the License. You may obtain a copy of the License at |
This file contains 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/sh | |
# | |
# run-emulator.sh -- execute emulator with correct args | |
# | |
# Copyright (C) 2013, Canonical Ltd. | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation; either version 3 | |
# of the License, or (at your option) any later version. |
OlderNewer