| layout | post |
|---|---|
| title | la la la |
| date | 2013-03-09 02:42 |
| comments | true |
| categories | octopress, jekyll |
So, I just installed octopress and published a hello world post.
| min-split-size=1M | |
| max-connection-per-server=8 | |
| split=8 |
| #!/usr/bin/liquidsoap | |
| output.icecast(%mp3, host = "example_host", port = 8000, password = "source_password", mount = "gittu", input.pulseaudio(device = "stream.monitor")) |
| layout | post |
|---|---|
| title | la la la |
| date | 2013-03-09 02:42 |
| comments | true |
| categories | octopress, jekyll |
So, I just installed octopress and published a hello world post.
| <?php | |
| $html = file_get_contents("http://bangla.bdnews24.com/"); | |
| $doc = new DOMDocument(); | |
| $doc->loadHTML($html); | |
| $elements = $doc->getElementById("breaking")->getElementsByTagName("div")->item(0)->getElementsByTagName('a'); | |
| foreach ($elements as $element) { | |
| $news = $element->nodeValue; | |
| $newslink = $element->getAttribute('href'); | |
| #!/usr/bin/env php -q | |
| <?php | |
| echo 'hello'.PHP_EOL; | |
| foobaar().PHP_EOL; | |
| echo 'bye bye'.PHP_EOL; | |
| function foobaar(){ | |
| echo 'my name is foo'.PHP_EOL; | |
| } |
This script copies all data from /data/data to any directory(in sdcard) and (soft)links back them in /data/data.
The purpose is to free space from /data/data.
To use it, first make sure the DESTDIR exists, change it according to your need, mkdir it. here i used /data/sdext2 which is a ext partition on sdcard mounted by link2sd.
make sure your android is rooted and you have cp,rm,ln binary installed, usually these come from busybox.
copy the script to android,
| #include<stdio.h> | |
| #include "sarim.h" | |
| int main() | |
| { | |
| printf("Hello world"); | |
| int k = skadd(1,2); | |
| printf("sum: %d",k); | |
| return 0; | |
| } |
| #include "sarim.h" | |
| int skadd(int a,int b){ | |
| return a + b; | |
| } |
| <?php | |
| //This script will convert the avro autocorrect dict to json. Rifat bro already did it using textmate manually, but my approach is artistic :D | |
| //Get the raw dict from github | |
| $raw = file_get_contents("https://raw.github.com/omicronlab/Avro-Keyboard/master/Keyboard%20and%20Spell%20checker/autodict.dct"); | |
| //breaking the lines | |
| $lines = explode("\n",$raw); | |
| $arr = array(); |