Skip to content

Instantly share code, notes, and snippets.

View michalvalasek's full-sized avatar

Michal Valasek michalvalasek

View GitHub Profile
@michalvalasek
michalvalasek / README
Last active May 4, 2016 15:32 — forked from scrogson/README
Use bootstrap-sass npm package with Phoenix's brunch
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
@michalvalasek
michalvalasek / gist:372d58e741f71e5b48ea51eb2311c921
Created April 18, 2016 09:38
Installing therubyracer and libv8 gems on OSX
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
@michalvalasek
michalvalasek / appname
Created February 9, 2016 19:44
Phoenix app upstart & nginx conf
# 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;
@michalvalasek
michalvalasek / HotS_beta_keys.txt
Created April 9, 2015 13:31
Heroes of the Storm Beta Keys
1) PNK7EK-8K64-J7Z8GV-MBGP-CB47BY
2) H4EXZ9-JRHE-6BHXK2-FDBJ-J8VNKK
3) BT89G6-NJXP-GBCDER-N6FX-WPCZ6M
4) M2WJNB-FKDX-MCY4F9-PMNW-HR2DFW
@michalvalasek
michalvalasek / keybase.md
Created February 27, 2015 12:18
keybase.md

Keybase proof

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:

@michalvalasek
michalvalasek / index.html
Created December 1, 2014 13:39
Kamnamenu widget testing page
<!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">
@michalvalasek
michalvalasek / gist:5676389
Created May 30, 2013 08:02
Delete all .svn files (OSX)
find . -name .svn -type d -print0 |xargs -0 rm -rf
@michalvalasek
michalvalasek / gist:5636527
Created May 23, 2013 14:35
In the Beginning was the Command Line

In the Beginning was the Command Line

by Neal Stephenson

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

#!/bin/bash
COMPONENT="QuickTimeUSBVDCDIgitizer.component"
ORIG="/System/Library/QuickTime"
BACKUP="$ORIG/.iSightBackup"
echo "This action requires admin rights"
if [ ! -d $BACKUP ];
then
@michalvalasek
michalvalasek / gist:4233981
Created December 7, 2012 15:31
Devop / Sysadmin needed!

We're looking for an experienced Linux systems administrator to join the Operations team. This person will be involved in all aspects of running and scaling the service, including server platforms, operating systems, storage management, automation, and overall systems management.

Responsibilities:

  • Involved in all aspects of building and maintaining the production infrastructure and services
  • Ensure proper security, monitoring, alerting and reporting for the infrastructure
  • Troubleshoot and resolve production issues
  • Help with the capacity planning process
  • Help develop and maintain processes, tools, and documentation in support of production
  • Participate in the evaluation of new software, hardware, and infrastructure solutions
  • Participation in on-call rotation