About twenty years ago Jobs and Wozniak, the founders of Apple, came up with the very strange idea of selling information processing machines for use in the home. The business took off, and its founders made a lot of money and received the credit they deserved for being daring visionaries. But around the same time, Bill Gates and Paul Allen came up with an idea even stranger and more fantastical: selling computer operating systems. This was much weirder than the idea of Jobs and Wozniak. A computer at least had some sort of physical reality to it. It came in a box, you could open it up and plug it in and watch lights blink. An operating system had no tangible incarnation at all. It arrived on a disk, of course, but the disk was, in effect, nothing more than the box that the OS came in. The product itself was a very long string of ones and zeroes that, when properly installed and coddled, gave you the ability to manipulate other very long string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
COMPONENT="QuickTimeUSBVDCDIgitizer.component" | |
ORIG="/System/Library/QuickTime" | |
BACKUP="$ORIG/.iSightBackup" | |
echo "This action requires admin rights" | |
if [ ! -d $BACKUP ]; | |
then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name .svn -type d -print0 |xargs -0 rm -rf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset=utf-8> | |
<title>Kamnamenu.sk Widget</title> | |
<link rel="stylesheet" media="screen" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css"> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="row" id="header"> |
I hereby claim:
- I am michalvalasek on github.
- I am michalvalasek (https://keybase.io/michalvalasek) on keybase.
- I have a public key whose fingerprint is 001E ACCB 3AD7 D343 3FA8 121B 6FAE 5680 299B C446
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) PNK7EK-8K64-J7Z8GV-MBGP-CB47BY | |
2) H4EXZ9-JRHE-6BHXK2-FDBJ-J8VNKK | |
3) BT89G6-NJXP-GBCDER-N6FX-WPCZ6M | |
4) M2WJNB-FKDX-MCY4F9-PMNW-HR2DFW |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nginx config in /etc/nginx/sites-available/appname | |
upstream appname { | |
server 127.0.0.1:8888; | |
} | |
# The following map statement is required | |
# if you plan to support channels. See https://www.nginx.com/blog/websocket-nginx/ | |
map $http_upgrade $connection_upgrade { | |
default upgrade; | |
'' close; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When bundle install fails because it can't install libv8 (dependency of therubyracer) try this: | |
brew tap homebrew/versions | |
brew install v8-315 | |
gem install libv8 -v '3.16.14.13' -- --with-system-v8 | |
gem install therubyracer -- --with-v8-dir=/usr/local/opt/v8-315 | |
bundle install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) install npm packages | |
2) update brunch-config.js | |
3) remove Bootstrap from web/static/css/app.css | |
4) rename web/static/css/app.css to web/static/css/app.scss | |
5) update web/static/css/app.scss |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Article | |
include Mongoid::Document | |
field :title, type: String | |
embeds_many :widgets, as: :widgetable | |
end | |
class Widget | |
include Mongoid::Document |