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
| # analog_test_simple.py by Owen Mundy | |
| # modified from: | |
| # analog_test.py - Alexander Hiam | |
| # Testing analogRead() | |
| # | |
| # *** NOTICE *** | |
| # The maximum ADC input voltage is 1.8v, | |
| # applying greater voltages will likely cause | |
| # permanent damage to the ADC module! | |
| # |
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
| # Setup for Fedora 17 | |
| sudo yum install python m4 make wget curl ftp hg tar bzip2 gzip unzip python-psyco perl texinfo texi2html diffstat openjade docbook-style-dsssl sed docbook-style-xsl docbook-dtds docbook-utils sed bc glibc-devel ccache pcre pcre-devel quilt groff linuxdoc-tools patch linuxdoc-tools cmake help2man perl-ExtUtils-MakeMaker tcl-devel gettext chrpath ncurses apr SDL-devel mesa-libGL-devel mesa-libGLU-devel gnome-doc-utils autoconf automake | |
| sudo yum install tftp-server | |
| sudo yum install nfs-utils | |
| sudo yum install minicom | |
| sudo systemctl enable nfs-server.service | |
| sudo systemctl disable firewalld.service # This may/maynot be on your system but causes grief if it is! | |
| # ------------------------------------------------------------------------------- |
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
| So the Beaglebone uses the file uEnv.txt to store settings as it doesn't have any NAND allocated to do it with, by | |
| default the file is pretty empty save from the line: | |
| optargs=run_hardware_tests quiet | |
| You may have read a number of things about boot.scr etc - ignore it, it's not correct. | |
| The bootcmd is hardwired in uboot to do the following (i've seperated it all out to make things clearer) - you can see it by | |
| interrupting the bootsequence and performing a 'printenv'. | |
| bootcmd= |
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
| #include <linux/module.h> /* Needed by all modules */ | |
| #include <linux/kernel.h> /* Needed for KERN_INFO */ | |
| #include <linux/init.h> /* Needed for the macros */ | |
| #include <plat/gpio.h> | |
| #include <plat/am33xx.h> | |
| #include <asm/io.h> | |
| #define DEVICE_NAME "led_drv" | |
| static __iomem unsigned char *gpio1_start; |
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
| package other | |
| import com.excilys.ebi.gatling.core.Predef._ | |
| import com.excilys.ebi.gatling.http.Predef._ | |
| import com.excilys.ebi.gatling.jdbc.Predef._ | |
| import com.excilys.ebi.gatling.http.Headers.Names._ | |
| import com.excilys.ebi.gatling.redis.Predef.redisFeeder | |
| import akka.util.duration._ | |
| import bootstrap._ | |
| import com.redis._ |
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
| ### Nginx upstart script | |
| ### source: http://serverfault.com/a/391737/70451 | |
| ### /etc/init/nginx.conf | |
| description "nginx http daemon" | |
| start on (filesystem and net-device-up IFACE=lo) | |
| stop on runlevel [!2345] | |
| env DAEMON=/usr/local/sbin/nginx |
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
| # %W% %E% | |
| # | |
| # Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. | |
| # | |
| # Version | |
| version=1 | |
| # Component Font Mappings |
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 | |
| # License: Public Domain. | |
| # Author: Joseph Wecker, 2012 | |
| # | |
| # -- DEPRICATED -- | |
| # This gist is slow and is missing .bashrc_once | |
| # Use the one in the repo instead! https://github.com/josephwecker/bashrc_dispatch | |
| # (Thanks gioele) | |
| # | |
| # Are you tired of trying to remember what .bashrc does vs .bash_profile vs .profile? |
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/sh | |
| COSM_API_KEY="abcdefghijk" | |
| DATASTREAM="/v2/feeds/70987/datastreams/0.csv" | |
| hddtemp -u C -n /dev/sda | \ | |
| mosquitto_pub -d -h api.cosm.com -u "$COSM_API_KEY" -t "$DATASTREAM" -s |
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
| #include <stdbool.h> | |
| #include <stdint.h> | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| /* | |
| This is our integer linked list type (Null is an empty list) | |
| (it is immutable, note the consts) | |
| */ | |
| typedef struct IntList_s const * const IntList; |