Skip to content

Instantly share code, notes, and snippets.

@Jsewill
Jsewill / cat1_snapshot.sh
Last active August 4, 2022 00:29
CAT1 Snapshot
#!/bin/bash
export FULL_NODE_HOSTNAME=localhost
export DB_SOURCE_DIR=$HOME/.chia/mainnet/db
export START_HEIGHT=1146800
export TARGET_HEIGHT=2311760
usage() {
cat << EOF
Usage: $0 [-psc] [-t "<tail:prefix> <tail:prefix> ..."]
@Jsewill
Jsewill / rename_cat_wallets.sh
Last active August 17, 2022 17:49
Script for renaming Chia CAT wallets
#!/bin/bash
######
#
# Make sure Chia is in your PATH env variable, or that you activate your chia virtual environment before running this script. Everyone's setup is different.
#
#####
usage() { echo "Usage: $0 [-f <wallet_fingerprint>]" 1>&2; exit 1; }
[ $# -eq 0 ] && usage
@Jsewill
Jsewill / cacheguard.php
Last active February 28, 2017 08:36 — forked from jpdevries/cacheguard.php
Untick Empty Cache Checkbox for Unpublished Resources in MODX Revolution Plugin
<?php
/**
* cacheguard plugin for cacheguard extra
*
* Copyright 2013 by JP DeVries jp@modx.com
* Created on 06-21-2013
*
* cacheguard is free software; you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option) any later
@Jsewill
Jsewill / packet.go
Last active August 29, 2015 14:21
Makes a packet slice by splitting "slice"
const (
PACKET_DATA_SIZE uint = 65507
)
var packets [][]byte
if length := len(slice); length >= PACKET_DATA_SIZE {
limit := length/PACKET_DATA_SIZE
for i := 0; i < limit; i++ {
if (i+1)*PACKET_DATA_SIZE < length {
packets = append(packets, slice[i*PACKET_DATA_SIZE:(i+1)*PACKET_DATA_SIZE])
@Jsewill
Jsewill / mine-litecoin
Last active December 31, 2015 11:09
Simple mining ssh helper scripts for linux
#!/bin/bash
export DISPLAY=:0
export GPU_MAX_ALLOC_PERCENT=100
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_HEAP_SIZE=100
xhost +local:
amdconfig --odsc 1050,1200 --adapter=all
@Jsewill
Jsewill / parallax.patch
Created December 13, 2012 16:59
parallax shader patch to blender trunk.
Index: release/scripts/startup/bl_ui/properties_texture.py
===================================================================
--- release/scripts/startup/bl_ui/properties_texture.py (revision 52857)
+++ release/scripts/startup/bl_ui/properties_texture.py (working copy)
@@ -882,6 +882,7 @@
col = split.column()
if tex.texture_coords in {'ORCO', 'UV'}:
col.prop(tex, "use_from_dupli")