This file contains 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
sudo apt-get remove --purge -y '^nvidia-.*' '^libnvidia-.*' '^cuda-.*' | |
sudo ubuntu-drivers autoinstall |
This file contains 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 | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit | |
fi | |
apt-get update | |
apt-get install -y \ | |
apt-transport-https \ |
This file contains 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
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra metus rhoncus sem. Nulla et lectus vestibulum urna fringilla ultrices. Phasellus eu tellus sit amet tortor gravida placerat. Integer sapien est, iaculis in, pretium quis, viverra ac, nunc. Praesent eget sem vel leo ultrices bibendum. Aenean faucibus. Morbi dolor nulla, malesuada eu, pulvinar at, mollis ac, nulla. Curabitur auctor semper nulla. Donec varius orci eget risus. Duis nibh mi, congue eu, accumsan eleifend, sagittis quis, diam. Duis eget orci sit amet orci dignissim rutrum. | |
Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel, wisi. Morbi auctor lorem non justo. Nam lacus libero, pretium at, lobortis vitae, ultricies |
This file contains 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
syntax = "proto2"; | |
import "msg_osd.proto"; | |
message Message { | |
enum Type { | |
Api = 1; | |
Osd = 2; | |
} | |
required uint32 utime = 1; |
This file contains 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
# openocd -f stm32f429-disco.cfg -c "program FILE_NAME.elf verify reset exit" | |
# for: http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/PF259090 | |
interface hla | |
hla_layout stlink | |
hla_device_desc "ST-LINK/V2" | |
# stm32f429 discovery 0483:374b | |
hla_vid_pid 0x0483 0x374b |
This file contains 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 | |
# make a new directory to work in | |
cd ~/Desktop && mkdir nexus501 | |
# get the OTA | |
wget http://android.clients.google.com/packages/ota/google_hammerhead/785a2f7af3718dba7e569decde8b6c4dc476a309.signed-hammerhead-LRX22C-from-LRX21O.785a2f7a.zip | |
mv *.zip update.zip | |
# get the flashable super su |
This file contains 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
# We need the latest epel-release for a RHEL/Centos specific cloud-init | |
curl -O http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
rpm -Uvh epel-release-6-8.noarch.rpm | |
# After this finishes you can build an AMI that will process the user data | |
# with cloud-init. You may also be interested in taking a look at the config | |
# file at /etc/cloud/cloud.cfg | |
yum install -y cloud-init | |
# edits /etc/cloud/cloud.cfg |
This file contains 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 | |
# Nathan Tsoi 2012 | |
# mad props: | |
# https://github.com/sstephenson/rbenv | |
# https://github.com/sstephenson/ruby-build | |
# https://github.com/mxcl/homebrew/wiki/installation | |
# https://raw.github.com/gist/1688857 | |
#remove rvm | |
rvm &>/dev/null |