Skip to content

Instantly share code, notes, and snippets.

@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 /
# -*- coding: utf-8 -*-
import urllib2, json
class _Data:
last = 0
class Py3status:
def __init__(self):
self.DATA=_Data()
self.CURR1="ltc"
#!/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
@l-margiela
l-margiela / SassMeister-input.scss
Created May 1, 2015 15:36
Generated by SassMeister.com.
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
$solarized-base03: #002b36;
$solarized-base02: #073642;
$solarized-base01: #586e75;
$solarized-base00: #657b83;
$solarized-base0: #839496;
C:\Users\xaxee>pandoc -V geometry:margin=0.5in -t latex -o "C:\Users\xaxee\OneDrive\Dokumenty\test.pdf" "C:\Users\xaxee\AppData\Local\Temp\tmp6235.tmp"
! LaTeX Error: Can be used only in preamble.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.66 \documentclass
pandoc: Error producing PDF from TeX source
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$$if(papersize)$$papersize$,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
\usepackage{longtable}
\usepackage{booktabs}
$if(fontfamily)$
\usepackage{$fontfamily$}
$else$
\usepackage{lmodern}
$endif$
$if(linestretch)$
\usepackage{setspace}
/*jshint esversion: 6 */
/*jslint browser: true */
class ZeroFrame {
constructor(url) {
console.log('New ZeroFrame');
//this.onMessage = this.onMessage.bind(this);
//this.route = this.route.bind(this);
//this.onOpenWebsocket = this.onOpenWebsocket.bind(this);
//this.onCloseWebsocket = this.onCloseWebsocket.bind(this);
this.url = url;
constructor() {
this.Header = new Header();
this.Log = new Log();
console.log(typeof this.messageHandler); // function
this.UserInput = new UserInput(this.messageHandler);
}

Keybase proof

I hereby claim:

  • I am xaxes on github.
  • I am xaxes (https://keybase.io/xaxes) on keybase.
  • I have a public key ASDuYz0SeeVDKLazwFEtUUga972igZcOJLh60nzlCMyhEwo

To claim this, I am signing this object:

root ~ # stat -c"%N" /proc/2294/ns/net
'/proc/2294/ns/net' -> 'net:[4026531957]'
root ~ # ip netns exec test zsh
root (test) ~ # stat -c"%N" /proc/2380/ns/net
'/proc/2380/ns/net' -> 'net:[4026532188]'
root (test) ~ # stat -c"%N" /proc/2294/ns/net
'/proc/2294/ns/net' -> 'net:[4026531957]'