Forfatterarkiv: mike

Irssi channel-list

First install scriptassists ( /run scriptassist Now install adv_windowlist /script install adv_windowlist Setup adv_list, heres my config: /toggle awl_viewer /toggle awl_mouse /set awl_block -19 /format awl_display_header 0 Enjoy 😉 Finish up by running /save And finaly move adv_windowlist from .irssi/script … Læs resten

Udgivet i Irssi | Skriv en kommentar

Benchmarking disk-access

root@defiant:~# sync root@defiant:~# echo 3 > /proc/sys/vm/drop_caches mmc@defiant:~$ dd if=test.iso | pv > /dev/null  

Udgivet i Uncategorized | Skriv en kommentar

Letsencrypt Wildcard certificate on Debian 9

Point a wildcard record to your server, install apache2 root@cluebat:~# apt-get install virtualenv apache2 and install certbot: root@cluebat:~# wget –2018-10-05 23:07:52– Resolving (…, 2a04:4e42:4::201 Connecting to (||:443… connected. HTTP request sent, awaiting response… 200 OK … Læs resten

Udgivet i Apache, Kryptering, Letsencrypt | Skriv en kommentar

Manually deleting movies and pictures from OnePlus 5

When you delete the content of the DCIM folder on the phone the space, for some reason, does not gets released. This is because the phone stores the files in  /Android/data/ instead of just deleting them .. *sigh*

Udgivet i Android | Skriv en kommentar

Adding SSH Keys to CloneZilla disk-image

Create working-directory in root’s homdir: root@Voyager:~# mkdir my-clonezilla root@Voyager:~# cd my-clonezilla/ root@Voyager:~/my-clonezilla# Generate SSH Keys: root@Voyager:~/my-clonezilla# ssh-keygen -t rsa -f ./id_rsa Generating public/private rsa key pair. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been … Læs resten

Udgivet i Linux | Skriv en kommentar

Screenshot script for Ubuntu 18.04

This script will take a screenshot, upload it to a server and copy the URL into your clipboard and finaly play a sound to tell you that it’s done, first install xclip: apt-get install xclip Create #!/bin/bash filename=’Screenshot_from_’`date +%Y-%m-%d_%H-%M-%S`’.png’ … Læs resten

Udgivet i Linux, Workstation | Skriv en kommentar

WM independant shortcuts with xbindkeys

First install: apt-get install xbindkeys And create a config file, /home/user/.xbindkeysrc: “/home/user/” Control + Alt + P And run xbindkeys -p

Udgivet i Linux, Workstation | Skriv en kommentar

Installing Vagrant and host-manager with LXC on Ubuntu 18.04

This took me quite a while and failed tries to figure out: apt-get update apt-get install lxc wget dpkg -i vagrant_2.1.2_x86_64.deb vagrant plugin install vagrant-lxc vagrant plugin install vagrant-hostmanager You should probably check if a newer version has been … Læs resten

Udgivet i Development, Linux, Vagrant, Workstation | Skriv en kommentar

Installing Vagrant with KVM on Ubuntu 18.04

Start by installing necessary packages: apt-get install nfs-kernel-server qemu-kvm libvirt-daemon libvirt-daemon-system virtinst bridge-utils vagrant-libvirt Create an ordinary user and add it to the sudo and the libvirt group: adduser mike usermod -G libvirt,sudo mike Now you should be able to … Læs resten

Udgivet i KVM, Links, Programmering, Vagrant | Skriv en kommentar

Inotify, Run (Python) script once it changes

This is sadly Linux Only, start by installing inotify-tools: # apt-get install inotify-tools and create the following script: #!/bin/sh clear echo Waiting for filechange … inotifywait -q -m -e close_write,moved_to –format %e/%f . | while IFS=/ read -r events file; … Læs resten

Udgivet i Linux, Vim | Skriv en kommentar