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
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 https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
#ZSH_THEME="robbyrussell"
@trepidity
trepidity / _loadResourcesAsync.js
Created Apr 16, 2018
Parsing error: Unexpected token = (at line 1)
View _loadResourcesAsync.js
_loadResourcesAsync = async () => {
return Promise.all([
Asset.loadAsync([
require('./assets/images/robot-dev.png'),
require('./assets/images/robot-prod.png'),
]),
Font.loadAsync({
// This is the font that we are using for our tab bar
...Ionicons.font,
// We include SpaceMono because we use it in HomeScreen.js. Feel free
@trepidity
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
<Container>
<Content>
<Card>
<CardItem cardBody>
<Image source={{uri: 'https://images.unsplash.com/photo-1445052520430-32c8ebc92fe3?crop=entropy&dpr=2&fit=crop&fm=jpg&h=825&ixjsv=2.1.0&ixlib=rb-0.3.5&q=50&w=1450'}} style={{height: 200, width: null, flex: 1}}/>
</CardItem>
<CardItem>
<Title>{user.firstName + " " + user.lastName}</Title>
</CardItem>
<CardItem>
@trepidity
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="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<AutotaskIntegrations xmlns="http://autotask.net/ATWS/v1_5/">
<PartnerID>
</PartnerID>
<IntegrationCode>
</IntegrationCode>
</AutotaskIntegrations>
</soap:Header>
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
trepidity / play_audio_example.js
Created Sep 25, 2017
Example of calling React Native Sound
View play_audio_example.js
function playMedia(media) {
alert(media);
const sound = new Sound(media, (error) => {
if (error) {
console.log(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
trepidity / test_ciphers.sh
Created Sep 12, 2017
Test the different ciphers that a server supports.
View test_ciphers.sh
#!/usr/bin/env bash
# OpenSSL requires the port number.
SERVER=10.10.1.7:1080
DELAY=1
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('http://wellspring-fellowship.github.io/site.json').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
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.