Skip to content

Instantly share code, notes, and snippets.

@adgedenkers
adgedenkers / index.html
Created June 19, 2012 15:43
Yammer Authentication
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<ul id="site_menu" class="nav nav-list"></ul>
<script type="text/javascript" data-app-id="ABCDEFGHIJKlmnopqrstuv" src="https://assets.yammer.com/platform/yam.js"></script>
<script src="/tanzanite/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
@adgedenkers
adgedenkers / vpn_connection.scpt
Created October 11, 2012 18:16
Toggle Connection to VPN on a Mac via AppleScript
tell application "System Events"
-- get current clipboard contents as a string
set CurrentClipboard to the clipboard as string
-- set the clipboad to your password
set the clipboard to "Y0urVPNPa$$w0rd"
-- start playing with the VPN
tell current location of network preferences
@adgedenkers
adgedenkers / check_website.scpt
Created October 11, 2012 20:00
Check if a website is up
-- Check status of website
-- Requires application "Play Sound" - freely available here: http://microcosmsoftware.com/playsound/
try
set the_http to do shell script "curl -siv http://www.example.com"
set the_code to text from word 3 to word 3 of the_http
if the_code is "401" then
tell application "Play Sound"
@adgedenkers
adgedenkers / .bash_profile
Last active September 25, 2018 04:48
Adge's Bash Profile Example Functions and Shortcuts
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@adgedenkers
adgedenkers / cache_start.sh
Last active February 2, 2018 12:38
Starting Cache on a VistA system #bash #cache
$ csession start cache
When executing 02_Database_Objects, we get the following error:
Msg 4902, Level 16, State 1, Line 11802
Cannot find the object "dbo.MH_Infusion" because it does not exist or you do not have permissions.
Msg 4902, Level 16, State 1, Line 11805
Cannot find the object "dbo.MH_Infusion" because it does not exist or you do not have permissions.
Msg 4902, Level 16, State 1, Line 11862
Cannot find the object "dbo.SiteCommonInformation" because it does not exist or you do not have permissions.
(1 row(s) affected)
(1 row(s) affected)
(1 row(s) affected)
(1 row(s) affected)
(1 row(s) affected)
<?php
/** Configuration Variables **/   
define('DB_NAME', 'DB_NAME');     
define('DB_TYPE', 'sqlsrv');   
define('DB_HOST', "DB_SERVER");   
define('DB_USER', 'DB_USERNAME');   
define('DB_PASSWORD', 'SOME_PASSWORD_HERE');   
define('NV_BASE_URL', 'APPLICATION_URL');   
@adgedenkers
adgedenkers / .bash_profile
Last active February 2, 2018 12:54
Adge's Bash Profile - Mac #bash #profile
# -----------------------------------------------------
# Adge Denkers
# adge.denkers@gmail.com
# file name: .bash_profile
# date: 2017-08-08
# updated: 2018-02-02
# -----------------------------------------------------
# Adge's Personal Bash Profile for Mac
# -----------------------------------------------------
# v. 1.1
@adgedenkers
adgedenkers / frequently_used_commands.sh
Last active February 15, 2018 17:23
Frequently Used Commands #bash #commands #shortcuts
:be
# Edit your .bash_profile
:br
# Reload your .bash_profile
:servers
# Open VS Code and modify server list
:list-servers