- using Ansible command line:
ansible-playbook --connection=local 127.0.0.1 playbook.yml
- using inventory:
127.0.0.1 ansible_connection=local
#!/bin/bash | |
# | |
# This script moves a disk's partition. This is useful if you | |
# want to resize two parititions, making the first one smaller and the second one bigger. | |
# | |
# Note that if your partitions are not encrypted, there are GUI tools to | |
# acomplish this (Gnome's GParted) and if you are using LVM you don't need this | |
# at all because there is no problem having fragmented partitions with LVM. | |
# If you can avoid using this script, do it! Using a GUI tool for such delicate stuff | |
# helps you avoid headaches ;-) |
defaults write com.barebones.bbedit Color:Background -string "rgb(0,0,0)" | |
defaults write com.barebones.bbedit Color:CTagsIdentifier -string "rgb(57825,39937,11422)" | |
defaults write com.barebones.bbedit Color:ColorAttributesSeparately -string 1 | |
defaults write com.barebones.bbedit Color:Comment -string "rgb(21845,21845,21845)" | |
defaults write com.barebones.bbedit Color:Comment:Ruby -string "rgb(34992,34992,34992)" | |
defaults write com.barebones.bbedit Color:Foreground -string "rgb(65535,65535,65535)" | |
defaults write com.barebones.bbedit Color:Foreground:CSS -string "rgb(56342,56342,56342)" | |
defaults write com.barebones.bbedit Color:GuideContrast -string 7 | |
defaults write com.barebones.bbedit Color:HTMLAnchor -string "rgb(43690,0,0)" | |
defaults write com.barebones.bbedit Color:HTMLAttributeName -string "rgb(57528,45076,5799)" |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>BackgroundColor</key> | |
<string>rgba(0.141497,0.133242,0.149264,1.0)</string> | |
<key>CommentsColor</key> | |
<string>rgba(0.805432,0.388983,0.620188,1.0)</string> | |
<key>CtagsIdentifierColor</key> | |
<string>rgba(0.714344,0.745660,0.922185,1.000000)</string> |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <fcntl.h> | |
#include <sys/time.h> | |
#include <sys/mman.h> | |
#include <sys/types.h> | |
#include <sched.h> |
#!/bin/bash | |
# cpustatus | |
# | |
# Prints the current state of the CPU like temperature, voltage and speed. | |
# The temperature is reported in degrees Celsius (C) while | |
# the CPU speed is calculated in megahertz (MHz). | |
function convert_to_MHz { | |
let value=$1/1000 | |
echo "$value" |
if [ -f "${rvm_path}/scripts/rvm" ]; then | |
source "${rvm_path}/scripts/rvm" | |
if [ -f ".rvmrc" ]; then | |
source ".rvmrc" | |
elif [ -f ".ruby-version" ] && [ -f ".ruby-gemset" ]; then | |
rvm use `cat .ruby-version`@`cat .ruby-gemset` | |
elif [ -f ".ruby-version" ]; then | |
rvm use `cat .ruby-version` |
-- Two dashes start a one-line comment. | |
--[[ | |
Adding two ['s and ]'s makes it a | |
multi-line comment. | |
--]] | |
---------------------------------------------------- | |
-- 1. Variables and flow control. | |
---------------------------------------------------- |
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
ansible-playbook --connection=local 127.0.0.1 playbook.yml
127.0.0.1 ansible_connection=local
The setup of a bluetooth speaker on a Pi Zero W is pretty touchy.
Please get in touch via Twitter @actuino or http://www.actuino.fr/ if you've got comments or improvements to this quick draft.