EPS to SVG using Inkscape 
Author: Josef Jezek
# Install Inkscape on Ubuntu
sudo apt-get install inkscape| The MIT License (MIT) | |
| Copyright (c) 2015 J Kishore Kumar | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
| #!/bin/bash | |
| # This way you can customize which branches should be skipped when | |
| # prepending commit message. | |
| if [ -z "$BRANCHES_TO_SKIP" ]; then | |
| BRANCHES_TO_SKIP=(master develop test) | |
| fi | |
| BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
| BRANCH_NAME="${BRANCH_NAME##*/}" |
| # SSL self signed localhost for rails start to finish, no red warnings. | |
| # 1) Create your private key (any password will do, we remove it below) | |
| $ openssl genrsa -des3 -out server.orig.key 2048 | |
| # 2) Remove the password | |
| $ openssl rsa -in server.orig.key -out server.key |

Author: Josef Jezek
# Install Inkscape on Ubuntu
sudo apt-get install inkscape| /* Atomic boolean for golang | |
| A process-atomic boolean that can be used for signaling between goroutines. | |
| Default value = false. (nil structure) | |
| */ | |
| package main | |
| import "sync/atomic" |
| server { | |
| listen 80; | |
| root /var/www/yourdomain.com/public; | |
| index index.html index.htm; | |
| server_name yourdomain.com; | |
| location / { | |
| default_type "text/html"; |
| // Copyright (c) 2017 Ismael Celis | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights | |
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| // copies of the Software, and to permit persons to whom the Software is | |
| // furnished to do so, subject to the following conditions: | |
| // The above copyright notice and this permission notice shall be included in all |
I've been using a lot of Ansible lately and while almost everything has been great, finding a clean way to implement ansible-vault wasn't immediately apparent.
What I decided on was the following: put your secret information into a vars file, reference that vars file from your task, and encrypt the whole vars file using ansible-vault encrypt.
Let's use an example: You're writing an Ansible role and want to encrypt the spoiler for the movie Aliens.
| // Object.create Partial Polyfill | |
| // Support for second parameter is non-standard | |
| if (typeof Object.create !== 'function') { | |
| Object.create = function(o, props) { | |
| // Create new object whose prototype is o | |
| function F() {} | |
| F.prototype = o; | |
| result = new F(); | |
| // Copy properties of second parameter into new object | |
| if (typeof(props) === "object") { |
| package main | |
| import "fmt" | |
| var enums []string | |
| type Enum int | |
| func (e Enum) String() string { | |
| return enums[int(e)] |