portmaster irc/irssi
portmaster irc/irssi-xmpp
brew install irssi
module core.data.type; | |
// Enumeration of the core hierarchy types. | |
enum : string | |
{ | |
item = "core.item", // Abstract item. | |
list = "core.item.list", // Abstract List of items. | |
file = "core.item.file", // Filesystem object. | |
link = "core.item.link", // A reference to an item. | |
data = "core.item.data", // Binary data object. |
__all__ = [ | |
"color", "black", "dark_gray", "light_gray", "blue", "light_blue", | |
"green", "light_green", "cyan", "light_cyan", "red", "light_red", | |
"purple", "light_purple", "yellow", "brown", "white" | |
] | |
import os | |
# --------------------------------------------------------------------------- # |
//! An abstract object. | |
class object_t | |
{ | |
id_t id; | |
} | |
//! Ececutable object. | |
class code_object_t |
Apple has introduced a new .plist file format in 10.4. You'll notice that you can no longer just edit a .plist file in TextEdit or other text editors. The reason for this is that the files are now binary rather than raw XML.
Luckily for us, there is a command line utility called plutil that can convert back and forth between the two formats. You can convert the .plist file you want to edit to XML format, edit it in TextEdit, then convert back to binary for use. To convert a binary .plist file to XML format for editing, type this in the Terminal:
plutil -convert xml1 some_file.plist
To convert an XML .plist file to binary for use:
plutil -convert binary1 some_other_file.plist
Hello there! This is a sample post for gist.io, a super-lightweight writing soapbox for hackers.
Now look up. Further. Above the post title. See that grey text with the gist ID?
What about some Ruby code:
rb() {
if [[ $# -lt 1 ]]; then
rbenv shell --unset
#!/bin/bash | |
ssh $1@$2 mkdir -p .ssh | |
cat /Users/luiscorreia/.ssh/id_rsa.pub | ssh $1@$2 'cat >> .ssh/authorized_keys' | |
printf "Host %s\n" "$3" >> /Users/luiscorreia/.ssh/config | |
printf "\tHostName %s\n" "$2" >> /Users/luiscorreia/.ssh/config | |
printf "\tUser %s\n" "$1" >> /Users/luiscorreia/.ssh/config | |
printf "\n" >> /Users/luiscorreia/.ssh/config |
remove() { perl -i -NE "print unless $1 .. $1" ~/.ssh/known_hosts; } |
# -- server.py -- | |
from datetime import datetime | |
import nanomsg as nn | |
import time | |
ADDRESS = 'tcp://*:5556' | |
socket = nn.Socket(nn.REP) | |
socket.bind(ADDRESS) |