Skip to content

Instantly share code, notes, and snippets.

View Vietwear's full-sized avatar
💭
I may be slow to respond.

VU TRAN Vietwear

💭
I may be slow to respond.
View GitHub Profile
@Vietwear
Vietwear / .bash_profile
Created December 2, 2021 21:56 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# 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
@Vietwear
Vietwear / keras_bottleneck_multiclass.py
Created November 4, 2019 05:52 — forked from Thimira/keras_bottleneck_multiclass.py
Learn how to build a multi-class image classification system using bottleneck features from a pre-trained model in Keras to achieve transfer learning. Tutorial: https://www.codesofinterest.com/2017/08/bottleneck-features-multi-class-classification-keras.html
'''
Using Bottleneck Features for Multi-Class Classification in Keras
We use this technique to build powerful (high accuracy without overfitting) Image Classification systems with small
amount of training data.
The full tutorial to get this code working can be found at the "Codes of Interest" Blog at the following link,
https://www.codesofinterest.com/2017/08/bottleneck-features-multi-class-classification-keras.html
Please go through the tutorial before attempting to run this code, as it explains how to setup your training data.
#!/usr/bin/python3
import logging, sys
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
from collections import namedtuple
from ansible.parsing.dataloader import DataLoader
from ansible.vars import VariableManager
from ansible.inventory import Inventory
from ansible.playbook.play import Play
@Vietwear
Vietwear / list-tfs-work-items.ps1
Created December 13, 2016 06:24 — forked from glombard/list-tfs-work-items.ps1
Access TFS API using PowerShell
@(
'Microsoft.TeamFoundation.Build.Client',
'Microsoft.TeamFoundation.Build.Common',
'Microsoft.TeamFoundation.Client',
'Microsoft.TeamFoundation.WorkItemTracking.Client'
) | % {
[Reflection.Assembly]::LoadWithPartialName($_) | Out-Null
}
$uri = [URI]"https://my-tfs-online.visualstudio.com/DefaultCollection/"
@Vietwear
Vietwear / check_cronjob
Created July 4, 2016 21:15 — forked from nicolasmarengo/check_cronjob
Nagios Plugin to check if a cronjob is running through NRPE
#!/bin/bash
#
# Program : check_cronjob
#
PROGNAME=`basename $0`
REVISION=`echo '$Revision: 0.1 $' | sed -e 's/[^0-9.]//g'`
. /usr/lib/nagios/plugins/utils.sh
#!/bin/bash
# Original: http://steve-jansen.github.io/blog/2014/11/20/how-to-use-jenkins-to-monitor-cron-jobs/
# example cron script to post logs to Jenkins
# exit on error
set -e
log=`mktemp tmp.XXX`
timer=`date +"%s"`
jenkins_job=my_monitoring_job