-
Download xor, extract the content, modify the value
path[0]
to point to the executablexor.exe
. -
Download 7-Zip, extract the content, modify the value
path[1]
to point to the executable7z.exe
. -
Download quickbms, extract the content, modify the value
path[2]
to point to the executablequickbms.exe
. -
Download fmod_extractors, extract the content, modify the value
path[3]
to point to the executablefmod_extr.exe
.
Discover gists
py.test test_sample.py --collect-only # collects information test suite | |
py.test test_sample.py -v # outputs verbose messages | |
py.test -q test_sample.py # omit filename output | |
python -m pytest -q test_sample.py # calling pytest through python | |
py.test --markers # show available markers |
function millisecondsToStr (milliseconds) { | |
// TIP: to find current time in milliseconds, use: | |
// var current_time_milliseconds = new Date().getTime(); | |
function numberEnding (number) { | |
return (number > 1) ? 's' : ''; | |
} | |
var temp = Math.floor(milliseconds / 1000); | |
var years = Math.floor(temp / 31536000); |
Bookmarks tagged [java]
https://github.com/prometheus/jmx_exporter
JMX to Prometheus exporter: a collector that can configurably scrape and expose mBeans of a JMX target.
This exporter is intended to be run as a Java Agent, exposing a HTTP server and serving metrics...
This works on a Pi 4, and should work on a Pi 3, but to work on a Pi Zero you would have to figure out how to compile your own client. More info in this thread on the Proxmox forums.
Run the following command. If you get arm64
, it's 64bit, otherwise you'll see armv7l
which is 32bit.
uname -m
If you run Ghidra on a high DPI screen, you will probably find the GUI to be scaled down so small to be almost of no use.
There is a setting that you can adjust to scale the Ghidra GUI:
in $GHIDRA_ROOT/support
is a file named launch.properties
. In this launch.properties
file is the following configuration key:
VMARGS_LINUX=-Dsun.java2d.uiScale=1
# The UID and GID of the user used to run paperless in the container. Set this | |
# to your UID and GID on the host so that you have write access to the | |
# consumption directory. | |
USERMAP_UID=1028 | |
USERMAP_GID=100 | |
# Additional languages to install for text recognition, separated by a | |
# whitespace. Note that this is | |
# different from PAPERLESS_OCR_LANGUAGE (default=eng), which defines the |
#!/usr/bin/env python | |
""" | |
Simple script to transform openscale csv export files to a format accepted by garmin connect at | |
https://connect.garmin.com/modern/import-data | |
Note: When importing the language needs to be set to English, otherwise the import fails. | |
Set everything to metric units and to YYYY-MM-DD date format. | |
If you want to compute BMI for the file give your height (im meters) as second parameter. |
The list of actions listed below was taken mostly from Book Of Zeus with minor modifications and did the job well for Ubuntu version, which was available at that moment (May 2016). This gist was created for internal use and was never meant to be discovered by the web, although Google managed to find and index this page, which was a great surprise for me. Please check the original source for the updated information (links are provided in most of the sections), and read the comments below: they provide more details about the usage experience.
http://bookofzeus.com/harden-ubuntu/initial-setup/system-updates/
Keeping the system updated is vital before starting anything on your system. This will prevent people to use known vulnerabilities to enter in your system.
import boto3 | |
ec2 = boto3.resource('ec2') | |
def lambda_handler(event, context): | |
# create filter for instances in running state | |
filters = [ | |
{ | |
'Name': 'instance-state-name', | |
'Values': ['running'] |