I hereby claim:
- I am momchilov on github.
- I am momchilov (https://keybase.io/momchilov) on keybase.
- I have a public key ASA3Hl0Fm2g0me8SIeF0fJ4kbbPsK6ytva15J_kaDBeliAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# Please see the following blog post for more information: | |
# | |
# https://www.hashicorp.com/blog/using-hashicorp-vault-with-chef.html | |
# | |
resource_name :vault_secret | |
property :path, String, name_property: true | |
property :destination, String |
#!/bin/bash | |
# | |
# Description: | |
# Check disk space, find and delete FILE_NAMES larger then | |
# FILES_LARGER_THEN, if disk space for the partition where | |
# FILES_DIRECTORY is located is less then DISK_SPACE_PERCENTAGE. | |
# Useful for keeping disk space under control in directories, such as | |
# /var/log. You can add it to your crontab, so it executes every | |
# 3 hours, like so: | |
# |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
require 'ipaddr' | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| |
#!/bin/bash | |
################################################################################ | |
## ## | |
## This Nagios script checks whether files exist in the specified location ## | |
## and if they have been modified in specified number of days. ## | |
## ## | |
################################################################################ | |
FILES_TO_CHECK="geoip.dat geoip.acl" # space-separated list of files to check |
#!/bin/bash | |
# this script beeps the PC speaker when there are new messages available | |
# and shows the new messaegs | |
# | |
# REQUIREMENTS: | |
# | |
# the script requires "logtail" and "beep" to function | |
# it requires kernel modules to be loaded: "pcspkr" & "snd_pcsp" |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'net/telnet' | |
require 'mac_vendor' | |
has_errors = false | |
# loading mac database | |
mac_vendor = MacVendor.new :use_local => true |
class DeviseCreateInstalls < ActiveRecord::Migration | |
def change | |
create_table(:installs) do |t| | |
## Database authenticatable | |
t.string :email, :null => false, :default => "" | |
t.string :encrypted_password, :null => false, :default => "" | |
## Recoverable | |
t.string :reset_password_token | |
t.datetime :reset_password_sent_at |
$(document).ready(function() { | |
var loginLink = $("a#login"); | |
var loginWindow = $("div#login"); | |
var loginForm = $('#login-form-dialog'); | |
var submitButton = $('#button-logindialog-submit'); | |
$.fn.submitWithAjax = function() { | |
this.submit(function() { | |
$.post(this.action, $(this).serialize(), null, "script"); | |
return false; |