Skip to content

Instantly share code, notes, and snippets.

View gt50's full-sized avatar

Shawn Q Jackson gt50

View GitHub Profile
@gt50
gt50 / 20180111.py
Created January 12, 2018 00:39
willmadison challenge
s = "abacabaabacaba"
sset = sorted(set(s), key=s.index)
for i in sset:
count = 0
for j in s:
if j == i:
count += 1
if count == 1:
print(i)
@gt50
gt50 / win_update.yml
Created February 8, 2018 21:41 — forked from elordahl/win_update.yml
Ansible playbook to run Windows Update and restart, if required
---
# Ansible playbook to run Windows Update and restart, if required
#
# http://docs.ansible.com/ansible/win_updates_module.html
# https://docs.ansible.com/ansible/win_reboot_module.html
- name: Windows Update
hosts: all
gather_facts: false
tasks:
@gt50
gt50 / win_ping.yml
Last active February 9, 2018 03:53
---
# This playbook uses the win_ping module to test connectivity to Windows hosts
- name: Ping
hosts: all
tasks:
- name: ping
win_ping:
@gt50
gt50 / rocketchatetl.py
Created June 7, 2018 21:19
Import rocket chat messages into sql server
server_name = '10.1.2.254'
username = 'rocketchat'
password = 'uMdB9WAtVauyMFc'
database = 'rocketchat'
import pymongo
import pyodbc
import pandas as pd
import urllib.parse
from sqlalchemy import create_engine
/*
* 1. Declare a madLib variable
* 2. Use the adjective1, adjective2, and adjective3 variables to set the madLib variable to the message:
*
* 'The Intro to JavaScript course is amazing. James and Julia are so fun. I cannot wait to work through the rest of this entertaining content!'
*/
var adjective1 = 'amazing';
var adjective2 = 'fun';
var adjective3 = 'entertaining';