- Go to: 'System Preferences' >> 'MySQL' and stop MySQL
OR,
- sudo /usr/local/mysql/support-files/mysql.server start
- sudo /usr/local/mysql/support-files/mysql.server stop
| 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 |
| def jobName = "copy_folder" | |
| def job = Jenkins.instance.getItem(jobName) | |
| job.getBuilds().each { it.delete() } | |
| job.nextBuildNumber = 1 | |
| job.save() |
| 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() |
| 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) && \ |
| # r2-ghidra-docker | |
| # ================ | |
| # | |
| # Requires 2.5GB of free disk space | |
| # | |
| # Using debian 9 as base image. | |
| FROM debian:9 | |
| # Label base |
| from pathlib import Path | |
| import os | |
| x = { | |
| 'main': { | |
| 'header': None, | |
| 'splash': None, | |
| 'staticlayout': None, | |
| 'boardslayour': None, | |
| 'search': None, |
| curl -T my-local-file.txt ftp://ftp.example.com --user user:secret |
| Install HAProxy from Homebre: | |
| `brew install haproxy` | |
| For full reference: | |
| https://serversforhackers.com/load-balancing-with-haproxy |
| package singleton | |
| import ( | |
| "sync" | |
| ) | |
| type singleton struct { | |
| } | |
| var instance *singleton |