Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/bash
hash gedit 2>/dev/null || { echo >&2 "Program requires gedit to open the files right on the problem areas, but it's not installed. Aborting."; exit 1; }
echo "Script to help port Shadowrun Dragonfall UGCs to the Shadowrun Hong Kong engine, use it on the source directory of a dragonfall UGC. NOT a Hong Kong or SRR UGC and only the source not the compiled version"
[ ! -f "./project.cpack.txt" ] && { echo "Not called on a UGC source directory"; exit 0; }
grep -l 'project_name: "CFiC"' ./project.cpack.txt && {
i3@sleipnir:~/Documents/Projects/exult-git$ gdb /home/i3/Documents/Projects/exult-git/exult
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Index: CQM/dlg/downtown la/damsel.dlg
===================================================================
--- CQM.orig/dlg/downtown la/damsel.dlg
+++ CQM/dlg/downtown la/damsel.dlg
@@ -1297,11 +1297,11 @@
{ 1297 }{ (Starting Condition) }{ }{ 751 }{ G.Player_Anarch == 1 and G.Story_State == 115 }{ }{ }{ }{ }{ }{ }{ }{ }
{ 1298 }{ (Starting Condition) }{ }{ 711 }{ G.Prince_Truce == 1 and G.Player_Anarch == 0 and G.Griffith_Open == 0 }{ }{ }{ }{ }{ }{ }{ }{ }
{ 1299 }{ (Starting Condition) }{ }{ 1031 }{ pc.GetQuestState("Bmagic") == 1 or pc.GetQuestState("Bmagic") == 6 }{ }{ }{ }{ }{ }{ }{ }{ }
-{ 1300 }{ (Starting Condition) }{ }{ 900 }{ G.Player_Anarch == 1 and G.Regent_Pissed < 3 and IsClan(pc,"Brujah") and G.Lost_Damsel_Quest < 1 and pc.GetQuestState("Bmagic") < 1 }{ }{ }{ }{ }{ }{ }{ }{ }
+{ 1300 }{ (Starting Condition) }{ }{ 900 }{ G.Player_Anarch == 1 and G.Regent_Pissed < 3 and G.Lost_Damsel_Quest < 1 and pc.GetQuestState("Bmagic") < 1 }{ }{ }{ }{ }{ }{ }{ }{ }
forums.sufficientvelocity.com##article[data-author="insert username here"]
forums.spacebattles.com##li[data-author="insert username here"]
@i30817
i30817 / git-branch-pull
Last active May 20, 2023 21:08
a navi (bash helper for automation) file to build some projects i build often which helps choose the branch to build and automates pulls
#!/bin/bash
ME=$(basename "$0")
function usage(){
cat >&2 <<ENDOFHELP
Usage: $ME [-h] [-c OPT1 -c OPT2...] [-m OPT1 -m OPT2...] [BRANCH_NAME]
$ME optionally updates a local branch from a upstream,
and assuming that there is a configure file and -s
is not passed, calls ./configure with arguments,
Starting program: /media/i30817/Huginn/Documents/projects/RetroArch/retroarch
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[INFO] RetroArch 1.8.9 (Git 14e20cea51)
[INFO] === Build =======================================
[INFO] CPU Model Name: Intel(R) Core(TM)2 Duo CPU T6600 @ 2.20GHz
[INFO] Capabilities: MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4
[INFO] Built: Jul 1 2020
[INFO] Version: 1.8.9
[INFO] Git: 14e20cea51
@i30817
i30817 / mkwin9xfs.sh
Last active March 4, 2022 17:13
dosbox FAT16/FAT32 image disk creator, with a (failed) attempt to clone windows 95/98 partitions
#!/usr/bin/env bash
hash parted 2>/dev/null || { echo >&2 "Program requires parted but it's not installed. Exit."; exit 1; }
hash numfmt 2>/dev/null || { echo >&2 "Program requires numfmt but it's not installed. Exit."; exit 1; }
hash truncate 2>/dev/null || { echo >&2 "Program requires truncate but it's not installed. Exit."; exit 1; }
hash mcopy 2>/dev/null || { echo >&2 "Program requires mtools but it's not installed. Exit."; exit 1; }
hash sed 2>/dev/null || { echo >&2 "Program requires sed but it's not installed. Exit."; exit 1; }
#hash udisksctl 2>/dev/null || { echo >&2 "Program requires udisksctl but it's not installed. Exit."; exit 1; }
#hash fdisk 2>/dev/null || { echo >&2 "Program requires fdisk but it's not installed. Exit."; exit 1; }
#hash mkdosfs 2>/dev/null || { echo >&2 "Program requires mkdosfs but it's not installed. Exit."; exit 1; }
#hash mattrib 2>/dev/null || { echo >&2 "Program requires mtools but it's not installed. Exit."; exit 1; }
@i30817
i30817 / gist:b7cf69f544e50aa7f4d643c53f2e5838
Last active June 10, 2020 11:47
diff shadowrun disguises null pointer dragonfall to hongkong
public static CachedMesh Initiate(GameObject core, GameObject root, bool destroyImmediate = false)
{
Vector3 position = root.transform.parent.transform.position;
Quaternion rotation = root.transform.parent.transform.rotation;
root.transform.parent.transform.position = new Vector3(0f, 0f, 0f);
root.transform.parent.transform.rotation = new Quaternion(0f, 0f, 0f, 0f);
root.transform.localPosition = new Vector3(0f, 0f, 0f);
root.transform.localRotation = new Quaternion(0f, 0f, 0f, 0f);
SkinnedMeshRenderer[] componentsInChildren = core.GetComponentsInChildren<SkinnedMeshRenderer>();
List<Transform> list = new List<Transform>();
#!/usr/bin/env bash
hash parted 2>/dev/null || { echo >&2 "Program requires parted but it's not installed. Exit."; exit 1; }
hash udisksctl 2>/dev/null || { echo >&2 "Program requires udisksctl but it's not installed. Exit."; exit 1; }
hash fdisk 2>/dev/null || { echo >&2 "Program requires fdisk but it's not installed. Exit."; exit 1; }
hash mkdosfs 2>/dev/null || { echo >&2 "Program requires mkdosfs but it's not installed. Exit."; exit 1; }
hash numfmt 2>/dev/null || { echo >&2 "Program requires numfmt but it's not installed. Exit."; exit 1; }
hash truncate 2>/dev/null || { echo >&2 "Program requires truncate but it's not installed. Exit."; exit 1; }
hash mcopy 2>/dev/null || { echo >&2 "Program requires mtools but it's not installed. Exit."; exit 1; }
hash mattrib 2>/dev/null || { echo >&2 "Program requires mtools but it's not installed. Exit."; exit 1; }
hash dd 2>/dev/null || { echo >&2 "Program requires dd but it's not installed. Exit."; exit 1; }