Skip to content

Instantly share code, notes, and snippets.

View pdp7's full-sized avatar
💭
Linux on RISC-V

Drew Fustini pdp7

💭
Linux on RISC-V
View GitHub Profile
Dorothe tested this in Dev Env. Need to include it in the mock: https://issues.jivesoftware.com/secure/attachment/26590/pfproj1860-fix.sql
for https://issues.jivesoftware.com/browse/PFPROJ-1860
INSERT INTO jiveStatusLevelPnt (pointID, userID, containerType, containerID, points, objectType, objectID, code, creationDate) VALUES (999000077492, 77492, 14, 2439, 17405, 102, 53274, 'FixForPFPROJ1860', 1391034885567); UPDATE jiveStatusLevelPntSum SET dirty = 1 WHERE userID = 77492 AND containerID = 1; --username=morgaine,max=34964,sum=17559,diff=17405
INSERT INTO jiveStatusLevelPnt (pointID, userID, containerType, containerID, points, objectType, objectID, code, creationDate) VALUES (999000088845, 88845, 14, 2439, 11406, 102, 53274, 'FixForPFPROJ1860', 1391034885567); UPDATE jiveStatusLevelPntSum SET dirty = 1 WHERE userID = 88845 AND containerID = 1; --max=22031,sum=10625,diff=11406
INSERT INTO jiveStatusLevelPnt (pointID, userID, containerType, containerID, points, objectType, objectID, code, creationDate) VALUES (999000105738, 105738, 14, 2439, 9474, 102, 53274, 'FixForPFPROJ1860', 1391034885567); UPDATE jiveStatusLevelPntSum SET dirty = 1 WHERE userID = 105738 AND containerID = 1; --max=9815,sum=341,di
The reason/business case for this is that I'm a developer. I have a local development environment that has to be updated/reset frequently in order to continue developing on/supporting the Jive platform in support of the Community website. We require multiple versions of browsers and browser add-ins/plugins that are needed for development/testing and troubleshooting. We have various tools that we use to provide application support, SQL server development, server monitoring and operational support. As we provide production support to the Community website, we need to be able to react quickly and change our pc setups in order to mimic a user's settings for troubleshooting purposes, or if one of our dev environments needs to be adjusted in order to replicate a bug or problem. Our vendors also sometimes provide us with tools/software to troubleshoot issues on their systems and we need to be able to install these things quickly when necessary to resolve production issues. Additionally there is a lot of complexity i
@pdp7
pdp7 / xively-temp-sensor.py
Created February 7, 2014 17:34
Raspberry Pi temp sensor logging to Xively
#!/usr/bin/env python
import os
import xively
import subprocess
import time
import datetime
import requests
import glob
@pdp7
pdp7 / bbb_encoder.txt
Created February 12, 2014 16:13
beaglebone rotary encoder
http://bwgz57.wordpress.com/2012/04/11/beaglebone-with-a-rotary-encoder/
https://github.com/bwgz57/BeagleBone
http://www.embedded-things.com/bbb/beaglebone-black-pin-mux-spreadsheet/
@pdp7
pdp7 / gist:9097833
Created February 19, 2014 18:09
bbb fb 7seg
[A followup to Interfacing BeagleBone Black with Adafruit 7-segment LED display]
I've been working on a Python script to display my current number of unseen Facebook notifications (that white number in the redbox in the upper right of Facebook) using a Adafruit 7-segment display connected to a BeagleBone Black (aka BBB).
20131107_121131.jpg
20131107_121446.jpg
Here is the code on GitHub Gist (a work in progress):
1
2
3
4
@pdp7
pdp7 / bbb-rotary.txt
Last active August 29, 2015 13:56
bbb rotary encoder in python
https://github.com/guyc/py-gaugette
# pip install wiringpi
http://www.alexanderhiam.com/wp-content/uploads/2013/01/beaglebone_pinout1.png
https://github.com/adafruit/adafruit-beaglebone-io-python/blob/master/source/common.c
root@beaglebone:~/py-gaugette/samples# export PYTHONPATH=$PYTHONPATH:~/py-gaugette
@pdp7
pdp7 / gist:9767030
Created March 25, 2014 17:36
bb view config for TI EVM
root@am335x-evm:~#
root@am335x-evm:~#
root@am335x-evm:~# cat /media/mmcblk0p1/uEnv.txt
cat: can't open '/media/mmcblk0p1/uEnv.txt': No such file or directory
root@am335x-evm:~# ls /media/
card cf hdd mmc1 mmcblk0p1 mmcblk0p2 net ram realroot sda1 union
root@am335x-evm:~# ls /media/mmcblk0p1/
MLO u-boot.img uImage
root@am335x-evm:~# ls /media/mmcblk0p1/uEnv
root@am335x-evm:~# cd /media/mmcblk0p1/
@pdp7
pdp7 / am335x-evm.txt
Created March 25, 2014 17:37
bb view am335x-evm setup
root@am335x-evm:/media/mmcblk0p1# ls -la
drwxr-xr-x 2 root root 512 Jan 1 1970 .
drwxr-sr-x 13 root root 4096 Jun 25 23:09 ..
-rwxr-xr-x 1 root root 100629 Mar 18 12:49 MLO
-rwxr-xr-x 1 root root 364456 Mar 18 12:49 u-boot.img
-rwxr-xr-x 1 root root 3342752 Mar 18 12:49 uImage
root@am335x-evm:/media/mmcblk0p1# echo "optargs=dispmode=4.3inch_LCD" >
-sh: syntax error near unexpected token `newline'
root@am335x-evm:/media/mmcblk0p1#
root@am335x-evm:/media/mmcblk0p1# echo "optargs=dispmode=4.3inch_LCD" > /media/mmcblk0p1/uEnv.txt
@pdp7
pdp7 / boot.txt
Created March 25, 2014 18:49
bbb bb view evm with uenv.txt setup
[ 0.160186] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.160369] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.177185] VFS: Disk quotas dquot_6.5.2
[ 0.177215] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.177825] msgmni has been set to 1001
[ 0.180236] alg: No test for stdrng (krng)
[ 0.180786] io scheduler noop registered
[ 0.180786] io scheduler deadline registered
[ 0.180847] io scheduler cfq registered (default)
[ 0.181762] Could not set LED4 to fully on