Skip to content

Instantly share code, notes, and snippets.

View zachshallbetter's full-sized avatar

Zach Shallbetter zachshallbetter

View GitHub Profile
➜ cocoon git:(develop) vagrant ssh
Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-29-virtual x86_64)
* Documentation: https://help.ubuntu.com/
Last login: Thu Jan 31 13:48:53 2013
(venv)vagrant@devvm:/var/www$ sudo salt-call --local state.sls initialize dev
[INFO ] Loading fresh modules for state activity
[INFO ] Running state [psql -h localhost -U postgres -w -c "SELECT pg_terminate_backend(pg_stat_activity.pid) FROM pg_stat_activity WHERE pg_stat_activity.datname = 'cocoon' AND pid <> pg_backend_pid();"] at time 08:57:53.409168
[INFO ] Executing state cmd.run for psql -h localhost -U postgres -w -c "SELECT pg_terminate_backend(pg_stat_activity.pid) FROM pg_stat_activity WHERE pg_stat_activity.datname = 'cocoon' AND pid <> pg_backend_pid();"
[INFO ] Executing command 'psql -h localhost -U postgres -w -c "SELECT pg_terminate_backend(pg_stat_activity.pid) FROM pg_stat_activity WHERE pg_stat_activity.datname = \'cocoon\' AND pid <> pg_backend_pid();"' in directory '/home/vagrant'
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
AH00112: Warning: DocumentRoot [/usr/docs/dummy-host.example.com] does not exist
AH00112: Warning: DocumentRoot [/usr/docs/dummy-host2.example.com] does not exist
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using Zacharys-MacBook-Pro.local. Set the 'ServerName' directive globally to suppress this message
[Mon Aug 11 08:41:46.973315 2014] [mpm_prefork:notice] [pid 1928] AH00163: Apache/2.4.9 (Unix) configured -- resuming normal operations
[Mon Aug 11 08:41:46.973534 2014] [core:notice] [pid 1928] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Mon Aug 11 09:42:47.181599 2014] [mpm_prefork:notice] [pid 1928] AH00169: caught SIGTERM, shutting down
AH00112: Warning: DocumentRoot [/usr/docs/dummy-host.example.com] does not exist
AH00112: Warning: DocumentRoot [/usr/docs/dummy-host2.example.com] does not exist
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using Zacharys-MacBook-Pro.local. Set the 'ServerName' directive globa
sqlalchemy.exc.ProgrammingError
ProgrammingError: (ProgrammingError) relation "user" does not exist
LINE 2: FROM "user"
^
'SELECT "user".created_on AS user_created_on, "user".updated_on AS user_updated_on, "user".id AS user_id, "user".email AS user_email, "user".password AS user_password, "user".first_name AS user_first_name, "user".last_name AS user_last_name, "user".active AS user_active, "user".requires_password_change AS user_requires_password_change, "user".is_admin AS user_is_admin, "user".is_superadmin AS user_is_superadmin \nFROM "user" \nWHERE "user".id = %(id_1)s \n LIMIT %(param_1)s' {'id_1': u'18', 'param_1': 1}
Traceback (most recent call last)
File "/var/www/venv/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/var/www/venv/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app

Sass/Less Comparison

In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.

For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.

Variables

Package Control Messages
========================
Markdown Preview:
----------------
Sublime Text 2/3 Markdown Preview
=================================
Preview and build your markdown files quickly in your web browser from sublime text 2/3.

Package Control Messages

Markdown Preview:

Sublime Text 2/3 Markdown Preview

Preview and build your markdown files quickly in your web browser from sublime text 2/3.

Package Control Messages

Markdown Preview:

Sublime Text 2/3 Markdown Preview

Preview and build your markdown files quickly in your web browser from sublime text 2/3.

@zachshallbetter
zachshallbetter / gist:f506d77449eaa63140f5
Created January 18, 2015 03:38
Code Review Checklist

##General

  • Does the code work? Does it perform its intended function, the logic is correct etc.
  • Is all the code easily understood?
  • Does it conform to your agreed coding conventions? These will usually cover location of braces, variable and function names, line length, indentations, formatting, and comments.
  • Is there any redundant or duplicate code?
  • Is the code as modular as possible?
  • Can any global variables be replaced?
  • Is there any commented out code?
  • Do loops have a set length and correct termination conditions?