Skip to content

Instantly share code, notes, and snippets.

View holms's full-sized avatar

Roman Gorodeckij holms

View GitHub Profile
{
"name": "**role-name**",
"chef_type": "role",
"json_class": "Chef::Role",
"default_attributes": {},
"override_attributes": {},
"description": "*role description*",
"run_list": [
"role[default]",
"hoge::nice"
@holms
holms / app.rb
Created November 7, 2013 17:48 — forked from jgarber/app.rb
run_list(
'recipe[chef-solo-search]',
'recipe[rails_application]'
)
default_attributes(
rails: {
app: {name: "sample_app"},
deploy: {
repository: "https://github.com/jgarber/sample_app_2nd_ed.git"
@holms
holms / install-chef-server.md
Last active December 27, 2015 17:09
Provision your server with chef-server, using chef-solo (believe it's faster then by hand) See this manual if you wan't to know why - http://railsware.com/blog/2013/04/19/getting-started-with-chef-server-part-1/

INSTALL CHEF-SERVER

Use-case of this manual

We will setup chef-solo, and then, we'll provision your specified node with chef-server cookbook. Also I'll show how to setup your workstation with berkshelf and knife.

The use-case is to show how to work with chef repository, which you can store comfortably in git.

@holms
holms / install-metasploit-debian.md
Last active October 10, 2020 14:13
metasploit install in debian wheezy

Debian Wheezy Metasploit Setup

Install depedencies

apt-get install build-essential libreadline-dev libssl-dev libpq5 libpq-dev libreadline5 libsqlite3-dev libpcap-dev openjdk-7-jre subversion git-core autoconf postgresql pgadmin3 curl zlib1g-dev libxml2-dev libxslt1-dev vncviewer libyaml-dev ruby1.9.3 nmap -y
gem install --verbose --debug pcaprub wirble pg sqlite3 msgpack activerecord redcarpet rspec simplecov yard bundler
@holms
holms / install-metasploit-osx.md
Last active August 19, 2023 19:12
Install Metasploit with Armitage on OSX Maverics
# Update, upgrade and install development tools:
apt-get update
apt-get -y upgrade
apt-get -y install build-essential git-core curl libssl-dev \
libreadline5 libreadline5-dev \
zlib1g zlib1g-dev \
libmysqlclient-dev \
libcurl4-openssl-dev \
libxslt-dev libxml2-dev
@holms
holms / mbr2gpt.md
Last active March 20, 2022 16:39
Create GPT partition table and Create logical volumes

Create GPT partition table

Sorry but you HAVE to go with rescue disk.

parted /dev/sdb
(parted) mklabel gpt
(parted) mkpart primary 0GB 100%
(parted) print
@holms
holms / gist:7768455
Created December 3, 2013 12:32
Xorg: fast keyboard, fast rate
sudo xset r rate 100 80
@holms
holms / virt-manager-osx
Last active January 31, 2019 23:38
Install virt-manager osx
git clone git://git.fedorahosted.org/virt-manager.git
cd virt-manager
sudo port -v install intltool py27-pygtk
sudo python setup.py install
@holms
holms / batch-mkvmerge.sh
Created January 16, 2014 00:03
Batch mkvmerge
ls *.mkv | while read i; do mkvmerge -o "converted/${i}" "${i}" "${i%mkv}mka" ; done