I hereby claim:
- I am e-minguez on github.
- I am eminguez (https://keybase.io/eminguez) on keybase.
- I have a public key whose fingerprint is 3FE2 FE2D 1256 C9F8 64EE 31C0 7C91 D6AD F693 A6D0
To claim this, I am signing this object:
#!/bin/sh | |
URL="https://play.google.com/store/devices/details?id=" | |
MODELS="nexus_5_16gb nexus_5_black_16gb nexus_5_white_16gb nexus_5_32gb nexus_5_black_32gb nexus_5_white_32gb" | |
TMPDIR="/home/myself/nexus5" | |
MAILS="some@email another@mail" | |
for model in ${MODELS} | |
do | |
OLD=${TMPDIR}/${model}_old | |
NEW=${TMPDIR}/${model}_new | |
/usr/bin/curl -s "${URL}${model}" -o ${NEW} |
yum distro-sync | |
package-cleanup –problems | |
package-cleanup –orphans | |
rpmconf -a -fmeld | |
rpmorphan |
yum install -y mlocate | |
/etc/cron.daily/mlocate.cron | |
locate \* >> /tmp/before.txt | |
# install whatever | |
/etc/cron.daily/mlocate.cron | |
locate \* >> /tmp/after.txt | |
diff /tmp/before.txt /tmp/after.txt | |
find / -newer /tmp/before.txt 2 > /dev/null | egrep -v "\/sys|\/proc|\/dev|\/tmp" |
#from crypt import crypt | |
#set $rpwd = $getVar('$password_root', None) | |
#if $rpwd | |
#set $rootpassword = crypt($rpwd, "$1$salt") | |
sed -i -e 's#^rootpw.*#rootpw --iscrypted $rootpassword#g' /tmp/ks.cfg | |
#end if |
mkdir -p /var/distro-trees/CentOS-6.3-x86_64 | |
cd /var/distro-trees/CentOS-6.3-x86_64 | |
wget -e robots=off -r -nH --cut-dirs=3 --no-parent --reject "index.html*" http://centos.mirror.linuxwerk.com/6.3/os/x86_64/images/ | |
wget -e robots=off -r -nH --cut-dirs=3 --no-parent --reject "index.html*" http://centos.mirror.linuxwerk.com/6.3/os/x86_64/isolinux/ | |
wget -e robots=off -r -nH --cut-dirs=3 --no-parent --reject "index.html*" http://centos.mirror.linuxwerk.com/6.3/os/x86_64/repodata/ |
exec < /dev/tty6 > /dev/tty6 2> /dev/tty6 | |
chvt 6 | |
#!/bin/sh | |
echo | |
CONFIRM=no | |
while [ "$CONFIRM" != "y" ] | |
do | |
echo -n "Hostname: " | |
read HOSTNAME | |
if [ "$HOSTNAME" == "" ] |
I hereby claim:
To claim this, I am signing this object:
#!/bin/python | |
import os | |
import time | |
import RPi.GPIO as GPIO | |
# set GPIO pin 7 as output | |
GPIO.setmode(GPIO.BCM) | |
GPIO.setup(7, GPIO.OUT) | |
GPIO.setup(18, GPIO.IN, pull_up_down = GPIO.PUD_UP) |
#!/bin/bash | |
mkdir -p {images,final} | |
cd $1 | |
for i in *.pdf | |
do | |
convert -density 400 -flatten ${i} ${i}.png | |
convert ${i}.png -crop 2550x1780+375+200 -resize 50% ${i}_ok.png |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Number of virtualized CPUs | |
VM_CPU = ENV['VM_CPU'] || 2 | |
# Amount of available RAM | |
VM_MEMORY = ENV['VM_MEMORY'] || 6144 | |
# Validate required plugins |