Skip to content

Instantly share code, notes, and snippets.

View tsraveling's full-sized avatar

Tim Raveling tsraveling

View GitHub Profile
@tsraveling
tsraveling / NoDSStore.sh
Last active May 4, 2025 05:31
Turn off DS_Store on Mac
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
@tsraveling
tsraveling / GnuStow.md
Created March 12, 2025 20:10
Using Stow

First, install stow. Then, clone your dotfiles repo to ~/dotfiles or similar.

Stow symlinks to the home folder. So if you wanted to stow your nvim config, for example:

  1. Make folder ~/dotfiles/nvim/.config
  2. Move active config into this folder: mv ~/.config/nvim ~/dotfiles/nvim/.config/nvim
  3. cd ~/dotfiles then stow nvim to symlin its contents to ~, ie, right where they should be.

Then if setting up on a new machine, just clone dotfiles and go straight to stow nvim from the dotfiles folder to "pop out" that config into place.

@tsraveling
tsraveling / InstallCertbot.md
Last active March 5, 2025 16:49
Install SSL Certbot on Ubuntu Server
  1. SSH into the VM instance
  2. Check if certbot is not installed. If it’s not, install it with the following command:
    • sudo apt-get install certbot python3-certbot-nginx
  3. Check nginx’s domain configurations.
    • In /etc/nginx/sites-available should be a file with the domain configurations
    • In /etc/nginx/sites-enabled should be a symlink to the previous nginx domain config file
  4. Create the SSL certificate running the following command:
    • sudo certbot --nginx
    • This will prompt you for some information. Pretty straightforward.
  5. Once finished, check the nginx configs in step 3. You should see that it uses the new SSL certificate for the 443 virtual server.
@tsraveling
tsraveling / GodotNvim.md
Last active August 1, 2025 01:10
Set up Godot with Nvim

Editor Settings

Note: On mac, I had to use /private/tmp, not /tmp, as /tmp by itself will redirect to that.

1. In Text Editor>External

Tick Use External Editor

Set Execution Path to your neovim binary

@tsraveling
tsraveling / GodotExecutionOrder.md
Created September 23, 2024 22:24
Godot Execution Order

Main Node Order

  1. _init is called first. .name is not accessible yet.
  2. _enter_tree is called starting at parent node, then descending vertically (ie, parent, parent.a, parent.a.1, parent.a.2, etc). All of these complete before next step.
  3. _ready is called for everybody -- but this happens children-first. Still vertically in terms of siblings. Aka, parent.a.1, parent.a.2, parent.a, parent.
  4. _input is called as a reverse vertical list of whole hierarchy, ie, parent.b.2, parent.b.1, parent.b, parent.a.2, parent.a.1 etc.
  5. Then _unhandled_input is called in the same order.
  6. Then _physics_process is called vertically starting w/ the parent (p, p.a, p.a.1, p.a.2, p.b).
  7. Then _process is called vertically starting with the parent.
@tsraveling
tsraveling / InstantiateRefCount.md
Created May 9, 2023 13:56
RefCounted objects Godot C++

Class definition:

#include <godot_cpp/core/binder_common.hpp> // This appears to have a lot of features included right here


class ExampleRef : public RefCounted {
	GDCLASS(ExampleRef, RefCounted);

private:
@tsraveling
tsraveling / GodotExports.md
Created October 31, 2022 21:24
Exports in Godot

Full docs here

# If the exported value assigns a constant or constant expression,
# the type will be inferred and used in the editor.

export var number = 5

# Export can take a basic data type as an argument, which will be
# used in the editor.
@tsraveling
tsraveling / CSReferenceVsValue.md
Created June 17, 2021 23:29
C# Reference vs Value

This file:

namespace Dev.Sandbox
{
    public class DevExampleClass
    {
        public string first;
        public string last;
@tsraveling
tsraveling / TextManager.cs
Last active June 12, 2020 05:57
Text Log View Unity
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class TextManager : MonoBehaviour {
public Transform contentView;
public GameObject messagePrefab;
@tsraveling
tsraveling / RenamePostgresColumn.md
Created April 23, 2020 20:05
Rename a column in PostgresQL
ALTER TABLE table_name 
RENAME COLUMN column_name TO new_column_name;