This file contains 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
nfs-common: | |
pkg.installed | |
# set up nfs mount dir | |
/mnt/nfs: | |
file.directory: | |
- user: root | |
- group: root | |
- dir_mode: 755 | |
- file_mode: 644 |
This file contains 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
root@vmbode6:/srv/salt# cat top.sls | |
base: | |
'*': | |
- nfs-users.users | |
'bb*': | |
- cron-reboot | |
- ping-reboot | |
- timezone | |
- files |
This file contains 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
post do | |
authenticated_as_admin! | |
required_attributes! [:email, :name, :username] | |
attrs = attributes_for_keys [:email, :name, :skype, :linkedin, :twitter, :projects_limit, :username, :extern_uid, :provider, :bio] | |
#parse password strategy params | |
expired = params[:expired_password] && (params[:expired_password].to_i > 0) | |
force_random = params[:force_random_password] && (params[:force_random_password].to_i > 0) |
This file contains 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
post do | |
authenticated_as_admin! | |
required_attributes! [:email, :name, :username] | |
attrs = attributes_for_keys [:email, :name, :skype, :linkedin, :twitter, :projects_limit, :username, :extern_uid, :provider, :bio] | |
#parse password strategy params | |
expired = params[:expired_password] && (params[:expired_password].to_i > 0) | |
force_random = params[:force_random_password] && (params[:force_random_password].to_i > 0) |
This file contains 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
--- | |
title: Home | |
--- | |
## Welcome | |
<img src="/images/haskell-logo.png" style="float: right; margin: 10px;" /> | |
Welcome to my blog! |
This file contains 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
Thus the weak members of civilized societies propagate their kind. No one who has attended to the breeding of domestic animals will doubt that this must be highly injurious to the race of man. It is surprising how soon a want of care, or care wrongly directed, leads to the degeneration of a domestic race; but excepting in the case of man himself, hardly any one is so ignorant as to allow his worst animals to breed. | |
The aid which we feel impelled to give to the helpless is mainly an incidental result of the instinct of sympathy, which was originally acquired as part of the social instincts, but subsequently rendered, in the manner previously indicated, more tender and more widely diffused. Nor could we check our sympathy, even at the urging of hard reason, without deterioration in the noblest part of our nature. The surgeon may harden himself whilst performing an operation, for he knows that he is acting for the good of his patient; but if we were intentionally to neglect the weak and helpless, it could only b |
This file contains 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
server { | |
listen 80; ## listen for ipv4; this line is default and implied | |
listen 443 ssl; | |
#listen [::]:80 default_server ipv6only=on; ## listen for ipv6 | |
ssl_certificate /etc/ssl/certs/lerlacher.wildcard.pem; | |
ssl_certificate_key /etc/ssl/private/lerlacher.key; | |
ssl_prefer_server_ciphers on; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; |
This file contains 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
erlacher@vmbode6:~$ aptitude show python-jinja2 | |
Package: python-jinja2 | |
State: installed | |
Automatically installed: yes | |
Version: 2.6-1 | |
Priority: optional | |
Section: python | |
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> | |
Architecture: amd64 | |
Uncompressed Size: 1.020 k |
This file contains 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
CREATE ROLE mailboxer; | |
ALTER ROLE mailboxer WITH NOSUPERUSER INHERIT NOCREATEROLE NOCREATEDB LOGIN NOREPLICATION PASSWORD 'md5xxx'; | |
CREATE ROLE postgres; | |
ALTER ROLE postgres WITH SUPERUSER INHERIT CREATEROLE CREATEDB LOGIN REPLICATION PASSWORD 'md5xxx'; | |
-- | |
-- Database creation | |
-- | |
CREATE DATABASE mail WITH TEMPLATE = template0 OWNER = mailboxer; |
This file contains 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
-------------------------------------------------------------------------------- | |
{-# LANGUAGE OverloadedStrings #-} | |
import Data.Monoid (mappend, mconcat) | |
import Control.Applicative | |
import Hakyll | |
import Hakyll.Web.Tags | |
-------------------------------------------------------------------------------- | |
main :: IO () |