Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View victoriastuart's full-sized avatar

Victoria Stuart victoriastuart

View GitHub Profile
===============================================================================
APPLICATION OF LET'S ENCRYPT SSL CERTIFICATE TO APACHE SOLR
===============================================================================
This solution / summary is in two parts.
1. Failed installation of LE certificate via OpenSSL approach (SO #41592427).
2. Successful installation via blog entry.
# coding: utf-8
# FILE:
# -----
# /mnt/Vancouver/apps/Webcam-Face-Detect/webcam_cv3_v2_fps_v3.py
# FUNCTIONALITY:
# --------------
# * outputs webcam to screen and finds faces, eyes
# * writes webcam video to *.avi file (MJPG codec) via OpenCV/FourCC
VPN Notes, Scripts
Victoria Stuart: Apr 12, 2017
[gmail: Victorias.Linux@ ...]
File: /mnt/Vancouver/Reference/VPN/vpn notes, scripts.txt
Saved 2017-Apr-12 as public Gist:
https://gist.github.com/victoriastuart/19acf4944c9c95af461d62b27d0c19ec
# https://gist.github.com/victoriastuart/c4e3230ade5266c9330a618be560b849
# https://www.reddit.com/r/LanguageTechnology/comments/b8xdb1/find_independent_clause_from_a_statement/
import nltk
from nltk.tag import pos_tag
import re
def getSentenceType(statement):
sentenceParts = pos_tag(statement.split())
return sentenceParts
==============================================================================
file: /mnt/Vancouver/apps/CoreNLP/_victoria/gist_for_SO44910934.txt
title: "CoreNLP" {Java | Python} Gist for StackOverflow #44910934
author: Victoria A. Stuart
created: 2020-01-03
version: 01
last modified: 2020-01-03
Versions:
* v01 : this
@victoriastuart
victoriastuart / cnn_age_gender_demo_with_image_crop.py
Last active December 29, 2019 08:45
Caffe - age, gender CNN with image crop ...
#!/usr/bin/env python
# coding: utf-8
"""AGE AND GENDER CLASSIFICATION USING CONVOLUTIONAL NEURAL NETWORKS - DEMO
This code is originates with the paper:
Gil Levi and Tal Hassner, "Age and Gender Classification Using Convolutional Neural Networks,"
IEEE Workshop on Analysis and Modeling of Faces and Gestures (AMFG), at the IEEE Conf. on
Computer Vision and Pattern Recognition (CVPR), Boston, June 2015
==============================================================================
Caffe Installation Notes
[2016-Nov-21] Arch Linux x86_64 | Intel Core i7-4790 CPU | ...
==============================================================================
* Caffe home page: http://caffe.berkeleyvision.org/installation.html
* GitHub: https://github.com/BVLC/caffe
@victoriastuart
victoriastuart / notes.txt
Last active July 26, 2017 00:47
[Linux] recurse through child directories, searching and replacing text in files (two methods), with optional filename, filename extension matching
==============================================================================
/mnt/Vancouver/Programming/scripts/claws_sed_tests/notes.txt
# ----------------------------------------------------------------------------
[victoria@victoria claws_sed_tests]$ date
Fri Jul 7 10:07:39 PDT 2017
<!DOCTYPE html>
<html lang="en-us">
<!--
Example derived from:
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/conditional
-->
<head>
<meta charset="utf-8" />
PROBLEM: tag a file, at the top of the file, with the base name of the parent directory.
SOLUTION 1 -- non-empty files:
$ bn=${PWD##*/} ## bn: basename
$ sed -i '1s/^/'"$bn"'\n/' <filename>
SOLUTION 2a -- empty files: