Skip to content

Instantly share code, notes, and snippets.

View vdchuyen's full-sized avatar

Chuyen Vo vdchuyen

View GitHub Profile
#!/usr/bin/env python
###################################################################################################
# ChronosTool.py
# Tool for programming TI eZ430-Chronos watches
# (C) 2011, Christiane Ruetten, cr@23bit.net
#
# Released under GPLv2, see http://www.gnu.org/licenses/gpl-2.0.html
#
# The included ram_based_updater.txt binary blob rfbsl code is
# (C) 2010 Texas Instruments Inc., released under the following license:
#!/usr/bin/env python
###################################################################################################
# ChronosTool.py
# Tool for programming TI eZ430-Chronos watches
# (C) 2011, Christiane Ruetten, cr@23bit.net
#
# Released under GPLv2, see http://www.gnu.org/licenses/gpl-2.0.html
#
# The included ram_based_updater.txt binary blob rfbsl code is
# (C) 2010 Texas Instruments Inc., released under the following license:
@8000
12 00 24 00 47 00 8F 00 1E 01 3B 02 76 04 9A EF
00 00 74 8A 00 00 04 B3 00 00 0C F4 00 00 20 80
4A E0 00 00 16 B2 00 00 5A C6 00 00 96 DE 00 00
32 80 90 F6 00 00 82 B6 00 00 36 BE 00 00 8A DE
00 00 44 80 AC EF 00 00 D6 AB 00 00 B6 93 00 00
0C F4 00 00 56 80 0A E9 00 00 90 F6 00 00 BA A4
00 00 70 DE 00 00 0E 80 3C E6 00 00 B6 94 00 00
F6 AC 00 00 9E DE 00 00 7A 80 32 EB 00 00 6A E8
00 00 C2 9D 00 00 F4 F3 00 00 8C 80 C4 EB 00 00
@vdchuyen
vdchuyen / stashboard.py
Last active August 29, 2015 14:25 — forked from neiltron/stashboard.py
hack stashboard to make it update server status with cron
import urllib
import urllib2
import socket
from google.appengine.api import urlfetch
from google.appengine.api.urlfetch import DownloadError
from google.appengine.ext import db
from models import Status, Service, Event
from datetime import datetime, timedelta, date
@vdchuyen
vdchuyen / gist:8d97216ac4b0e68a5bf5
Last active September 17, 2015 19:13
dns ns check
import requests
import json
zone = ['at01', 'at02', 'ch01', 'ch02', 'cn01', 'cn02', 'cn03', 'cn04', 'us01', 'us02', 'us03', 'google1', 'google2', 'he', 'opendns1', 'opendns2']
for i in zone:
r = requests.get('http://www.dns-lg.com/' + i + '/123pay.vn/ns')
print 'location: %s, data: %s' % (i, json.dumps(r.json(), indent=3))
import socket
import time
s = socket.socket()
address = 'hostname.com'
port = 443
try:
s.connect((address, port))
print(time.asctime() + " OK")
except Exception as e:
@vdchuyen
vdchuyen / bbb-centos-install.sh
Last active December 15, 2021 16:21 — forked from gavargas22/gist:e86e77e84ea80784105a
BigBlueButton on CentOS
#Steps taken to install Big Blue Button in CentOS 6
# we'll work mostly from the /tmp/ directory:
cd /tmp
#Install freeswitch
rpm -Uvh http://files.freeswitch.org/freeswitch-release-1-0.noarch.rpm
yum install freeswitch-config-vanilla
yum install sox freeswitch-sounds*
@vdchuyen
vdchuyen / orgchartBuilder.py
Created August 4, 2016 06:54 — forked from rjnienaber/orgchartBuilder.py
Script to build an organizational chart from Active Directory
'''
Copyright (c) 2011, Richard Nienaber
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
The name of 'Richard Nienaber' may not be used to endorse or promote products derived from this software without specific prior written permission.
@vdchuyen
vdchuyen / org chart note
Last active August 4, 2016 06:56
Org chart google appengine
https://developers.google.com/chart/interactive/docs/gallery/orgchart
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArcAAAE1CAIAAAByb19uAAAACXBIWXMAAAxOAAAMTgF/d4wjAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByA