Skip to content

Instantly share code, notes, and snippets.

@eacpereira
eacpereira / StarfieldSFSECompleteConsoleCommands.md
Created September 18, 2023 18:24
Complete list of Starfield Console Commands with SFSE on. Minimally Edited.

Console Commands

Command Description
Show Show script value
ShowVars Show variables on object. You can optionally specified a papyrus variable or script to filter with [player|sv]
ShowGlobalVars Show all global variables.
ShowQuestVars Show quest variables. You can optionally specified a papyrus variable or script to filter with [svq QuestID]
ShowQuests List quests.
ShowQuestAliases Show quest aliases. [ShowQuestAliases QuestID]
SetPapyrusQuestVar Set a Papyrus property on the specified quest.
@m-radzikowski
m-radzikowski / script-template.sh
Last active May 4, 2024 04:13
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
@festum
festum / go-code-convention.md
Last active June 23, 2023 15:36
Golang Guideline

Project Structure

The following content shows a general structure of a web app, it can be changed based on the different conventions of web frameworks.

- templates (views) # Template files
@WebReflection
WebReflection / custom-elements-pattern.md
Last active May 8, 2024 22:54
Handy Custom Elements' Patterns

Handy Custom Elements' Patterns

Ricardo Gomez Angel Photo by Ricardo Gomez Angel on Unsplash

This gist is a collection of common patterns I've personally used here and there with Custom Elements.

These patterns are all basic suggestions that could be improved, enriched, readapted, accordingly with your needs.

@thiagozs
thiagozs / gomock.md
Last active April 19, 2024 03:45
Tutorial gomock

08/16/17 by  Sergey Grebenshchikov

No Comments

This is a quick tutorial on how to test code using the GoMock mocking library and the standard library testing package testing.

GoMock is a mock framework for Go. It enjoys a somewhat official status as part of the github.com/golang organization, integrates well with the built-in testing package, and provides a flexible expectation API.

@cgmartin
cgmartin / vera_auth_test.sh
Last active March 22, 2023 19:43
Vera Auth Sessions Example
#!/bin/bash
set -e
command -v jq >/dev/null 2>&1 || { echo >&2 "I require jq but it's not installed (see: https://stedolan.github.io/jq/). Aborting."; exit 1; }
command -v curl >/dev/null 2>&1 || { echo >&2 "I require curl but it's not installed (see: https://curl.haxx.se/). Aborting."; exit 1; }
# Auth API Notes: http://forum.micasaverde.com/index.php/topic,24942.45.html
# New Server domains listing: http://forum.micasaverde.com/index.php/topic,25859.0.html
# Example implementations:
# https://github.com/rickbassham/vera/blob/master/vera_test.py
# https://github.com/amg0/ALTUI/blob/master/Remote/VeraloginAction.php
@kevintyll
kevintyll / startup.lua
Last active January 19, 2024 14:47
Vera luup startup functions
local rblt = require("RBLuaTest")
rbLuaTest = rblt.rbLuaTest
luup.register_handler("rbLuaTest","LuaTest")
HOUSE_MODE_PLUGGIN = 40
HOME = '1'
AWAY = '2'
NIGHT = '3'
VACATION = '4'
#!/usr/bin/env bash
usage="Usage: $(basename "$0") region stack-name [aws-cli-opts]
where:
region - the AWS region
stack-name - the stack name
aws-cli-opts - extra options passed directly to create-stack/update-stack
"
@avafloww
avafloww / PhpJava.java
Last active October 16, 2022 18:50
This snippet of code is syntactically valid in both PHP and Java, and produces the same output in both.
/*<?php
//*/public class PhpJava { public static void main(String[] args) { System.out.printf("/*%s",
//\u000A\u002F\u002A
class PhpJava {
static function main() {
echo(//\u000A\u002A\u002F
"Hello World!");
}}
//\u000A\u002F\u002A
PhpJava::main();
@adamreisnz
adamreisnz / package.json
Last active January 19, 2024 13:01
Simple pure npm scripts build process
{
"name": "project-name",
"description": "Template for static sites",
"version": "1.0.0",
"homepage": "http://www.project-name.com",
"author": {
"name": "Adam Reis",
"url": "http://adam.reis.nz"
},
"license": "UNLICENSED",