Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| # encoding: UTF-8 | |
| Pry.config.editor = "vim" | |
| Pry.config.pager = false | |
| Pry.config.commands.alias_command "lM", "ls -M" | |
| if defined?(Encoding) then | |
| Encoding.default_external = 'utf-8' | |
| Encoding.default_internal = 'utf-8' | |
| else | |
| $KCODE = 'utf-8' |
| while true; do sleep 1; curl http://www.google.com; echo -e '\n\n\n\n'$(date);done |
| /* | |
| Chrome Developer Tools - Monokai Color Theme | |
| Author: Béres Máté Csaba / bjmatt.com / @bjmatt / [email protected] | |
| ----------------------------------------------------------------------------------------------------------- | |
| Installation: | |
| 1. Find your Chrome's user stylesheets directory: |
| Model.new.foo |
| # vi /etc/security/limits.conf | |
| [Modify or add "nofile" (number of file) entries - note | |
| that a userid can be used in place of *] | |
| * soft nofile 64000 | |
| * hard nofile 64000 | |
| # vi /etc/pam.d/login | |
| [Add the line] | |
| session required /lib/security/pam_limits.so |
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
| #!/bin/bash | |
| # install homebrew's official php tap | |
| brew tap josegonzalez/homebrew-php | |
| # install homebrew-dupes (required to install zlib, php54's dependency) | |
| brew tap homebrew/dupes | |
| # install nginx + mysql + php 5.4 + php-fpm + apc + xdebug | |
| brew install nginx mysql |
| // Maintain ratio mixin. Great for responsive grids, or videos. | |
| // https://gist.github.com/brianmcallister/2932463 | |
| // | |
| // $ratio - Ratio the element needs to maintain. | |
| // | |
| // Examples | |
| // | |
| // // A 16:9 ratio would look like this: | |
| // .element { | |
| // @include maintain-ratio(16 9); |
| // set-up a connection between the client and the server | |
| var socket = io.connect(); | |
| // let's assume that the client page, once rendered, knows what room it wants to join | |
| var room = "abc123"; | |
| socket.on('connect', function() { | |
| // Connected, let's sign-up for to receive messages for this room | |
| socket.emit('room', room); | |
| }); |