dhcp-script=/etc/detect_new_device.sh
Reference:
apt-get install python-pygraphviz | |
pip install django-extensions | |
# add 'django_extensions' to INSTALLED_APPS in settings.py | |
python manage.py graph_models trees -o test.png |
Install Java JDK 6.0 update 31 on Ubuntu 12.04 LTS | |
Introduction | |
The first question is why are we installing an old JDK. The answer is that Oracle JDK 6.0 update 31 is the JDK recommended by Cloudera when installing CDH4 (Cloudera Distribution Hadoop v4). | |
This is an update to an older version of this post. Mainly I have changed the JDK from 1.6.0_26 to 1.6.0_31 as this is the recommended JDK for CDH4 . | |
Install Java | |
I have a 64 bit version of Ubuntu 12.04 LTS installed, so the instructions below only apply to this OS. |
# | |
# Shell commands to run on router to enable transparent proxying | |
# | |
uci add firewall redirect | |
uci set firewall.@redirect[0].name='Transparent Proxy Redirect' | |
uci set firewall.@redirect[0].src=lan | |
uci set firewall.@redirect[0].proto=tcp | |
uci set firewall.@redirect[0].dest_port=3128 | |
uci set firewall.@redirect[0].src_dport=80 |
document.getElementsByClassName("input")[1].innerHTML="This message was written via JS script! "; // Fills the text box message | |
var input = document.getElementsByClassName("icon btn-icon icon-send");//Grabs the send button | |
input[0].click();// Clicks the send button |
function dispatch(target, eventType, char) { | |
var evt = document.createEvent("TextEvent"); | |
evt.initTextEvent (eventType, true, true, window, char, 0, "en-US"); | |
target.focus(); | |
target.dispatchEvent(evt); | |
} | |
dispatch(document.querySelector("#compose-input div"), "textInput", "hello!"); |
dhcp-script=/etc/detect_new_device.sh
Reference:
* Install Squid on LEDE/Openwrt device: | |
opkg install squid | |
* Add cache device (/dev/sda1 in this example), mount to /tmp/squid: | |
vi /etc/config/fstab | |
config mount | |
option enabled '1' | |
option device '/dev/sda1' | |
option fstype 'ext4' |