Update as of 8.08.2021:
- Hid the bookmarks bar and fine-tuned some header styles.
If you want to add your own style to Slack, here's how.
I dunno what happened. I just wanted to try something sporty/future-y, I guess. Code for this is directly below.
Update as of 8.08.2021:
If you want to add your own style to Slack, here's how.
I dunno what happened. I just wanted to try something sporty/future-y, I guess. Code for this is directly below.
| #! /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 |
| --- | |
| - name: create some vms | |
| hosts: localhost | |
| connection: local | |
| vars_prompt: | |
| - name: "vcenter_host" | |
| prompt: "Enter vcenter host" | |
| private: no | |
| default: "vcsa" | |
| - name: "vcenter_user" |
| import datetime as dt | |
| import time | |
| import unittest | |
| def aws_age_seconds(ec2_launch_time): | |
| """ | |
| Parse the ec2 launch time string and return how old it is in seconds. | |
| """ | |
| # Strip trailing subsecond part |
I was tired of Chrome eating all my laptop resources so I decided to put some limit to it with cgroup.
As I was using Ubuntu 12.04 with support for cgroup, I installed the package cgroup-bin and add the following group to the file /etc/cgconfig.conf:
group browsers {
cpu {
# Set the relative share of CPU resources equal to 25%
cpu.shares = "256";
}| #!/bin/bash | |
| # ssh-multi | |
| # D.Kovalov | |
| # Based on http://linuxpixies.blogspot.jp/2011/06/tmux-copy-mode-and-how-to-control.html | |
| # a script to ssh multiple servers over multiple tmux panes | |
| starttmux() { | |
| if [ -z "$HOSTS" ]; then |
| #!/bin/bash -e | |
| clear | |
| echo "============================================" | |
| echo "WordPress Install Script" | |
| echo "============================================" | |
| echo "Database Name: " | |
| read -e dbname | |
| echo "Database User: " | |
| read -e dbuser | |
| echo "Database Password: " |
| X509 *cert; | |
| char *zCert; | |
| BIO *mem; | |
| zCert = // get your certificate text buffer here (C string with certificate in PEM format) | |
| mem = BIO_new(BIO_s_mem()); | |
| BIO_puts(mem, zCert); | |
| cert = PEM_read_bio_X509(mem, NULL, 0, NULL); | |
| free(zCert); | |
| BIO_free(mem); |