Skip to content

Instantly share code, notes, and snippets.

@leommoore
leommoore / webstorm_inspection_settings_for_node.md
Last active August 29, 2015 13:56
WebStorm - Inspection Settings for Node.js

#WebStorm - Inspection Settings for Node.js

To get rid of the squiggles for things like process etc. Do the following:

  1. Go to the Settings -> Inspections
  2. Select General
  3. Untick Unresolved JavaScript function
  4. Untick Unresolved JavaScript variable
  5. Untick Signature mismatch
@leommoore
leommoore / biz_stones_six_principles.md
Created March 31, 2014 19:32
Biz Stone's Six Principles

#Biz Stone's Six Principles

  1. We don't always know what is going to happen.
  2. There are more smart people out there than in here.
  3. We will win if we do the right thing for our users.
  4. The only deal worth doing is a win-win deal.
  5. Our co-workers are smart and they have good intentions.
  6. We can build a business, change the world and have fun.
@leommoore
leommoore / cordova_basics.md
Last active August 29, 2015 13:58
Cordova Basics

#Cordova Basics Apache Cordova is a set of device APIs that allow a mobile app developer to access native device function such as the camera or accelerometer from JavaScript. Combined with a UI framework such as jQuery Mobile or Dojo Mobile or Sencha Touch, this allows a smartphone app to be developed with just HTML, CSS, and JavaScript.

This is the command needed with Ubuntu 13.10.

##Prelims

  1. Install Android Studio. This normally installs to /usr/lib/android-studio.

  2. Add the paths to the path

@leommoore
leommoore / postfix_install.sh
Created April 10, 2014 06:18
Postfix - Install Script
#This is not complete
sudo su
apt-get update
apt-get update --fix-missing
apt-get install bind9 dnsutils apache2 php5 postfix dovecot-common dovecot-imapd dovecot-pop3d squirrelmail
#To edit the Postfix config
nano /etc/postfix/main.cf
@leommoore
leommoore / security_audit_tools.md
Last active August 29, 2015 13:59
Security Audit Tools

#Security Audit Tools

Lynis provides a one stop shop for checking your sites security.Details can be found at http://cisofy.com/lynis

wget http://cisofy.com/files/lynis-1.5.0.tar.gz
tar xfv lynis-1.5.0.tar.gz
cd lynis-1.5.0
sudo ./lynis -c
@leommoore
leommoore / spotify_ubuntu.md
Created April 23, 2014 11:32
Spotify Install on Ubuntu 14.04

#Spotify Install on Ubuntu 14.04

sudo sh -c 'echo "deb http://repository.spotify.com stable non-free" >> /etc/apt/sources.list.d/spotify.list'

Get the key:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 94558F59

After that, we can install the client after checking for updates:

@leommoore
leommoore / ubuntu_terminal_color.md
Created May 7, 2014 12:38
Ubuntu Terminal Color

#Ubuntu Terminal Color

R 48
G 10
B 36

H 319
S 79
V 19
@leommoore
leommoore / javascript_get_unique_elements.md
Created May 20, 2014 16:43
JavaScript - Get Unique Elements

#JavaScript - Get Unique Elements

var test = ["Naas", "Newbridge", "Dublin", "Naas"]

> test
[ 'Naas',
  'Newbridge',
  'Dublin',

'Naas' ]

@leommoore
leommoore / android_studio_installing.md
Created June 9, 2014 10:27
Android Studio - Installing

#Android Studio - Installing To install android studio:

sudo apt-add-repository ppa:paolorotolo/android-studio
sudo apt-get update
sudo apt-get install android-studio
@leommoore
leommoore / linux_logs.md
Last active August 29, 2015 14:02
Linux - Logs

#Linux - Logs To view the log messages in the memory queue use:

dmesg 

or dmesg | less

Most logs in Ubuntu are stored in /var/log. To access the system log use: