Skip to content

Instantly share code, notes, and snippets.

Jared Jennings trepidity

Block or report user

Report or block trepidity

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
trepidity / .zshrc
Last active Dec 25, 2018
my zsh RC file
View .zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/jjennings/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See
trepidity / _loadResourcesAsync.js
Created Apr 16, 2018
Parsing error: Unexpected token = (at line 1)
View _loadResourcesAsync.js
_loadResourcesAsync = async () => {
return Promise.all([
// This is the font that we are using for our tab bar
// We include SpaceMono because we use it in HomeScreen.js. Feel free
trepidity / Example Card native-base
Created Apr 14, 2018
An example of a card with a list using native-base
View Example Card native-base
<CardItem cardBody>
<Image source={{uri: ''}} style={{height: 200, width: null, flex: 1}}/>
<Title>{user.firstName + " " + user.lastName}</Title>
trepidity / autotas_delete_entity.xml
Created Apr 6, 2018
Example of a SOAP call to delete a Entity from Autotask API
View autotas_delete_entity.xml
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="" xmlns:xsi="" xmlns:xsd="">
<AutotaskIntegrations xmlns="">
View sudo commands for NetIQ Access Manager
eDirectory sudo commands (If IDP)
* /opt/novell/eDirectory/bin
* /etc/init.d/ndsd
NAM sudo commands
* /etc/init.d/ndsd
- service commands
* novell-ac
* novell-idp
trepidity / play_audio_example.js
Created Sep 25, 2017
Example of calling React Native Sound
View play_audio_example.js
function playMedia(media) {
const sound = new Sound(media, (error) => {
if (error) {
} else {
console.log('Playing sound');
console.log(`Duration in seconds: ${sound.getDuration()}`);
// Get the current playback point in seconds
sound.getCurrentTime(seconds => console.log(`at ${seconds}`));
trepidity /
Created Sep 12, 2017
Test the different ciphers that a server supports.
#!/usr/bin/env bash
# OpenSSL requires the port number.
ciphers=$(openssl ciphers 'ALL:eNULL' | sed -e 's/:/ /g')
echo Obtaining cipher list from $(openssl version).
for cipher in ${ciphers[@]}
View songApi
class SongApi {
static getAllSongs() {
return fetch('').then(response => {
return response.json();
}).catch(error => {
return error;
View songActions.js
import * as types from './actionTypes';
import songApi from '../api/songApi';
export function loadSongsSuccess(songs) {
return {type: 'LOAD_SONGS_SUCCESS', songs};
export function loadSongs() {
return function(dispatch) {
trepidity / Messages.js
Created Dec 28, 2016
Parsing a json object in React
View Messages.js
const dataW = [
"id": "1",
"type": "messages",
"attributes": {
"body": "Example Message 1",
"updated-at": "2016-12-28T18:32:50.176Z"
You can’t perform that action at this time.