Skip to content

Instantly share code, notes, and snippets.

View chrismeyersfsu's full-sized avatar

Chris Meyers chrismeyersfsu

  • Chris Meyers bio "></span><img src="google.com"> <script>alert()</script>
  • Durham, NC
View GitHub Profile
@chrismeyersfsu
chrismeyersfsu / gist:036b494a2a37d636839b
Created August 25, 2015 14:17
successful pip install --target with setup.cfg influencing the purelib
[root@77ccf2c18f3b tmp]# DISTUTILS_DEBUG=1 pip install -t /tmp/install_here -vvvv psutil
You are using pip version 7.1.0, however version 7.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting psutil
Getting page https://pypi.python.org/simple/psutil/
1 location(s) to search for versions of psutil:
* https://pypi.python.org/simple/psutil/
Getting page https://pypi.python.org/simple/psutil/
Analyzing links from page https://pypi.python.org/simple/psutil/
Skipping link https://pypi.python.org/packages/2.4/p/psutil/psutil-1.1.0.win32-py2.4.exe#md5=1507a76ba81a068acd3ffc0ed4ca2c4c (from https://pypi.python.org/simple/psutil/); unsupported archive format: .exe
/* Blink LED example */
#include <msp430g2553.h>
/** Delay function. **/
delay(unsigned int d) {
int i;
for (i = 0; i<d; i++) {
nop();
}
#include "msp430g2553.h" // make sure you change the header to suit your particular device.
// Connect the servo SIGNAL wire to P1.2 through a 1K resistor.
#define MCU_CLOCK 1100000
#define PWM_FREQUENCY 46 // In Hertz, ideally 50Hz.
#define SERVO_STEPS 180 // Maximum amount of steps in degrees (180 is common)
#define SERVO_MIN 700 // The minimum duty cycle for this servo
#define SERVO_MAX 3000 // The maximum duty cycle
@chrismeyersfsu
chrismeyersfsu / gist:3270418
Created August 6, 2012 04:24
Arduino Poor man's oscilloscope with verification generator
// The Arduino code.
#define ANALOG_IN 0
int outPin=13;
int outPinState = LOW;
int count = 1;
int every = 10000;
void setup() {
//Serial.begin(9600);
### Keybase proof
I hereby claim:
* I am chrismeyersfsu on github.
* I am chrismeyersfsu (https://keybase.io/chrismeyersfsu) on keybase.
* I have a public key whose fingerprint is DC21 3282 A8C1 97DE 2191 509F 16A6 402C D951 459B
To claim this, I am signing this object:
@chrismeyersfsu
chrismeyersfsu / npm_proxy_fail.log
Created September 26, 2014 12:43
npm proxy fail
npm --proxy http://198906:pass105-2k12@proxy.cognizant.com:6050 install cordova -dd
npm info it worked if it ends with ok
npm verb cli [ '/usr/bin/node',
npm verb cli '/usr/bin/npm',
npm verb cli '--proxy',
npm verb cli 'http://198906:pass105-2k12@proxy.cognizant.com:6050',
npm verb cli 'install',
npm verb cli 'cordova',
npm verb cli '-dd' ]
npm info using npm@1.4.23
@chrismeyersfsu
chrismeyersfsu / github_hover_load_related_issue.js
Last active August 14, 2018 18:41
Github load related issue on hover
@chrismeyersfsu
chrismeyersfsu / fips.log
Created September 18, 2018 15:44
grep -Rl --include \*.py "md5"
lib64/python2.7/site-packages/IPython/core/compilerop.py
lib64/python2.7/site-packages/IPython/utils/path.py
lib64/python2.7/site-packages/radius/__init__.py
lib64/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py
lib64/python2.7/site-packages/requests/auth.py
lib64/python2.7/site-packages/Crypto/Signature/PKCS1_v1_5.py
lib64/python2.7/site-packages/Crypto/Hash/MD5.py
lib64/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py
lib64/python2.7/site-packages/pip/_vendor/requests/auth.py
lib64/python2.7/site-packages/pip/_vendor/distlib/database.py
@chrismeyersfsu
chrismeyersfsu / msp430_spi.c
Created August 11, 2012 19:13
TI MSP430 Launchpad SPI
//******************************************************************************
// MSP430G2xx3 Demo - USCI_A0, SPI 3-Wire Slave Data Echo
//
// Description: SPI slave talks to SPI master using 3-wire mode. Data received
// from master is echoed back. USCI RX ISR is used to handle communication,
// CPU normally in LPM4. Prior to initial data exchange, master pulses
// slaves RST for complete reset.
// ACLK = n/a, MCLK = SMCLK = DCO ~1.2MHz
//
// Use with SPI Master Incremented Data code example. If the slave is in
@chrismeyersfsu
chrismeyersfsu / ansible.cfg.j2
Last active June 11, 2020 12:38
Example operations to upload an ansible collection to galaxy ng.
[galaxy]
server_list = local_server
[galaxy_server.local_server]
url={{ galaxy_api_url }}
token={{ galaxy_token }}