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 |