Skip to content

Instantly share code, notes, and snippets.

View Teino1978-Corp's full-sized avatar

Teino Boswell Teino1978-Corp

  • Ocho Rios, Jamaica
View GitHub Profile
@Teino1978-Corp
Teino1978-Corp / 0-STATE-RUN-SALT-API-GITHUB-HOOK-USE-CASE.md
Created October 3, 2015 00:09 — forked from renoirb/0-STATE-RUN-SALT-API-GITHUB-HOOK-USE-CASE.md
State runner on salt-api POST from GitHub push hook

Validate and run a state when a valid GitHub hook call has been received from salt-api

Idea is that we can setup salt-api to receive hook call from GitHub, and configured run stat.sls only if the request HMAC signature matche is successful.

Unfortunately most documentation says to deactivate salt-api hooks authentication (i.e. webhook_disable_auth: True) which is not a good idea.

This Gist is about finding a way to declare which state to run based on data GitHub sends on push hook. But ONLY if the request is valid.

Skeleton defines desired logic, see reactor_github_push.py below.

@Teino1978-Corp
Teino1978-Corp / example-repository-redirects.md
Created October 3, 2015 00:18 — forked from jasonrudolph/example-repository-redirects.md
Preview Repository Redirects in the GitHub API

Repository redirects are coming to the GitHub API, and this functionality is now available for developers to preview. Let's try it out.

First, we need a repository that has been renamed or relocated. Since jasonrudolph/jasonrudolph.github.io was previously named jasonrudolph/jasonrudolph.com, we can use it as our guinea pig. 🌍🐖

We'll use curl for all of our examples below, and we'll include the --location option to instruct curl to follow any redirects that it encounters.

The Present

Using the current production version of the GitHub API, when we attempt to [access the repository](https://developer.github.com/v3/repos/#get

github.js

Client-side Javascript API wrapper for GitHub

Tries to map one-to-one with the GitHub API V2, but in a Javascripty manner.

(function (globals) {

Before we implement the API methods, we will define all of our private variables and helper functions with one var statement.

@Teino1978-Corp
Teino1978-Corp / test-transactions.md
Created October 18, 2015 19:01 — forked from anandpdoshi/test-transactions.md
ERPNext Test Plan via UI

DocTypes

Accounts - Account
Accounts - Accounts Settings
Accounts - Bank Reconciliation
Accounts - Budget Distribution
Accounts - C-Form
Accounts - Chart of Accounts
Accounts - Cost Center
Department BCL Program 2012 Actual 2013 Adopted 2014 Endorsed 2014 Proposed
12LIBLEVY Library Levy Operating Transfer Library Levy Operating Transfer 13049781 12658704 12658704
ARTS Arts Account Administrative Services 409133 400683 411913 587579
ARTS Arts Account Community Development and Outreach 1721308 518398 534369 524770
ARTS Arts Account Cultural Partnerships 2502448 3030729 3005137 3440764
ARTS Arts Account Langston Hughes Performing Arts Institute 745698 778669 809180
ARTS Municipal Arts Fund Municipal Arts Fund 2798353 2449820 2513673 2991764
AUD Office of City Auditor Office of City Auditor 1148312 1913014 1461132 1402670
CBLFEE Cable Fee Support to Information Technology Fund Cable Communications 723252 745244 766477 776904
CBLFEE Cable Fee Support to Information Technology Fund Community Technology 1317216 1333350 1367133 1431718

Acquisitions Administration

Acquisitions Settings

Several setting in the Library Settings area of the Admin module pertain to functions in the Acquisitions module. You can access these settings by clicking

{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{

Wikipedia: ""A 30 July 2010 ruling by the Supreme Court of Costa Rica stated: "Without fear of equivocation, it can be said that these technologies [information technology and communication] have impacted the way humans communicate, facilitating the connection between people and institutions worldwide and eliminating barriers of space and time. At this time, access to these technologies becomes a basic tool to facilitate the exercise of fundamental rights and democratic participation (e-democracy) and citizen control, education, freedom of thought and expression, access to information and public services online, the right to communicate with government electronically and administrative transparency, among others. This includes the fundamental right of access to these technologies, in particular, the right of access to the Internet or World Wide Web."""

Constitution of Peer to Peer Entities

Established by Humanity under the guidance of the Logic Engine,

this date in history 2015 March 04 10 23:50 +000 GMT

for var i = 0, elements = 0; i < circles; i++ {
x = helixRadius * cos(t)
z = helixRadius * sin(t)
y = pitchInherent * pitchCurrent * t
t += yIncrement
helixAngle = atan2(x, z)
let circleCenter = Float3(x: x, y: y, z: z)