Skip to content

Instantly share code, notes, and snippets.

View elmariofredo's full-sized avatar
💭
building Cloud Native Thermostat 🔥 🥶

Mario Vejlupek elmariofredo

💭
building Cloud Native Thermostat 🔥 🥶
View GitHub Profile
var gulp = require('gulp'),
spawn = require('child_process').spawn,
node;
var startServer = function() {
if (node) node.kill()
node = spawn('node', ['--harmony', 'index.js'], {
stdio: 'inherit'
})
# Put this in /etc/logrotate.d/mongodb
# http://stackoverflow.com/questions/5004626/mongodb-log-file-growth
/var/log/mongo/*.log {
daily
rotate 30
compress
dateext
missingok
notifempty
# Put this in /etc/logrotate.d/mongodb
# http://stackoverflow.com/questions/5004626/mongodb-log-file-growth
/var/log/mongo/*.log {
daily
rotate 30
compress
dateext
missingok
notifempty
# Everything you need to do to get started with Rails 2.3.8
#
# As of June 14th, 2010 @ 2:30 p.m. MST
#
# This gist now features instructions to get Rails 3 up and running with:
# - Ruby 1.8.7-p174
# - Bundler 0.9.26
# - Cucumber 0.8.0
# - Rspec 1.3.0 + Rspec-Rails 1.3.2
# - RVM
@elmariofredo
elmariofredo / vagrant.org
Created October 17, 2012 15:06
CentOS Box for Vagrant
@elmariofredo
elmariofredo / mysql56.rb
Last active December 19, 2015 12:49 — forked from takumn/mysql56.rb
require 'formula'
class Mysql56 < Formula
homepage 'http://dev.mysql.com/doc/refman/5.6/en/'
url 'http://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.12.tar.gz/from/http://cdn.mysql.com/'
version '5.6.12'
sha1 'c48ae4061c23db89de7ebd2d25abbc36283bab69'
# bottle do
# sha1 '3c5b57df466eb538db58654c5f046ddf7bc675e9' => :mountainlion
@elmariofredo
elmariofredo / openvpn.md
Last active December 26, 2015 18:29 — forked from padde/openvpn.md

OpenVPN

Generate Server Certificates

wget https://github.com/OpenVPN/easy-rsa/archive/master.zip
unzip master.zip
cd easy-rsa-master/easyrsa3
cp vars.example vars
@elmariofredo
elmariofredo / app\app.component.ts
Last active July 1, 2016 11:06 — forked from Hotell/app\app.component.ts
ngMetadata transclude=element terminal=true
import { Component } from 'ng-metadata/core';
import { BeerComponent } from './beer.component.ts';
import { FoamDirective } from './foam.directive.ts';
import { TasteDirective } from './taste.directive.ts';
@Component({
selector: 'my-app',
template: '<my-beer my-foam my-taste></my-beer>',
directives: [ BeerComponent, TasteDirective, FoamDirective ]
})
@elmariofredo
elmariofredo / css_regression_testing.md
Created December 13, 2016 13:13 — forked from cvrebert/css_regression_testing.md
Survey of screenshot-based CSS testing tools

Currently considering https://github.com/webdriverio/webdrivercss


Core Goals:

  • Can test in up-to-date versions of all major browsers
  • Can test on up-to-date versions of all major OSes
  • Can test in IE9 (because Bootstrap v4 will support IE9+)
  • Don't want to have to setup/maintain our own cluster of VMs running all the necessary OSes (and all the versions of Windows)
  • Workflow for management of reference/baseline/norm screenshots
@elmariofredo
elmariofredo / teamcity-agent.service
Last active March 4, 2021 10:13 — forked from BenWhitehead/teamcity-agent.service
systemd service files for running TeamCity (create in /usr/lib/systemd/system)
[Unit]
Description=TeamCity Build Agent
After=network.target
[Service]
Type=forking
RemainAfterExit=yes
PIDFile=/opt/tc01/logs/buildAgent.pid
Environment="JAVA_HOME=/usr/java/latest"
ExecStart=/opt/tc01/bin/agent.sh start