Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
{ config, pkgs, lib, ... }: | |
{ | |
# IOMMU configuration | |
boot.kernelParams = [ "amd_iommu=on" "pcie_aspm=off" ]; | |
boot.kernelModules = [ "kvm-amd" "vfio_virqfd" "vfio_pci" "vfio_iommu_type1" "vfio" ]; | |
boot.extraModprobeConfig = '' | |
options vfio-pci ids=10de:13c2,10de:0fbb | |
options kvm ignore_msrs=1 | |
''; |
#!/bin/bash | |
target_branch="production" | |
working_tree="PATH_TO_DEPLOY" | |
while read oldrev newrev refname | |
do | |
branch=$(git rev-parse --symbolic --abbrev-ref $refname) | |
if [ -n "$branch" ] && [ "$target_branch" == "$branch" ]; then | |
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get upgrade | |
ln -s "/mnt/c/Users/Daniel/Documents/homeflow" ~/homeflow | |
ln -s "/mnt/c/Users/Daniel/Documents" ~/documents | |
mkdir .ssh | |
cp documents/id* .ssh/ | |
sudo chmod 600 .ssh/* | |
cd homeflow/attis | |
git pull |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
""" | |
An attempt to make a safe evaluator of a subset of Python expressions. | |
This is mostly a proof-of-concept for getting feedback, it has not been | |
thoroughly checked for safety, use at your own risk :) | |
It uses the Python ast module to parse the expression, but all evaluation is | |
done by walking the ast, it is not directly executed by the Python runtime. | |
Nosetests are provided below including coverage of supported and unsupported |
#!/bin/bash | |
# | |
# Open new Terminal tabs from the command line | |
# | |
# Author: Justin Hileman (http://justinhileman.com) | |
# | |
# Installation: | |
# Add the following function to your `.bashrc` or `.bash_profile`, | |
# or save it somewhere (e.g. `~/.tab.bash`) and source it in `.bashrc` | |
# |
@import "colors"; | |
@import "buttons.scss"; | |
@import "compass/css3"; | |
@mixin tabs { | |
float: left; | |
width: 100%; | |
background: transparent; | |
margin: 0!important; | |
height: 43px; |
// Block Grid | |
// Technique adapted from Foundation 5 for Bootstrap 3. | |
// https://github.com/zurb/foundation/blob/f755d8704123f86c281ede0b171881e2672f150d/scss/foundation/components/_block-grid.scss | |
// Original LESS Version by Christopher Mitchell (https://gist.github.com/ChrisTM) | |
// Converted to SCSS by Rasmus Jürs (https://github.com/Jursdotme) | |
[class*="block-grid-"] { | |
display: block; | |
margin: -($grid-gutter-width/2); | |
padding: 0; |
<?php foreach (c::get('lang.available') as $lang): ?> | |
<a<?php if($lang == c::get('lang.current')) echo ' class="active"' ?> href="<?php echo url($page->uid(), $lang) ?>"> | |
<img src="<?php echo url('assets/images/flags/' . $lang . '.png') ?>" alt="" /><?php echo $lang ?> | |
</a> | |
<?php endforeach ?> |