Moved, see VIM Cheatsheet
| $ grep 'node\[:network\]\[:interfaces\].' \#chef.log | |
| 10:15 < mkent_> node[:network][:interfaces][:eth1][:addresses] | |
| 22:24 <+Damm> msf, just pulling in the node[:network][:interfaces] attributes | |
| 20:44 < randybias> node[:network][:interfaces][:eth0][:addresses] | |
| 09:13 < sinBot> so fujin if I wanted to use that in an erb template, it'd be <%= @node[:network][:interfaces]["en1"]["addresses"].select{address}.flatten.to_str %> ? | |
| 12:27 < cwj> if i have an ipv4 ip address set on eth0, will it always be in @node[:network][:interfaces][:eth0][1] ? | |
| 02:19 < pluesch0r> however, i don't seem to be able to access @node[:network][:interfaces]... from inside the attributes file. | |
| 19:52 <@jtimberman> or node[:network][:interfaces][:eth0][:addresses][0] | |
| 20:09 < seryl> well, it's searchable. I'm trying the @node[:network][:interfaces][:eth0][:addresses][0] route, but getting blanks right now, playing around with it in chef solo | |
| 20:29 < kallistec> pp node[:network][:interfaces].current_attribute |
| // suggested shell cmd line to run this: | |
| // | |
| // mongo --shell example2.js | |
| // | |
| // Note: the { out : … } parameter is for mongodb 1.8+ | |
| db.things.insert( { _id : 1, tags : ['dog', 'cat'] } ); | |
| db.things.insert( { _id : 2, tags : ['cat'] } ); | |
| db.things.insert( { _id : 3, tags : ['mouse', 'cat', 'dog'] } ); | |
| db.things.insert( { _id : 4, tags : [] } ); |
| ಠ_ಠ | |
| ( ͡° ͜ʖ ͡°) | |
| ¯\_(ツ)_/¯ | |
| (╯°□°)╯︵ ┻━┻ | |
| http://www.fileformat.info/convert/text/upside-down.htm | |
| WRTTN http://wrttn.me/30dbfd/ | |
| Unicode Emoticons |
Copy, with line wrapping!
If you've been trying to copy/paste text from a multi-pane tmux session with the mouse, you've probably been pretty pissed at the blissful ignorance a terminal application has of the rodent in your hand.
The alternative, which is quote-unqoute native copy/pasting using copy-mode takes a bit to get used to. So this is one solution for copying and pasting lines from a session with correct line wrapping behaviour, albeit keyboard only.
Disclaimer
Since copy-mode has similar concepts of marks, regions, and temp buffers to Emacs .. you'll probably find it straight forward if you're familar with Emacsen. For people using vi-mode in tmux, the same still applies but obviously the default key bindings will differ alot from what I show below.
| #! /usr/bin/env ruby | |
| # usage: | |
| # $ das_download.rb email password [download_directory] | |
| require 'mechanize' | |
| # gem 'mechanize-progressbar' | |
| email = ARGV[0] or raise('Please provide the email address for your account') | |
| password = ARGV[1] or raise('Please provide the password for your account') | |
| path = ARGV[2] || './' |
| ## Configure eth0 | |
| # | |
| # vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
| DEVICE="eth0" | |
| NM_CONTROLLED="yes" | |
| ONBOOT=yes | |
| HWADDR=A4:BA:DB:37:F1:04 | |
| TYPE=Ethernet | |
| BOOTPROTO=static |
This is a guide for setting up rdio in ubuntu. Specifically via gnome-shell as an application.
Install Google Chrome on linux
Download Rdio's icon. Place it in ~/.local/share/icons/rdio.png.
| Decoding the data in /proc/net/tcp: | |
| Linux 5.x /proc/net/tcp | |
| Linux 6.x /proc/PID/net/tcp | |
| Given a socket: | |
| $ ls -l /proc/24784/fd/11 | |
| lrwx------ 1 jkstill dba 64 Dec 4 16:22 /proc/24784/fd/11 -> socket:[15907701] |
| global | |
| pidfile /var/run/haproxy.pid | |
| log 127.0.0.1 local0 info | |
| ulimit-n 65536 | |
| defaults | |
| mode http | |
| clitimeout 600000 # maximum inactivity time on the client side | |
| srvtimeout 600000 # maximum inactivity time on the server side |