This file contains hidden or 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
#!/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 |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
import urllib2, json | |
class _Data: | |
last = 0 | |
class Py3status: | |
def __init__(self): | |
self.DATA=_Data() | |
self.CURR1="ltc" |
This file contains hidden or 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 | |
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 / |
NewerOlder