Skip to content

Instantly share code, notes, and snippets.

@Slivicon
Slivicon / Export-GitHub-Issues.ps1
Last active August 30, 2024 20:36
Export GitHub issues, images and comments to offline files with an index, using the GH CLI
# Useful for scenarios where you need to have a snapshot of private repo issues exported offline
#
# 1. Download and install the GH CLI https://github.com/cli/cli
# 2. Save this script
# 3. Start a PowerShell CLI and navigate to the folder with the script
# 4. Run ".\Export-GitHub-Issues.ps1" "RepoOwner/Name" "Label"
# 5. It will prompt you to do a device login to your GitHub account to authorize GH CLI
# 6. It will download the issues and comments tagged with the label specified
# in the repo specified (as long as it is readable by your account)
# 7. It will download any images in the issue body or comments
@Slivicon
Slivicon / XComUpdateSpark.ini
Created December 6, 2019 22:34
Mechatronic Warfare (XCOM 2 WOTC Mod) Config changes to work with Covert Infiltration mod
[MechatronicWarfare.X2DownloadableContentInfo_MechatronicWarfare]
; Set this to true if your Schematic Merges are not working properly, then close and reopen XCOM 2.
; On loading a game, if this is true, your inventory will be scanned for items and then the linked
; SPARK items will be spawned. This does take into account the other settings below!
; For example, if this is set to true and you have a Mag Cannon but not a Helix Autocannon,
; then it will be granted to you if SPARK_OVERHAUL_WEAPON is set to true.
SPARK_OVERRIDE_INVENTORY=false
; Should the Improved Cannons breakthrough benefit the SPARK Autocannon as well?
; Disable if you have a mod that gives SPARKs their own breakthroughs
@Slivicon
Slivicon / 0_reuse_code.js
Last active August 31, 2015 14:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Slivicon
Slivicon / fs15CpStepaVehiclesXml
Created November 20, 2014 03:17
FS15 Courseplay 4.00.0042 Stepa Trailer Issue - Removed from vehicles.xml to resolve
<vehicle id="23" filename="data/vehicles/trailers/stepa/stepaFHL13AK.xml" isAbsolute="true" foldAnimTime="0" dirtAmount="0.047225725702091" GPSstoreInv="" >
<component1 position="138.54454040527 152.02735900879 120.06547546387" rotation="-0.023929530754685 -0.26021233201027 -0.0032185148447752" />
<component2 position="138.99964904785 156.00775146484 117.36561584473" rotation="3.1211791038513 0.32237732410431 3.0918416976929" />
<component3 position="138.6787109375 155.93765258789 117.2574005127" rotation="3.1319761276245 0.32258856296539 3.1006686687469" />
<component4 position="139.33587646484 155.90498352051 117.47721099854" rotation="3.1281609535217 0.32233783602715 3.0887713432312" />
<movingTool1 rotation="-0.0027377712540329"/>
<movingTool2 rotation="0.061535559594631"/>
<movingTool3 rotation="-0.2901149392128"/>
<movingTool4 rotation="-0.020152743905783"/>
<movingTool5 translation="-1.1399999856949"/>
@Slivicon
Slivicon / fs15logCpStepa
Created November 20, 2014 03:14
FS 15 Log Courseplay 4.00.0042 Stepa Trailer issue
GIANTS Engine Runtime 6.0.2 64bit (Build Date: Nov 3 2014)
Copyright (c) 2008-2014, GIANTS Software GmbH (giants-software.com), All Rights Reserved.
Copyright (c) 2003-2014, Christian Ammann and Stefan Geiger, All Rights Reserved.
Application: FarmingSimulator2015
Main System
CPU: Intel(R) Core(TM) i5-4690 CPU @ 3.50GHz
Memory: 8135 MB
OS: Windows NT 6.1 64-bit
Physics System
Version: 5.9.4