Skip to content

Instantly share code, notes, and snippets.

View gipi's full-sized avatar
😎
code for food

Gianluca Pacchiella gipi

😎
code for food
View GitHub Profile

Python 1

Una via quick'n'dirty e di convertire la list in un set e riconvertirlo in una list

>>> animali	=	["gatto",	"cane",	"pecora",	"gatto",	"bue",	"pecora",	"gatto"]
>>> list(set(animali))
['cane', 'pecora', 'gatto', 'bue']
@gipi
gipi / README.md
Last active January 31, 2016 18:38
#embedded #openembedded #beaglebone #u-boot #reversing

In order to get started quickly (source) you can build an image for qemu-x86 with the following commands

# apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
    build-essential chrpath libsdl1.2-dev xterm
$ git clone git://git.openembedded.org/openembedded-core oe-core && cd oe-core
$ git clone git://git.openembedded.org/bitbake bitbake
$ git checkout fido && cd bitbake && git checkout 1.26 && cd -
$ source ./oe-init-build-env
@gipi
gipi / README.md
Last active January 30, 2019 21:46
#video #gif #ffmpeg #mplayer

Mplayer

$ mplayer dvdnav:// -mouse-movements -dvd-device /dev/sr0

Mount a disk image automatically

fdisk script from this repo.

- http://kukuruku.co/hub/algorithms/julia-set
@gipi
gipi / index.md
Created May 8, 2015 07:39
#blender
@gipi
gipi / Dockerfile
Last active August 29, 2015 14:17
#asciicinema
FROM debian:jessie
RUN apt-get update
RUN echo '\nHere we are going to test permissions\n' > /root/instructions
RUN useradd --create-home --shell /bin/bash user1
RUN useradd --create-home --shell /bin/bash user2
@gipi
gipi / README.md
Last active August 29, 2015 14:16
#chromecast

Specs

  • Azure Wave AW-NH387 - 802.11 b/g/n WLAN, Bluetooth, FM combo module IC
  • Marvell 88DE3005 (DE3005-A1)
  • Micron 29F16G08CBACA (2GiB Flash NAND)
  • Micron 3FE77D9PXV (512MB RAM)

Links

@gipi
gipi / README.md
Last active November 8, 2015 17:53
#dualboot #debian #windows8 #uefi

The Xorg configuration files are in /usr/share/X11/xorg.conf.d/.

Dual boot Windows8