Skip to content

Instantly share code, notes, and snippets.

View xarses's full-sized avatar

Andrew Woodward xarses

  • San Francisco, Bay Area, CA
View GitHub Profile
@xarses
xarses / GT6-OpenComputers.zs
Created May 29, 2022 20:37
GT6 machines for OpenComputers (incomplete)
// cases -> replace with galvanized, Al, or Stainless machine casings (including 4 ignot peices)
// capacitator -> replace paper with button cell
// https://github.com/LionZXY/MTUtils/
import mods.MTUtilsGT;
import minetweaker.item.IItemStack;
import minetweaker.item.IIngredient;
import minetweaker.liquid.ILiquidStack;
import minetweaker.oredict.IOreDictEntry;
@xarses
xarses / gist:ec93f3a5ce666388cf07e7e77a7a8bd1
Last active April 11, 2022 17:00
Processing line needs
ore refining lines:
Persulfate:
- Malachite
- Azureite
- Nickolite
- Pent?
- Garnerite?
- Pandentilte
@xarses
xarses / JSONFile.gd
Created May 3, 2021 02:42
Example gdscript (Godot) json file helpers
extends Reference
# Copyright (C) 2020: Andrew Woodward (xarses)
# This file is available under the MIT license
class_name JSONFile
var data := {}
var fileName := ""
@xarses
xarses / keybase.md
Created April 20, 2018 02:25
keybase.md

Keybase proof

I hereby claim:

  • I am xarses on github.
  • I am xarses (https://keybase.io/xarses) on keybase.
  • I have a public key whose fingerprint is 1F66 416E 9AD4 04DC E759 B14A CE5F E7FC 4432 7383

To claim this, I am signing this object:

$ yum check-updates | grep 3.10.0
kernel.x86_64 3.10.0-693.11.1.el7 updates
kernel-tools.x86_64 3.10.0-693.11.1.el7 updates
kernel-tools-libs.x86_64 3.10.0-693.11.1.el7 updates
python-perf.x86_64 3.10.0-693.11.1.el7 updates
$ yum --obsoletes upgrade kernel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
$ export | grep OS_
declare -x OS_CLOUD="a-vsv1-c1"
$ python -i
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os_client_config as oscc
>>> sdk = oscc.make_sdk()
>>>
@xarses
xarses / eh.lua
Last active April 18, 2017 06:07
-- Listen --
modem = component.modem
modem.open(123)
function respond(event, localAddress, remoteAddress, port, distance, ...) print(table.unpack{...}) end
event.listen('modem_message', respond)
-- Send --
modem.broadcast(123, 'asdf', 'asdf', 'asdf')
@xarses
xarses / loops for days...
Created February 16, 2017 22:33
more fun with rally
{% set flavor_name = flavor_name or "m1.tiny" %}
{% set zones = zones or ['nova'] %}
{% set times = times or 1 %}
---
NovaServers.boot_and_delete_server:
{% for zone in zones %}
-
args:
flavor:
name: "{{flavor_name}}"
$ rally task start test01.yaml
Running Rally version 0.8.2~dev61
--------------------------------------------------------------------------------
Preparing input task
--------------------------------------------------------------------------------
Input task is:
---
NovaServers.boot_and_delete_server:
$ pip freeze
alabaster==0.7.9
alembic==0.8.10
ansible==2.2.1.0
appdirs==1.4.0
Babel==2.3.4
bindep==2.1.0
boto==2.45.0
cffi==1.9.1
cliff==2.4.0