Commands to compile and load module:
checkmodule -M -m -o gitweb.mod gitweb.te
semodule_package -o gitweb.pp -m gitweb.mod
semodule -i gitweb.pp
Doesn't work on your system?
setenforce 0
Commands to compile and load module:
checkmodule -M -m -o gitweb.mod gitweb.te
semodule_package -o gitweb.pp -m gitweb.mod
semodule -i gitweb.pp
Doesn't work on your system?
setenforce 0
Version numbers should be the ones you want. Here I do it with the last ones available at the moment of writing.
The simplest way to install elixir is using your package manager. Sadly, at the time of writing only Fedora shows
the intention to keep its packages up to date. There you can simply sudo dnf install erlang elixir
and you are good to go.
Anyway, if you intend to work with several versions of erlang or elixir at the same time, or you are tied to
a specific version, you will need to compile it yourself. Then asdf
is your best friend.
$ rpm2cpio ../hoge.src.rpm | cpio -i |
#!/bin/bash | |
if [ -e /opt/chefdk ]; then | |
rm -rf /opt/chefdk | |
else | |
echo "can not found chefdk" | |
fi | |
rm /usr/bin/berks | |
rm /usr/bin/chef |
My objective is to have some production files ignored on specific branches. Git doesn't allow to do it.
My solution is to make a general .gitignore
file and add .gitignore.branch_name
files for the branches I want to add specific file exclusion.
I'll use post-checkout hook to copy those .gitignore.branch_name in place
of .git/info/exclude
each time I go to the branch with git checkout branch_name
.
Guide to setting up a new Ubuntu 18.04 dev environment with Ruby and Elixir installed with the asdf version management tool.
Some of these packages may already be installed
sudo apt-get install make binutils gcc build-essential \
git curl zlib1g-dev openssl libssl-dev libreadline-dev \
// shipitfile.js | |
module.exports = shipit => { | |
// Load shipit-deploy tasks | |
require('shipit-deploy')(shipit) | |
require('shipit-shared')(shipit) | |
require('shipit-submodule')(shipit); | |
var currentPath = "/var/www/tmp/shipit-frontend-deploy"; | |
var Slack = require('slack-node'); |
#!/bin/sh | |
# ================================================================ | |
# | |
# Convert a mysql database dump into something sqlite3 understands. | |
# | |
# Adapted from | |
# http://stackoverflow.com/questions/489277/script-to-convert-mysql-dump-sql-file-into-format-that-can-be-imported-into-sqlit | |
# | |
# (c) 2010 Martin Czygan <[email protected]> |