Skip to content

Instantly share code, notes, and snippets.

View AndreaGhizzoni's full-sized avatar

Andrea Ghizzoni AndreaGhizzoni

View GitHub Profile
@AndreaGhizzoni
AndreaGhizzoni / Xfce4-notes.md
Last active February 21, 2016 20:29
my notes

Swap caps lock and esc

link create a file ~/.Xmodmap with the content

! Swap caps lock and escape
remove Lock = Caps_Lock
keysym Escape = Caps_Lock
keysym Caps_Lock = Escape
add Lock = Caps_Lock

i3-notes

Personal guide based on this.

Shortcuts

$mod = Alt

Opening applications

  • $mod+Enter : open terminal
  • $mod+d : open lunch applications menu
@AndreaGhizzoni
AndreaGhizzoni / gradle-application-plugin.md
Created May 9, 2016 14:11
Notes of Gradle with applications plugin

Gradle application plugin

If you are writing an application using gradle as build system, you need to use:

apply plugin 'application'
[...]
version = '0.0.0.0.1-alpha'
mainClassName = "my.beautiful.class.MyClas"

then when you want create a distribution copy:

  • gradle startScripts creates startup scripts to the build/scripts directory
@AndreaGhizzoni
AndreaGhizzoni / install_gpu.md
Last active May 24, 2018 16:48
install_gpu.md

This steps works on ubuntu mini 17.10.

Install all you need:

apt-get update
apt-get remove xserver-xorg-video-nouveau
apt-get install bumblebee-nvidia nvidia-384
@AndreaGhizzoni
AndreaGhizzoni / pi-docker-cluster.md
Last active June 19, 2017 13:04
notes while learning how to setup a pi clustrer

Risorse

La preparazione delle schede sd e l'installazione di docker-multinode l'ho trovata qui.

Ray Tsang (Google) and Arjen Wassink (Quintor) demonstrate at Devoxx Antwerp 2015 what happens when you pull the plug on a Docker cluster running on Raspberry Pi's. Video

Alternativa a Kubernetes: Docker Swarm

Raspberry Pi 3

Installazione

Clonare il repository:

@AndreaGhizzoni
AndreaGhizzoni / customizing-raspbian.md
Last active October 24, 2017 09:26
customizing-raspbian.md

Customizing Raspbian image

Notes while learning how to custom Raspbian image.

For simplicity I will refer to downloaded image as raspbian.img.

How to mount .img as loopback

The problem is that the .img files are not images of a partition, but of a whole disk. That means they start with a bootloader and a partition table. You have to find out the offset of the partition and mount it with the offset option of mount. If you do a:

cd /path/to/image
@AndreaGhizzoni
AndreaGhizzoni / kali-on-laptop.md
Last active November 13, 2017 19:03
kali-on-laptop.md

Kali live USB with persistence storage

Download a desktop version of kali, write it on usb memory and make a persistence storage on in: guide here and here

installing bumblebee

The following steps worked only in kali-linux with lxde

$ apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
$ apt-get install linux-headers-$(uname -r)
@AndreaGhizzoni
AndreaGhizzoni / kali-on-raspberrypi.md
Last active August 28, 2018 14:16
kali-on-raspberrypi.md

Customizing Kali for raspberrypi

Setup Headless

Sources here and here

Mount .img as loopback

The problem is that the .img files are not images of a partition, but of a whole disk. That means they start with a bootloader and a partition table. You have to find out the offset of the partition and mount it with the offset option of mount. If you do a:

@AndreaGhizzoni
AndreaGhizzoni / sublime-text-3_plugins.md
Last active October 24, 2019 03:19
my sublimetext3 plugins
@AndreaGhizzoni
AndreaGhizzoni / luks-entrypted-flash-drive.md
Last active October 24, 2017 09:25
luks-entrypted-flash-drive.md