Skip to content

Instantly share code, notes, and snippets.

View greenido's full-sized avatar
🏃‍♂️
Running with a big smile

Ido Green greenido

🏃‍♂️
Running with a big smile
View GitHub Profile
@greenido
greenido / games-to-play.md
Last active May 16, 2021 23:46
Some of the best games out there are free and could be used with friends and family.

🎉

Name Why you should play it? Online version Comments
Settlers Of Catan Negotiation and trading – fun fun fun https://www.catan.com/game/catan-universe Free/Paid.My favorite.
Among Us A classic from the NRiB OGs https://store.steampowered.com/app/945360/Among_Us/ Free.A Fun one with co-workers as well.
Draw battle Show your super power drawing skills https://drawbattle.io/ Free
Jackbox.tv Great production value, variety of modes, easy drop in/drop out https://jackbox.tv/ Paid
Poker Tons of clients out there! Would probably work best as directly advertised poker game night. Black Tie not required but encouraged https://www.pokernow.club/ Many more options
Escape Room There’s a few self-run online escape rooms that I’ve annecdotally heard are quite fun (better than some chaperoned virtual escape rooms) Many options – Google will help hereHere is one example Free/Paid.A great way to learn about your friends…
#!_usr_bin_python
# -*- coding: utf-8 -*-
import json,sys
import urllib.request as urllib2
coin_ticker = "BTC" if "BTC"[0] != "{" else "BTC"
fiat_ticker = "USD" if "USD"[0] != "{" else "USD"
fiat_symbol = "$" if "$"[0] != "{" else "$"
num_format = "{:0,.1f}" if "{:0,.1f}"[2:8] != "format" else "{}"
mod_percent = float("0") if "0"[0] != "{" else float(0)
@greenido
greenido / FindEverstingSegments.js
Last active June 13, 2023 22:44
Find the best Eversting Segments Around The Bay Area (or any other location in the world) 🌋
/**
* Get from Strava segments in an area to check for the optimal one for eversting challange 🌋
*
* @author @greenido
* @update May 2020
*
* @see
* 🏉 API: https://www.strava.com/settings/api
*
* 🦊 Get long/lat on map: https://www.latlong.net/ or just google maps
/*
Step 1: Visit this page on LinkedIn; linkedin.com/feed/following.
Step 2: Open Developer Tools in Chrome (Right Click -> Inspect). Switch to the console tab.
Step 3: Paste this script to the console and press enter:
*/
function isHidden(el) {
@greenido
greenido / unfollow.js
Created September 20, 2020 00:24 — forked from JamieMason/unfollow.js.md
Unfollow everyone on twitter.com
// Unfollow everyone on twitter.com, by Jamie Mason (https://twitter.com/fold_left)
// https://gist.github.com/JamieMason/7580315
//
// 1. Go to https://twitter.com/YOUR_USER_NAME/following
// 2. Open the Developer Console. (COMMAND+ALT+I on Mac)
// 3. Paste this into the Developer Console and run it
//
// Last Updated: 09 April 2020
(() => {
const $followButtons = '[data-testid$="-unfollow"]';
@greenido
greenido / jenkins-plugins-stats.php
Created July 22, 2020 23:42
Fetch Jenkins' plugins data, get the number of their installations 🏆 and save it to a CSV file
<?php
/**
* Fetch Jenkins' plugins data, get the number of their installations 🏆 and save it to a CSV file
*
* @author Ido Green | @greenido
* @date 22 July 2020
* @see https://stats.jenkins.io/plugin-installation-trend/
*
*/
$html = file_get_contents('https://stats.jenkins.io/plugin-installation-trend/');
@greenido
greenido / JFrog-Xray-returned-JSON.js
Last active March 4, 2020 00:37
An example of an answer from JFrog Xray to 'get more details' per violation
{
"violation_id": "0",
"description": "FasterXML jackson-databind through 2.8.10 and 2.9.x through 2.9.3 allows unauthenticated remote code execution because of an incomplete fix for the CVE-2017-7525 deserialization flaw. This is exploitable by sending maliciously crafted JSON input to the readValue method of the ObjectMapper, bypassing a blacklist that is ineffective if the Spring libraries are available in the classpath.",
"summary": "FasterXML jackson-databind through 2.8.10 and 2.9.x through 2.9.3 allows unauthenticated remote code execution because of an incomplete fix for the CVE-2017-7525 deserialization flaw. This is exploitable by sending maliciously crafted JSON input to the readValue method of the ObjectMapper, bypassing a blacklist that is ineffective if the Spring libraries are available in the classpath.",
"severity": "High",
"type": "Security",
"provider": "JFrog",
"infected_components": [
"gav://com.fasterxml.jackson.core:jackson-databind:2.6.7"
],
@greenido
greenido / getViolationDetails.js
Last active March 4, 2020 00:38
Fetch more details per violation from JFrog Xray REST API
//
// Fetch more details per violation
// If you wish to merge it - the issue_id is the primary key
//
// @author: Ido Green | @greenido
// @date: Feb 2020
//
// @see:
// https://greenido.wordpress.com/2019/12/04/how-to-build-an-integration-with-jfrog-xray/
// https://greenido.wordpress.com/2020/02/12/continuous-software-updates/
@greenido
greenido / fetchXrayViolations.js
Last active February 26, 2024 12:48
Fetch JFrog Xray violations into CSV so you can use them in an external monitoring/logging tool
//
// Fetch Xray Data into CSV and later any DB/Logging/Monitoring tool you wish.
//
// @author: Ido Green | @greenido
// @date: March 2020
//
// @see:
// https://greenido.wordpress.com/2019/12/04/how-to-build-an-integration-with-jfrog-xray/
// https://greenido.wordpress.com/2020/02/12/continuous-software-updates/
//
@greenido
greenido / README-Template.md
Last active February 13, 2020 02:08 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Demo