Skip to content

Instantly share code, notes, and snippets.

View sergeifilippov's full-sized avatar
:octocat:
👍🏻

Sergei Filippov sergeifilippov

:octocat:
👍🏻
View GitHub Profile
// NOTE: I added the .js extension to this gist so it would have syntax highlighting. This file should have NO file extension
{
// Settings
"passfail" : false, // Stop on first error.
"maxerr" : 100, // Maximum error before stopping.
// Predefined globals whom JSHint will ignore.
"browser" : true, // Standard browser globals e.g. `window`, `document`.
@sergeifilippov
sergeifilippov / any-nginx-config.conf
Created July 10, 2014 02:08
Loading webfonts in Firefox using Nginx
add this to any of your server blocks
```nginx
location ~* \.(eot|ttf|woff)$ {
add_header Access-Control-Allow-Origin *;
}
```
[Source](http://serverfault.com/questions/162429/how-do-i-add-access-control-allow-origin-in-nginx)
@sergeifilippov
sergeifilippov / btsync
Last active August 29, 2015 14:06 — forked from mendelgusmao/btsync
#!/bin/sh
### BEGIN INIT INFO
# Provides: btsync
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Multi-user daemonized version of btsync.
#!/bin/bash
#
# The MIT License (MIT)
#
# Copyright (c) 2014 Mathias Leppich <mleppich@muhqu.de>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

.~~. .~~.
'. \ ' ' / .'
.~ .~~~..~.
: .~.'~'.~. :
~ ( ) ( ) ~
( : '~'.~.'~' : )
~ .~ ( ) ~. ~
( : '~' : ) Raspberry Pi
'~ .~~~. ~'
'~'
@sergeifilippov
sergeifilippov / gist:5062116
Created March 1, 2013 02:46
Magento Community/Enterprise .gitignore file
# OS generated files #
################################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
Thumbs.db

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

<VirtualHost *:80>
ServerName magento.loc
DocumentRoot /var/www/html
DirectoryIndex index.php
<Directory /var/www/html/var/>
Order deny,allow
Deny from all
</Directory>
@sergeifilippov
sergeifilippov / poseidon-art
Created July 30, 2013 22:31
poseidon ascii art
|||
\|/
| WWW o
| /_^_\ O )
B, /|o o\\_ (
|\\ |\ - |\\_/ o ) <*)<
| \\\_/= \_/ <^)< (
| `\ \\
| | .][. | )
| \ | /( ) o (