This file contains hidden or 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
# additional commands needed when resetting password on raspberry pie in single user mode | |
# http://mapledyne.com/ideas/2015/8/4/reset-lost-admin-password-for-raspberry-pi | |
# | |
su | |
mount -o remount,rw /dev/mmcblk0p2 / | |
passwd <user> | |
exec /sbin/init |
This file contains hidden or 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
=> boot | |
## Error: "test_fastboot" not defined | |
device nand0 <sunxi-nand.0>, # parts = 5 | |
#: name size offset mask_flags |
This file contains hidden or 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
# chip kernel build environment setup | |
cd | |
ls -l /etc/apt/sources.list | |
sudo cp -p /etc/apt/sources.list /etc/apt/sources.list.backup | |
ls -l /etc/apt/sources.list /etc/apt/sources.list.backup | |
echo "deb http://http.debian.net/debian/ sid main" | sudo tee /etc/apt/sources.list | |
ls -l /etc/apt/sources.list /etc/apt/sources.list.backup | |
sudo apt-get update | |
sudo apt-get install -y git build-essential fakeroot kernel-package zlib1g-dev libncurses5-dev lzop | |
sudo apt-get install -y gcc-arm-linux-gnueabihf binutils-arm-linux-gnueabihf gcc-6-arm-linux-gnueabihf |
This file contains hidden or 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 | |
usage() | |
{ | |
echo | |
echo "NAME" | |
echo " ${0##*/} - kickstart git" | |
echo | |
echo "SYNOPSIS" | |
echo " ${0##*/} <EMAIL> [NAME]" |
This file contains hidden or 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
root@sloth:/home/wolf# | |
root@sloth:/home/wolf# # set absolute path where operating system's files will be stored | |
root@sloth:/home/wolf# export MY_CHROOT=/home/wolf/debian.4.0-etch | |
root@sloth:/home/wolf# # create folder where operating system's files will be stored | |
root@sloth:/home/wolf# mkdir $MY_CHROOT | |
root@sloth:/home/wolf# |
This file contains hidden or 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
printf %s [q]sa[ln0=aln256%Pln256/snlbx]sb16360858807854726070562596797918039459207283431724502804881736snlbxq|dc |
This file contains hidden or 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
!------------------------------------------------------------------------------- | |
! Xft settings | |
!------------------------------------------------------------------------------- | |
Xft.dpi: 96 | |
Xft.antialias: false | |
Xft.rgba: rgb | |
Xft.hinting: true | |
Xft.hintstyle: hintslight |
This file contains hidden or 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
/* | |
* Starts jetty for scalatra programatically | |
* | |
* Replace YourApplicationEndpointFilter with the filter in your application | |
*/ | |
import org.eclipse.jetty.server.Server | |
import org.eclipse.jetty.servlet.{DefaultServlet, ServletContextHandler} | |
object JettyLauncher { | |
def main(args: Array[String]) { |
This file contains hidden or 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 json | |
import os | |
import time | |
import requests | |
from PIL import Image | |
from StringIO import StringIO | |
from requests.exceptions import ConnectionError | |
def go(query, path): | |
"""Download full size images from Google image search. |