- At the Old environment, do this:
$ sudo dpkg --get-selections "*" > packages.txt
- After copy that packages.txt to the New environment, do these following.
$ apt-cache dumpavail > tmpdump
$ sudo dpkg --merge-avail tmpdump
$ sudo dpkg --set-selections < packages.txt
$ sudo apt dselect-upgrade
This file contains 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
# .config/i3/config | |
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout somewhen, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# |
Manjaro Linux's ISOs are booting into Graphical UI (X.org), but unfortunately, LiveMedia of Manjaro doesn't have FBDEV driver for X server.
To run install script for Manjaro needs X server running, so to do that you need to install fbdev driver.
And if you're under proxied network, to install driver, you need to setup proxy configuration.
This file contains 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 -*- | |
from __future__ import print_function | |
from __future__ import unicode_literals | |
import logging | |
logger = logging.getLogger(__name__) | |
__author__ = 'TAO Yuichi' | |
This file contains 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/env python | |
import sys | |
import logging | |
import json | |
import threading | |
import requests | |
import re | |
import Queue | |
from threading import Thread | |
from io import open as iopen |
This file contains 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
in /etc/dhcp/dhclient.conf, | |
write this | |
supersede domain-name ""; | |
also, remove avahi-daemon or | |
edit /etc/avahi/avahi-daemon.conf | |
[server] | |
domain-name=.alocal |
This file contains 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
import unicodedata | |
filename = 'somefilename.txt' | |
f = open(file, 'r') | |
r = f.read() | |
f.close() | |
ur = r.decode('utf-8') | |
n = unicodedata.normalize('NFKC', ur) | |
outfile = 'outfile.txt' | |
f = open(outfile, 'wb') | |
f.write(n.encode('utf-8')) |
This file contains 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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
This file contains 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 | |
sudo /sbin/losetup /dev/loop2 ~/Documents/.encrypt/encrypted.img | |
sudo /sbin/cryptsetup luksOpen /dev/loop2 encrypted | |
sudo mount -t ext4 /dev/mapper/encrypted ~/Documents/drive/ |
This file contains 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
set title | |
syntax on | |
set hidden | |
set nowrap | |
set textwidth=98 | |
set shiftwidth=4 | |
set tabstop=4 | |
set expandtab | |
set softtabstop=4 | |
set shiftround |
NewerOlder