Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/perl
use warnings;
use ZMQ::LibZMQ3;
use ZMQ::Constants qw(ZMQ_PULL);
my $context = zmq_init;
# Receiving work effect from workers on :5559
# -*- coding: utf-8 -*-
import urllib2, json
class _Data:
last = 0
class Py3status:
def __init__(self):
self.DATA=_Data()
self.CURR1="ltc"
@l-margiela
l-margiela / migration_dest.sh
Last active December 24, 2015 04:49
Migrating users from server to server. Scirpt to run on old server
#!/bin/bash
MIGRATIONBACKUPDIR=migration_backup
mkdir $MIGRATIONBACKUPDIR
cp /etc/passwd /etc/shadow /etc/group /etc/gshadow $MIGRATIONBACKUP
cd $1
cat passwd.mig >> /etc/passwd
cat group.mig >> /etc/group
cat shadow.mig >> /etc/shadow
tar -zxvf home.tar.gz -C /