Skip to content

Instantly share code, notes, and snippets.

@andrewd-sysdig
andrewd-sysdig / xmupx.b64
Created April 4, 2023 04:11
Xmrig to test security tooling
This file has been truncated, but you can view the full file.
@andrewd-sysdig
andrewd-sysdig / Dockerfile
Created September 15, 2022 00:51
TKO Training 1 Dockerfile final
FROM node:18-alpine
WORKDIR /usr/src/app
COPY app.js .
USER 1000
CMD [ "node", "app.js" ]
@andrewd-sysdig
andrewd-sysdig / app.js
Last active September 14, 2022 22:20
Sample hello-world node application
const http = require('http');
const fs = require('fs')
const hostname = '0.0.0.0';
const port = 3000;
const server = http.createServer((req, res) => {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
fs.readFile("./mydata.json", "utf8", (err, jsonString) => {
@andrewd-sysdig
andrewd-sysdig / harbor.sh
Last active August 21, 2022 22:16 — forked from danielporto/harbor.sh
Quick Start Harbor Installation Script on Ubuntu 20.04
#!/bin/bash
#Harbor on Ubuntu 20.04
#Prompt for the user to ask if the install should use the IP Address or Fully Qualified Domain Name of the Harbor Server
PS3='Would you like to install Harbor based on IP or FQDN? '
select option in IP FQDN
do
case $option in
IP)