Skip to content

Instantly share code, notes, and snippets.

@ghost-not-in-the-shell
ghost-not-in-the-shell / auto-kill-node.sh
Created March 22, 2021 18:35
Script to automatically kill the node if it's "not" synced
function is_synced {
local sync_status=$(mina client status | grep "Sync status" | cut -d":" -f2)
if [ $? -ne 0 ];
then
echo Fail to fetch sync status
return 0
fi
if [ $sync_status != "Synced" ];
then
echo Nodes not synced
@garethtdavies
garethtdavies / all_transactions.txt
Last active April 24, 2022 08:18
MinaExplorer GraphQL API
{
transactions(
limit: 25
sortBy: DATETIME_DESC
query: {OR: [{to: "B62qqHM1bihHNvju89PFYugLw73PYRb7pGwp82CpEmWfSYVJiQAppaC"}, {from: "B62qqHM1bihHNvju89PFYugLw73PYRb7pGwp82CpEmWfSYVJiQAppaC"}], AND: {canonical: true, dateTime_gte: "2021-01-15T00:00:00Z"}}
) {
fee
canonical
from
to
@extremecoders-re
extremecoders-re / vmware-no-vmem.md
Last active April 6, 2024 08:09
Boost VMWare Performance by disabling vmem files.

Prevent creation of vmmem files in VMware (Windows)

Issue

VMWare creates .vmem files to back the guest RAM. On the host this causes disk thrashing especially during powering on and off the guest.

Solution

Add the following lines to the .vmx file to prevent creation of .vmem files. This will reduce disk IO and VM performance will improve especially on non-SSD disks.