Skip to content

Instantly share code, notes, and snippets.

View dewwwald's full-sized avatar

dewald dewwwald

View GitHub Profile
@dewwwald
dewwwald / Bashhr example
Created March 11, 2014 08:01
For a cool Ubuntu .bashrc (Terminal Profile)
https://github.com/trisweb/dotfiles/blob/master/.bash_profile
@dewwwald
dewwwald / readme
Last active August 29, 2015 13:57
Ubuntu 12.0.4 => rbenv install
Firstly rbenv like other dev tools should be installed on your home directory not your root. (Dont sudo install it)
##Installing rbenv
follow the commands on the github repo
=> https://github.com/sstephenson/rbenv
- install ruby env
- install ruby build
=> sudo apt-get install g++ gcc make libc6-dev patch openssl ca-certificates libreadline6 libreadline6-dev curl zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev autoconf libc6-dev libgdbm-dev libncurses5-dev automake libtool bison pkg-config libffi-dev
@dewwwald
dewwwald / gist:9706829
Created March 22, 2014 13:03
Setup SSH
To set up use this tutorial ==>
https://help.github.com/articles/generating-ssh-keys
______________________________________________
Now be carefull to use ssh on a repo that is set to use an https url.
Fix => Run the following from project dirr
ProcessWire Webpage Workflow
1. Setup v-hosts, database and install processwire (usually fixate's boilerplate generator)
a. the generator already does bower install.
2. Determine project structure and install all required modules.
3. Setup all required fields and templates in PW admin.
4. Program the logic of the web page. All php that handles dynamic data. Site specific and contact controller.
5. Use styleguide to program initial css.
6. Program site css that was not done in styleguide.
7. finalize by adding javascripts that are used.
@dewwwald
dewwwald / _A.md
Last active August 29, 2015 14:01
Pagination for Processwire

##Simple Pagination For Processwire

###ProcessWire Requirements

On the template you want pagination. Go to the url's tab where you will have to:

  • Activate Allow Page Numbers.
  • Activate Allow URL Segments.
@dewwwald
dewwwald / _A.md
Last active August 29, 2015 14:02
CSS Tips and Tricks case study's. Center an element in another block element.

#CSS Tricks ##Center an element in a parent element

#Development Workflow For SVG Embedding

Working with svg as an embedded object can be tough, however there a few reasons why I have done this:

  • One can manipulate an svg with your normal css
  • One can add dynamic content to an svg by using string manipulation

##Equipment

  • Illustrator (create svg)
  • fixate/pw-mvc-boilerplate on github (A ProcessWire(PW) CMS boilerplate)
  • gulp (Manipulate svg)
@dewwwald
dewwwald / _README.md
Last active August 29, 2015 14:16
Set up LAMP

#How to install LAMP (Ubuntu 14.10) this did not work

Note that after I added my old bash scripts the issue of repositories missing disappeared.

##LINUX Install linux by creating a bootable flash.

  • I used 'startup disc creator' on ubuntu.
  • Access BIOs F2 and set startup order to flash first. (Remember to fix the order when done)
  • Follow the setup
@dewwwald
dewwwald / A.markdown
Last active August 29, 2015 14:18 — forked from larrybotha/A.markdown

Add Your Public SSH Key To Your Server In One Command

You will need to create .ssh/authorized_keys if it is not yet on your server.

cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> .ssh/authorized_keys'

Generating Your Own Public Key