This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io | |
import scp | |
import paramiko | |
import boto3 | |
import logging | |
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s :: %(levelname)s :: %(message)s') | |
boto_logger = logging.getLogger('boto_logger') | |
###################### Private Stuff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def jobName = "copy_folder" | |
def job = Jenkins.instance.getItem(jobName) | |
job.getBuilds().each { it.delete() } | |
job.nextBuildNumber = 1 | |
job.save() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import psutil | |
# main function | |
def sysStats(): | |
agg = {} | |
agg['posix_processes'] = _posixProcesses() | |
agg['windows_processes'] = _windowsProcesses() | |
agg['battery_info'] = _batteryInfo() | |
agg['cpu_info'] = _cpuInfo() | |
agg['mem_info'] = _memInfo() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:focal | |
RUN apt -y update && \ | |
apt -y upgrade && \ | |
apt-get -y install git build-essential bison && \ | |
git clone https://github.com/nimble-code/Cobra.git && \ | |
cd Cobra/src && \ | |
make install_linux && \ | |
cd .. && \ | |
d=$(pwd) && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# r2-ghidra-docker | |
# ================ | |
# | |
# Requires 2.5GB of free disk space | |
# | |
# Using debian 9 as base image. | |
FROM debian:9 | |
# Label base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// simple static server | |
let express = require('express'), | |
app = express(), | |
// favicon = require('serve-favicon'), | |
bodyParser = require('body-parser'); | |
// content directory(ies) | |
app.use(express.static('public')); | |
// app.use(favicon(path.join(__dirname, 'public', 'favicon.ico'))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pathlib import Path | |
import os | |
x = { | |
'main': { | |
'header': None, | |
'splash': None, | |
'staticlayout': None, | |
'boardslayour': None, | |
'search': None, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -T my-local-file.txt ftp://ftp.example.com --user user:secret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install HAProxy from Homebre: | |
`brew install haproxy` | |
For full reference: | |
https://serversforhackers.com/load-balancing-with-haproxy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package singleton | |
import ( | |
"sync" | |
) | |
type singleton struct { | |
} | |
var instance *singleton |