Skip to content

Instantly share code, notes, and snippets.

View webmutation's full-sized avatar

Daniel Mendes webmutation

  • European Commision
View GitHub Profile
@webmutation
webmutation / gist:8bd27baddda288b81438901521890b7b
Created October 13, 2023 19:29
Footify CLI fcli useful commands
To get only specific results from SCA, Sonatype, etc... we can use the following
fcli ssc appversion-vuln count --appversion MyApp:version --by 11111111-1111-1111-1111-111111111151 -q id=SCA
fcli ssc appversion-vuln count --appversion MyApp:version --by 11111111-1111-1111-1111-111111111151 -q id=SONATYPE
It is currently not possible to combine grouping and filtering in the fcli, so the next best thing is to \
use filterset and then query to count for example the number of SCA High or Critical count
fcli ssc appversion-vuln count --appversion MyApp:version --filterset=32142c2d-3f7f-4863-a1bf-42jadfrfasd2ed -q id=High -o expr={visibleCount}
_____ _ _ _______ _______ _____ _____ _____
| __ \ /\ | \ | | / ____\ \ / / ____| __ \_ _/ ____|
| | | | / \ | \| | | (___ \ \_/ / (___ | | | || || | __
| | | |/ /\ \ | . ` | \___ \ \ / \___ \| | | || || | |_ |
| |__| / ____ \| |\ | ____) | | | ____) | |__| || || |__| |
|_____/_/ _\_\_| \_|_|_____/ |_|_|_____/|_____/_____\_____|
| | / __ \ / ____| || | | |
| | | | | | | __| || |_ | |
| | | | | | | |_ |__ _| | |
,--.
,---, ,---, ,--.'| .--.--. .--.--. ,---, ,---, ,----..
.' .' `\ ' .' \ ,--,: : | / / '. ,---, / / '. .' .' `\ ,`--.' | / / \
,---.' \ / ; '. ,`--.'`| ' : | : /`. / /_ ./|| : /`. / ,---.' \ | : :| : :
| | .`\ |: : \ | : : | | ; | |--`,---, | ' :; | |--` | | .`\ |: | '. | ;. /
: : | ' |: | /\ \ : | \ | : | : ;_ /___/ \. : || : ;_ : : | ' || : |. ; /--`
| ' ' ; :| : ' ;. : | : '
const chromeless = new Chromeless({ remote: true })
const screenshot = await chromeless
.goto('https://html5test.com/')
.wait(2000)
.screenshot()
console.log(screenshot)
await chromeless.end()
@webmutation
webmutation / index.html
Last active August 24, 2016 13:18 — forked from ilyabo/index.html
D3 Dorling cartogram with rectangular states
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Dorling Cartogram</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.v2.js"></script>
<style>
#chart {
width: 960px;
height: 470px;
@webmutation
webmutation / DCOS Windows 7 Installation
Last active May 19, 2016 15:09
DCOS installation for local Windows Machine (behind Corporate Firewall)
Download dcos https://dcos.io/releases/
Once downloaded, move the installer (dcos_generate_config.sh) to the root of the repo (the repo will be mounted into the vagrant machines as /vagrant).
Install VBox and Vagrant
Clone Repo
git clone https://github.com/dcos/dcos-vagrant
Install Vagrant plugins
$ vagrant plugin install vagrant-hostmanager
var requestFileSystem = window.webkitRequestFileSystem || window.mozRequestFileSystem || window.msRequestFileSystem || window.requestFileSystem;
var URL = "example.zip";
var filesystem, zipFs = new zip.fs.FS();
function onerror(message) {
console.error(message);
}
function removeRecursively(entry, onend, onerror) {
var rootReader = entry.createReader();