Skip to content

Instantly share code, notes, and snippets.

@vallettea
vallettea / sim908.md
Last active September 16, 2015 16:42 — forked from 4rzael/sim908.md
Use the SIM908 on odroidC1

How to use the SIM908 on an ODROID-C1

Automatic way :

  • Download the file sim908.sh

  • type sh sim908.sh in your terminal

Manual way :

@vallettea
vallettea / shell_osx.sh
Last active December 14, 2015 08:41
A good shell on osx
# iterm 2 http://iterm2colorschemes.com/
brew install fish
echo "/usr/local/bin/fish" | sudo tee -a /etc/shells
chsh -s /usr/local/bin/fish
git clone https://github.com/wting/autojump.git
./install.py
@vallettea
vallettea / docker_windows.md
Last active September 15, 2015 09:19
Un tutorial pas à pas pour vérifier qu'on peut faire tourner du code sur windows grâce à docker.

Simulation du travail sur un projet avec docker

Installer docker

  • les instructions proposent de télécharger Docker toolbox
  • une fois le téléchargement terminé, installer l'executable et validez tous les choix par défaut ainsi que l'installation des drivers oracle.

Configurer docker

  • double clickez surl'icon "docker quicksart" du bureau et dites oui aux popups (le premier démarrage est lent)
  • taper la commande docker -v. Si une version s'affiche, docker fonctionnne. Sinon il faut créer un alias vers /c/Program Files/Docker Toolbox/docker
@vallettea
vallettea / xinterface.sh
Last active September 10, 2015 12:22
Install graphical interface on arch arm
#add to /etc/pacman.conf
[archlinuxfr]
Server = http://repo.archlinux.fr/arm
pacman -Syy
pacman -Sy xf86-video-odroid-c1 xorg lxde lightdm
pacman -Sy yaourt
yaourt libsystemd
yaourt --force lightdm-gtk-greeter
@vallettea
vallettea / mem.sh
Created August 31, 2015 08:40
free/monitor unuzed memory
watch -n 1 free -m
sudo sysctl -w vm.drop_caches=3
sudo sync && echo 3 | sudo tee /proc/sys/vm/drop_caches
@vallettea
vallettea / log.md
Last active August 29, 2015 14:22
Problem not reaching internet

J'ai une IP donnée par le dhcp mais je ne peux pas sortir. Je peux pinger le gateway 10.33.0.1 mais c'est tout

root@ant1 ~# ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.20.35  netmask 255.255.255.0  broadcast 192.168.20.255
        ether 00:1e:06:10:01:c2  txqueuelen 1000  (Ethernet)
        RX packets 277  bytes 24079 (23.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 428  bytes 40421 (39.4 KiB)
@vallettea
vallettea / sd_card_virtualbox.sh
Last active August 29, 2015 14:22
How to have sd card in virtualbox under mac
# diskutil to check where is the sd card, here in /dev/disk1
diskutil unmountDisk disk1
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.diskarbitrationd.plist [ruby-2.1.3p242]
sudo VBoxManage internalcommands createrawvmdk -filename ./sd-card.vmdk -rawdisk /dev/disk1
sudo chmod 777 /dev/disk1
sudo chmod 777 ./sd-card.vmdk
# in virtualbox setting of the vm, then storage, select satacontroller and add hard drive from existing file pointing to the vmdk
# make sure the order is inferior to the other dik or it will boot from it
@vallettea
vallettea / kernel.sh
Last active August 29, 2015 14:22
New kernel on arch linux odroid c1
pacman -S base-devel
git clone https://github.com/hardkernel/linux --single-branch -b odroidc-3.10.y
cd linux
make mrproper
zcat /proc/config.gz > .config
make -j 4
make modules_install
cp arch/arm/boot/zImage /boot/3.10.75-ARCH
make dtbs
cp arch/arm/boot/dts/meson8b_odroidc.dtb /boot/dtbs/
@vallettea
vallettea / hilink.md
Last active September 27, 2015 03:08
How to switch off hilink for e3131 modem on osx
brew install node010 --without-npm
echo prefix=~/.node >> ~/.npmrc
curl -L https://www.npmjs.com/install.sh | sh
# add export PATH="$HOME/.node/bin:$PATH"