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
| <nav role="navigation" class="site"> | |
| <ul> | |
| <li><a href="#"><span> </span></a></li> | |
| <li><a href="#"><span class="fontawesome-home"/></span></a></li> | |
| <li><a href="#"><span class="fontawesome-edit"></span></a></li> | |
| <li><a href="#"><span class="fontawesome-copy"></span></a></li> | |
| <li><a href="#"><span class="om">ॐ</a></span></li> | |
| <li><a href="#"><span class="fontawesome-list"></span></a></li> | |
| <li><a href="#"><span class="fontawesome-github-alt"></span></a></li> | |
| <li><a href="#"><span class="fontawesome-camera-retro"></span></a></li> |
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
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.ra.blog</groupId> | |
| <artifactId>mostlyjava</artifactId> | |
| <packaging>war</packaging> | |
| <version>1.0-SNAPSHOT</version> | |
| <name>mostlyjava.net</name> | |
| <url>http://www.mostlyjava.net</url> |
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
| <section class="colors"> | |
| <div class="container"> | |
| <h4>dark</h4> | |
| <ul> | |
| <li class="primary">primary</li> | |
| <li class="primary-dark">darken 10%</li> | |
| <li class="primary-darker">darken 20%</li> | |
| </ul> | |
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
| # change ownership on web dirs to www-data and set sticky bit and set group to write | |
| sudo chown -R www-data:www-data /var/www | |
| sudo chmod -R g+s /var/www | |
| sudo chmod -R g+w /var/www | |
| sudo ln -s /media/data/www /var/www | |
| sudo chgrp dev -h /var/www |
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
| # set my common id's and groups on home network | |
| sudo groupadd -g 1111 robuntu | |
| sudo groupadd -g 1112 dev | |
| sudo usermod -aG robuntu,dev ra | |
| sudo usermod -g dev ra | |
| # change ownership of partitions created at startup | |
| sudo chown ra:dev /media/data | |
| sudo chown ra:robuntu /media/stage | |
| sudo chmod 770 /media/stage |
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
| # convert video to mp4 - leave original sizing - | |
| function getMp4 () { | |
| filename=$(basename "$1") | |
| extension="${filename##*.}" | |
| echo "$extension" | |
| filename="${filename%.*}" | |
| echo "$filename" |
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/sh | |
| # converting a mysql5.5, wordpress 3.3 db to sqlite 3, nginx running on my raspberry pi :) | |
| # ddl only | |
| # $ ./mysql2sqlite --no-data -u root -pMyPassWd wordpressdb | sqlite3 database.sqlite | |
| # initial data | |
| # $ ./mysql2sqlite -u root -pMyPassWd wordpressdb | sqlite3 database.sqlite | |
| # | |
| # Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
| # CREATE block and create them in separate commands _after_ all the INSERTs. |
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
| /** Use the adapter to output for below | |
| */** | |
| * * Returns server timestamp. | |
| * * @return the timestamp at creation time | |
| * */ | |
| * @JsonSerialize(using = JsonTimestampAdapter.class) | |
| * @XmlJavaTypeAdapter(XmlTimestampAdapter.class) | |
| * @XmlAttribute |
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
| // setUp and teaerDown | |
| @Before | |
| public void setUp() { | |
| System.out.println("@Before goes before every JUnit4 test - setUp "); | |
| } | |
| @After | |
| public void tearDown() { | |
| System.out.println("@After goes before every JUnit4 tearDown"); | |
| } |
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
| <!-- setting a string property which will be used in BeanNameViewResolver. it's not the bean itself hence no -ref --> | |
| <!-- <bean class="com.xxxxx.xxx.controller.MediaController" p:rssLatestVideoView="rssLatestVideoView"/> --> | |
| <!-- *************** RSS VIEWS and their images **************** --> | |
| <bean id="genericVideoRss" class="com.xxxx.xxxxx.view.GenericVideoRss" | |
| p:channelImage-ref="mediaRoomImage" p:feedLink="http://www.xxxxx.com/xxxxxx/index.jsp"/> | |
| <!-- |