Be sure to replace /dev/sda
with the name of the drive (n.b. not the partition) containing Arch.
# pacman -S grub-bios intel-ucode
# grub-install /dev/sda
# mkinitcpio -p linux
# store all solarized files in one place | |
mkdir ~/.solarized | |
cd ~/.solarized | |
# http://www.webupd8.org/2011/04/solarized-must-have-color-paletter-for.html | |
git clone https://github.com/seebi/dircolors-solarized.git | |
eval `dircolors ~/.solarized/dircolors-solarized/dircolors.256dark` | |
ln -s ~/.solarized/dircolors-solarized/dircolors.256dark ~/.dir_colors | |
git clone https://github.com/sigurdga/gnome-terminal-colors-solarized.git |
#!/bin/bash | |
# Download it. | |
# Name it as 'theme' | |
# Place it in /usr/bin/ | |
# shell_prompt$ theme | |
echo ' | |
3024 Day ( 1) 3024 Night ( 2) AdventureTime ( 3) | |
Afterglow ( 4) AlienBlood ( 5) Argonaut ( 6) | |
Arthur ( 7) Atom ( 8) Belafonte Day ( 9) | |
Belafonte Night ( 10) BirdsOfParadise ( 11) Blazer ( 12) |
A warning occurred (42 apples) | |
An error occurred |
In order to work the Bose QC35 Headset Bluetooth do the following: | |
- sudo pacman -Syu pulseaudio-alsa pulseaudio-bluetooth bluez bluez-libs bluez-utils | |
- turn off bluetooth from your computer | |
- sudo btmgmt ssp of | |
- gpasswd -a YOUR_USER lp |
#!/usr/bin/env python3 | |
import concurrent.futures.thread | |
import sys | |
import time | |
from concurrent.futures import ThreadPoolExecutor, as_completed | |
def remove_file(path): | |
print('Removing file %s' % path) |
Mercurial Commands
Commands | Description |
---|---|
hg pull | get latest changes like git pull use flags like -u IDK why yet |
hg add | only for new files |
hg commit | add changes to commit with -m for message just like git |
hg addremove | adds new files and removes file not in your file system |
hg incoming | see changes commited by others |
hg outgoing | see local commits |
# Below are the dependencies required for installing the common combination of numpy, scipy, pandas and matplotlib | |
# in an Alpine based Docker image. | |
FROM alpine:3.4 | |
RUN echo "http://dl-8.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories | |
RUN apk --no-cache --update-cache add gcc gfortran python python-dev py-pip build-base wget freetype-dev libpng-dev openblas-dev | |
RUN ln -s /usr/include/locale.h /usr/include/xlocale.h | |
RUN pip install numpy scipy pandas matplotlib | |
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
It became a big deal:
http://www.techmeme.com/070812/p1#a070812p1
The two files are index.php (the homepage) and search.php (the search page)
This is how to connect to another host with your docker client, without modifying your local Docker installation or when you don't have a local Docker installation.
First be sure to enable the Docker Remote API on the remote host.
This can easily be done with a container.
For HTTP connection use jarkt/docker-remote-api.