Notes taken from Rob Pike's presentation 'Google I/O 2012 - Go Concurrency Patterns'.
The code is as follows:
c := boring("boring!") // function returning a channel
for i := 0; i < 5; i++ {
# pretty sudo prompt | |
read -r -d '' SUDOPROMPT << EOM | |
πΊπ³πΈπ·π·πΈπ»π·π·πΈπΈπΈπΈπ·πΌπ·π³πΊπΌπΊπΈπ»πΌπΌπ³π³πΌπΊπ»π·ππ·πΌπ»π³πΈπ·π·π»πΈ | |
πΈπ¦π»πΈπ³π·πΈπ·πΈπ³πΈπ»π³ππ»π·π·πΌπ»πΊπΊπ»πΌπ»π»πΌπΊπ»π³πΌπ³πΊπ³π·π»πΌπ·πΌπ»πΈ | |
π³πΈπ»πΊπ»π³πΊπΊπ»πΊπΈπ»π·π·πΌπ»πΊπΌπ»π»π·π³π»πΈπ³π·π»π³π³π³π³πΌπ³π³πΊπ·π³πΊπ³πΊ | |
π¦πΈπ»πΊπΊπ³πΈπΈπΌπ»πΊπΌπ·πΈπ³πΌπΊπΈπΊπ·π»π·πΊπΊπ³π·π·π°πΈπ»π³πΈπΌπ·πΌπ³π·πΉπΌπΊ | |
π·π³π»πΈπΈπΌπ°π·πΊπ·πΊπ»π·πΈπΊπ»π³π»π·π»π»πΊπΈπΈπΊπ»πΈπ»π³π³π»π¦π»πΌπΌπ»π»πΊπ³π° | |
πΌπ¦π»π³πΈπΈπ³π·πΊπΌπ³π·πΈπ»πΌπ»ππ»πΌπ·πΊπΌπΊπΈπΊπ¦π·πΈπ·π»π»πΊπΌπ·ππΈπ·πΌπΈπΉ | |
πΈπ³π»πΌπ»π³πΈπ·πΊπ·π·πΌπ»π·π»πΊπΌπΌπ³πΈπ»π»πΈπΌπΌπΈπ³πΊπ»π»π³πΊπ·π°π»πΌπΉπ·π·π³ | |
πΌπ·π»πΈπΌπ³π»π»π³π·πΌπ»πΊπΊπΊπΊπΊπ³π»πΌπ·πΈπΈπ»πΊπ»π³πΈπ·πΊπΊπΌπΈπΊπ»π»π·πΈπ»π· |
Notes taken from Rob Pike's presentation 'Google I/O 2012 - Go Concurrency Patterns'.
The code is as follows:
c := boring("boring!") // function returning a channel
for i := 0; i < 5; i++ {
Table of Contents
#! /usr/bin/env python3 | |
"""Fixing bluetooth stereo headphone/headset problem in debian distros. | |
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197 | |
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone. | |
This will be only fixes the bluez5 problem mentioned above . | |
Licence: Freeware |
Typing vagrant
from the command line will display a list of all available commands.
Be sure that you are in the same directory as the Vagrantfile when running these commands!
vagrant init
-- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.vagrant init <boxpath>
-- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64
.vagrant up
-- starts vagrant environment (also provisions only on the FIRST vagrant up)#!/bin/bash | |
# Copyright Β© 2021 Chirag Bhatia | |
# 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 copies or substantial portions of the Software. | |
# THE SOFTWARE IS PROVIDED βAS ISβ, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOF |
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
#set -g default-terminal screen-256color | |
set -g status-keys vi | |
set -g history-limit 10000 |