wget http://download.icu-project.org/files/icu4c/54.1/icu4c-54_1-src.tgz
tar -xvf icu4c-54_1-src.tgz
cd icu/source
./configure
make -j
make install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
modprobe -v btusb | |
echo "0b05 17cb" >> /sys/bus/usb/drivers/btusb/new_id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# ^^^ YAML documents must begin with the document separator "---" | |
# | |
#### Example docblock, I like to put a descriptive comment at the top of my | |
#### playbooks. | |
# | |
# Overview: Playbook to bootstrap a new host for configuration management. | |
# Applies to: production | |
# Description: | |
# Ensures that a host is configured for management with Ansible. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script to instruct the Mac how to route packets to the | |
# software defined network where containers created via boot2docker | |
# reside. This lets you casually directly to ports (ssh, http, etc. etc.) | |
# on those containers. | |
function ERROR(){ echo "ERROR: $*" ; } | |
function FAIL(){ echo "FAILING: $*" ; exit 1; } | |
IP_OF_DOCKER_HOST="172.16.42.43" | |
SDN_NET_FOR_CONTAINERS=$(docker-osx ssh -c 'ip route show' 2> /dev/null | awk '/docker0/{print $1}' ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
void findCombinations(std::string c, std::string p, std::vector<std::string> &v) { | |
int i = 0; | |
int len = c.length(); | |
if (p.length() < len) { | |
for (i = 0; i < len; i++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$types = array( | |
"ai" => "application/postscript", | |
"aif" => "audio/x-aiff", | |
"aifc" => "audio/x-aiff", | |
"aiff" => "audio/x-aiff", | |
"asc" => "text/plain", | |
"atom" => "application/atom+xml", | |
"au" => "audio/basic", | |
"avi" => "video/x-msvideo", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let g:vdebug_options = {"path_maps": {"/path/on/docker-container": "/path/on/host"}, "break_on_open": 0, "watch_window_style": "compact", "server" : "172.17.42.1"} |
until nc -z $(docker inspect --format='{{.NetworkSettings.IPAddress}}' $CONTAINER_NAME) $SERVICE_PORT; do echo "waiting for service in container..."; sleep 0.5; done
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 2.8) | |
find_package(BISON) | |
find_package(FLEX) | |
add_definitions(-D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS) | |
BISON_TARGET(MyParser parser.y ${CMAKE_CURRENT_BINARY_DIR}/parser.cpp) | |
FLEX_TARGET(MyScanner tokens.l ${CMAKE_CURRENT_BINARY_DIR}/tokens.cpp) | |
ADD_FLEX_BISON_DEPENDENCY(MyScanner MyParser) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Recycle Zombie connections | |
net.inet.tcp.fast_finwait2_recycle=1 | |
net.inet.tcp.maxtcptw=200000 | |
# Increase number of files | |
kern.maxfiles=65535 | |
kern.maxfilesperproc=16384 | |
# Increase page share factor per process | |
vm.pmap.pv_entry_max=54272521 |
OlderNewer