Skip to content

Instantly share code, notes, and snippets.

View cicorias's full-sized avatar

Shawn Cicoria cicorias

View GitHub Profile
@cicorias
cicorias / .vsconfig-2017
Created May 12, 2020 14:41
Visual Studio Exports for 2019 and 2017
{
"version": "1.0",
"components": [
"Microsoft.VisualStudio.Component.Roslyn.Compiler",
"Microsoft.Component.MSBuild",
"Microsoft.VisualStudio.Component.CoreBuildTools",
"Microsoft.VisualStudio.Workload.MSBuildTools",
"Microsoft.VisualStudio.Component.Windows10SDK",
"Microsoft.VisualStudio.Component.VC.CoreBuildTools",
"Microsoft.VisualStudio.Component.Static.Analysis.Tools",
@cicorias
cicorias / CMakeSettings.json
Created May 11, 2020 20:13
CMake and VS 2019
// See https://go.microsoft.com//fwlink//?linkid=834763 for more information about this file.
"configurations": [
{
"name": "x64-Debug",
"generator": "Ninja",
"configurationType": "Debug",
"inheritEnvironments": [ "msvc_x64_x64" ],
"buildRoot": "${projectDir}\\out\\build\\${name}",
"installRoot": "${projectDir}\\out\\install\\${name}",
"cmakeCommandArgs": "",
@cicorias
cicorias / patch.exe.manifest
Created May 5, 2020 21:04
patch.exe manifest to prevent UAE with the Patch.exe that comes with Git for windows
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0"
processorArchitecture="X86"
name="patch.exe"
type="win32"/>
<!-- Identify the application security requirements. -->
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
@cicorias
cicorias / jupyter_logging.py
Created May 3, 2020 17:22 — forked from wassname/jupyter_logging.py
simple logging for jupyter or python which outputs to stdout (or a console or terminal) and a log file
"""
In jupyter notebook simple logging to console
"""
import logging
import sys
logging.basicConfig(stream=sys.stdout, level=logging.INFO)
# Test
logger = logging.getLogger('LOGGER_NAME')
@cicorias
cicorias / aws_glacier_delete_vault.md
Created May 3, 2020 15:36 — forked from veuncent/aws_glacier_delete_vault.md
Delete all archives in an AWS Vault

AWS Glacier: Delete vault

Follow these steps to remove all archives from an AWS vault. After this is finished, you will be able to delete the vault itself through the browser console.

Step 1 / Retrieve inventory

This will create a job that collects required information about the vault.

$ aws glacier initiate-job --job-parameters '{"Type": "inventory-retrieval"}' --account-id YOUR_ACCOUNT_ID --region YOUR_REGION --vault-name YOUR_VAULT_NAME 
@cicorias
cicorias / patch.exe.manifest
Created April 29, 2020 12:46
manifest for patch.exe
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0"
processorArchitecture="X86"
name="patch.exe"
type="win32"/>
<!-- Identify the application security requirements. -->
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
@cicorias
cicorias / MLP.py
Created April 26, 2020 18:46 — forked from umitanuki/MLP.py
blog-mlp-scripts
import argparse
import sys
import tempfile
from time import time
import random
from os import listdir
from os.path import isfile, join
import pandas
@cicorias
cicorias / Decision_Trees.ipynb
Created April 13, 2020 01:05 — forked from bbartoldson/Decision_Trees.ipynb
Decision Trees with NumPy!
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cicorias
cicorias / po-add.sh
Created March 19, 2020 20:40
setup TF 2.0- Lab
$!/usr/bin/env bash
poetry add --dry-run tensorflow tensorflow-serving-api tensorboard \
tensorflow-datasets tensorflow-hub tensorflow-probability \
tensorflow-addons \
jupyterlab \
imageio \
Pillow \
scikit-image \
graphviz \
@cicorias
cicorias / setup.R
Created March 15, 2020 00:24
R install packages stagted
Sys.setenv(R_INSTALL_STAGED = FALSE)