Skip to content

Instantly share code, notes, and snippets.

View Streek's full-sized avatar
🎯
Focusing

Keith Connolly Streek

🎯
Focusing
View GitHub Profile
@Streek
Streek / gist:2e61813111018744683a19c81da5fe5c
Created October 7, 2023 04:13
Remove gaming services for xbox GP.
Get-AppxPackage *gamingservices* -allusers | remove-appxpackage -allusers
require "net/http"
require "json"
require "base64"
class ZincAPI
API_ENDPOINT = "https://api.zinc.io/v1"
def initialize(client_token)
@client_token = client_token
end
@Streek
Streek / population.csv
Created August 2, 2020 18:22
A csv file for my machine learning youtube series.
realtime_start value date realtime_end
20191206 156309 19520101 20191206
20191206 156527 19520201 20191206
20191206 156731 19520301 20191206
20191206 156943 19520401 20191206
20191206 157140 19520501 20191206
20191206 157343 19520601 20191206
20191206 157553 19520701 20191206
20191206 157798 19520801 20191206
20191206 158053 19520901 20191206
{
"query": {
"bool": {
"must": [
{
"multi_match": {
"query": "allbound",
"fields": [
"position.company_name^5",
"position.company_name.keyword^10"
this.fieldMappings = {
"firstName": {
"value": "AnnualRevenue",
"option": "never"
},
}
this.config = {
"contact": {
"firstName": {
@Streek
Streek / redisSet.js
Created January 2, 2019 22:02
check if key exists, react if it does.
var redis = require("redis"),
client = redis.createClient();
const object = {/*full json of thing...*/ };
client.on("error", function (err) {
console.log("Error " + err);
});
const redisKeyCreateOrContinue(object) {
{
"sources": [
"fullcontact",
"netwiseHeadline",
"linkedinHeadline"
],
"source_profile_ids": {
"fullcontact": "339cabf5fde5dd7588a8c74dc3d81ffb218fb13696730d7fc1fa3c5df21d3a2f",
"netwiseHeadline": "/in/mattekstrom",
"linkedinHeadline": null
//Includes territories like "American Samoa"
const STATES = ['Alabama', 'Alaska', 'American Samoa', 'Arizona', 'Arkansas', 'California', 'Colorado', 'Connecticut', 'Delaware', 'District of Columbia', 'Federated States of Micronesia', 'Florida', 'Georgia', 'Guam', 'Hawaii', 'Idaho', 'Illinois', 'Indiana', 'Iowa', 'Kansas', 'Kentucky', 'Louisiana', 'Maine', 'Marshall Islands', 'Maryland', 'Massachusetts', 'Michigan', 'Minnesota', 'Mississippi', 'Missouri', 'Montana', 'Nebraska', 'Nevada', 'New Hampshire', 'New Jersey', 'New Mexico', 'New York', 'North Carolina', 'North Dakota', 'Northern Mariana Islands', 'Ohio', 'Oklahoma', 'Oregon', 'Palau', 'Pennsylvania', 'Puerto Rico', 'Rhode Island', 'South Carolina', 'South Dakota', 'Tennessee', 'Texas', 'Utah', 'Vermont', 'Virgin Island', 'Virginia', 'Washington', 'West Virginia', 'Wisconsin', 'Wyoming'];
cd $ZSH
git config core.autocrlf false
git rm --cached -r .
git reset --hard
@Streek
Streek / shortcuts.sh
Last active August 17, 2017 17:25
Docker Shortcuts
#This works on the majority of systems including windows with powershell.
#Start all docker containers
docker start $(docker ps -a -q)
#Stop all docker containers
docker stop $(docker ps -a -q)
#Remove all docker containers
docker rm $(docker ps -a -q)