Skip to content

Instantly share code, notes, and snippets.

@mplacona
mplacona / file1.xml
Created February 9, 2013 23:25
optional_action_bar
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.OptionalActionBar" parent="@android:style/Theme.NoTitleBar">
<item name="android:windowNoTitle">true</item>
<item name="android:windowActionBar">false</item>
</style>
</resources>
@mplacona
mplacona / file1.xml
Created February 9, 2013 23:25
optional_action_bar (11)
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.OptionalActionBar" parent="@android:style/Theme.NoTitleBar">
<item name="android:windowNoTitle">false</item>
<item name="android:windowActionBar">true</item>
</style>
</resources>
@mplacona
mplacona / file1.sh
Created March 31, 2013 17:15
dotfiles_1
$ mkdir ~/dotfiles
$ mv ~/.bashrc ~/dotfiles/.bashrc
$ mv ~/.vimrc ~/dotfiles/.vimrc
$ mv ~/vim ~/dotfiles/vim
########## Variables
dir=~/dotfiles # dotfiles directory
olddir=~/dotfiles_old # old dotfiles backup directory
files=".bashrc .vimrc .vim" # list of files/folders to symlink in homedir
##########
# create dotfiles_old in homedir
echo "Creating $olddir for backup of any existing dotfiles in ~"
@mplacona
mplacona / file1.sh
Created April 1, 2013 19:00
Bootstrap permissions
$ chmod +x bootstrap.sh
@mplacona
mplacona / file1.sh
Created April 1, 2013 19:03
Bootstrap running
$ ./bootstrap.sh
Creating /home/placona/dotfiles_old for backup of any existing dotfiles in ~
...done
Changing to the /home/placona/dotfiles directory
...done
Moving any existing dotfiles from ~ to /home/placona/dotfiles_old
Creating symlink to .bashrc in home directory.
Moving any existing dotfiles from ~ to /home/placona/dotfiles_old
Creating symlink to .vimrc in home directory.
Moving any existing dotfiles from ~ to /home/placona/dotfiles_old
@mplacona
mplacona / file1.sh
Created April 1, 2013 19:09
Adding to github
$ cd ~/dotfiles
$ git init
$ git add .
$ git commit -m 'Initial commit of my dotfiles'
$ git remote add origin [email protected]:yourgithubusername/dotfiles.git
$ git push origin master
@mplacona
mplacona / file1.sh
Created April 1, 2013 19:16
Installing dorfiles
$ cd ~
$ git clone https://github.com/yourgithubuserrname/dotfiles.git
$ ./bootstrap.sh
@mplacona
mplacona / file1.sh
Last active December 18, 2015 02:09
Railo appfog
$ af login
$ af update railo
{
"errors":{
"name":[
"Name must not be blank"
],
"text":[
"Text must not be blank"
]
}
}