Skip to content

Instantly share code, notes, and snippets.

Avatar
🍰
is a lie

Dmitry Chirkin josser

🍰
is a lie
View GitHub Profile
View gist:812b8b2a92a38e4b479c
<?php
// dnepr -> ujgorod -> poltava -> kharkov -> kiev => odessa -> lvov -> doceck
$tickets = [
['start' => 'kiev', 'finish' => 'odessa'],
['start' => 'dnepr', 'finish' => 'ujgorod'],
['start' => 'odessa', 'finish' => 'lvov'],
['start' => 'kharkov', 'finish' => 'kiev'],
['start' => 'poltava', 'finish' => 'kharkov'],
View gist:ccad69a7c767aa0d3159
ai_flags The ai_flags field to which the hints parameter points
shall be set to zero or be the bitwise-inclusive OR of one
or more of the values AI_ADDRCONFIG, AI_CANONNAME,
AI_NUMERICHOST, AI_NUMERICSERV and AI_PASSIVE.
AI_ADDRCONFIG If the AI_ADDRCONFIG bit is set, IPv4
addresses shall be returned only if an
IPv4 address is configured on the local
system, and IPv6 addresses shall be
returned only if an IPv6 address is con‐
@josser
josser / gist:d3e4524be46afccc5227
Created Feb 19, 2015
freebsd mhash build with clang++
View gist:d3e4524be46afccc5227
npm install mhash
> mhash@1.1.0 install /usr/home/josser/test/node_modules/mhash
> node-gyp rebuild
child_process: customFds option is deprecated, use stdio instead.
gmake: Entering directory '/usr/home/josser/test/node_modules/mhash/build'
ACTION binding_gyp_libmhash_target_test .
make[1]: don't know how to make rw. Stop
View gist:c033d570b2ce52339736
Files 2.85/Application/BCM/hifi/CFG_HW_RADIO_MB500/bcm_hifi.gz and 2.86/Application/BCM/hifi/CFG_HW_RADIO_MB500/bcm_hifi.gz differ
Files 2.85/Application/BCM/hifi/CFG_HW_RADIO_MB500/bcm_hifi.gz.inf and 2.86/Application/BCM/hifi/CFG_HW_RADIO_MB500/bcm_hifi.gz.inf differ
Files 2.85/Application/BCM/nav_nit/bcm_nav_nit.gz and 2.86/Application/BCM/nav_nit/bcm_nav_nit.gz differ
Files 2.85/Application/BCM/nav_nit/bcm_nav_nit.gz.inf and 2.86/Application/BCM/nav_nit/bcm_nav_nit.gz.inf differ
Files 2.85/Application/BCM/version/bcm_version.gz and 2.86/Application/BCM/version/bcm_version.gz differ
Files 2.85/Application/BCM/version/bcm_version.gz.inf and 2.86/Application/BCM/version/bcm_version.gz.inf differ
Files 2.85/Application/BTL/FS_Storage_Ctrl.gz and 2.86/Application/BTL/FS_Storage_Ctrl.gz differ
Files 2.85/Application/BTL/FS_Storage_Ctrl.gz.inf and 2.86/Application/BTL/FS_Storage_Ctrl.gz.inf differ
Files 2.85/Application/Boot/RNEG20XX_3WC_2_80/DG4/BOOTROM.DAT and 2.86/Application/Boot/RNEG20XX_3WC_2_80/DG4/BOOTRO
View gist:294616a7e1d1d20df5a6
var domain = require('domain');
var express = require('express');
var fs = require('fs');
var _ = require('lodash');
module.exports = function(parent, options){
var directory = options.directory || __dirname + '/../controllers';
fs.readdirSync(directory).forEach(function(name){
View avahi manual
Install And Configure The Avahi Service
Run the following two commands.
Gentoo:
# echo "net-dns/avahi -gdbm -introspection" >> /etc/portage/package.use
# emerge avahi
The first command tells portage (Gentoo's package management system) to build avahi without support for gdbm and introspection. These two features are not required and would cause portage to pull in several more uncessary packages when building avhai.
The second command tells portage to download, compile, and install the avahi service.
View gist:2768779
/var/run/ld-elf.so.hints:
search directories: /lib:/usr/lib:/usr/lib/compat:/usr/local/lib:/usr/local/lib/compat/pkg:/usr/local/lib/mysql:/usr/local/lib/virtualbox
0:-lc.7 => /lib/libc.so.7
1:-lcrypt.5 => /lib/libcrypt.so.5
2:-lkvm.5 => /lib/libkvm.so.5
3:-lm.5 => /lib/libm.so.5
4:-lmd.5 => /lib/libmd.so.5
5:-lncurses.8 => /lib/libncurses.so.8
6:-lncursesw.8 => /lib/libncursesw.so.8
7:-lsbuf.6 => /lib/libsbuf.so.6
View josser.zsh-theme
# prompt style and colors based on Steve Losh's Prose theme:
# http://github.com/sjl/oh-my-zsh/blob/master/themes/prose.zsh-theme
#
# vcs_info modifications from Bart Trojanowski's zsh prompt:
# http://www.jukie.net/bart/blog/pimping-out-zsh-prompt
#
# git untracked files modification from Brian Carper:
# http://briancarper.net/blog/570/git-info-in-your-zsh-prompt
function virtualenv_info {
View config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GRUB configure 2.00, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --with-platform=efi --enable-grub-fstest=no --enable-grub-mkfont=no --disable-nls --enable-efiemu=no
## --------- ##
## Platform. ##
View gist:3621834
.modal-body.c-create-body
.c-create-address
input.pull-left.c-location-input(type='text').pull-left
.clear-both
button.close.c-create-close(type="button", data-dismiss="modal")&times;
.c-create-map-container
.alert.alert-error.c-create-map-note
span= __i('change-loc')
a.close(data-dismiss="alert")&times;
.c-crete-map#create-map