Skip to content

Instantly share code, notes, and snippets.

View denfrost's full-sized avatar

Den Baster denfrost

View GitHub Profile
@denfrost
denfrost / git_head_hash.py
Created September 26, 2022 08:29 — forked from ethanwhite/git_head_hash.py
Get hash of current git HEAD using Python built-ins
import subprocess
process = subprocess.Popen(['git', 'rev-parse', 'HEAD'], shell=False, stdout=subprocess.PIPE)
git_head_hash = process.communicate()[0].strip()
@denfrost
denfrost / Sample for p4python
Created August 26, 2022 04:41 — forked from charz/Sample for p4python
Login to Perforce server, create a workspace and sync code to specific changelist number.
#!/env/bin/python
from P4 import P4, P4Exception
import json
p4 = P4()
p4.user = "charz"
p4.password = "mypassword"
p4.port = "tcp:192.168.1.2:1666"
p4.client = "auto-build"
@denfrost
denfrost / ue4-websocket-client.cpp
Created February 18, 2022 04:01 — forked from gamerxl/ue4-websocket-client.cpp
How to create a websocket client / connection without setup third party libraries in ue4 c++ context.
/**
* Include the PrivateDependencyModuleNames entry below in your project build target configuration:
* // Depend on WebSockets library from UE4 (UE4 WebSockets implementation is built upon the libwebsockets library).
* PrivateDependencyModuleNames.AddRange(new string[] { "WebSockets" });
*/
#include "WebSocketsModule.h"
#include "IWebSocket.h"
{
@denfrost
denfrost / postman_vs_insomnia_comparison.md
Created February 18, 2022 03:40 — forked from samoshkin/postman_vs_insomnia_comparison.md
Comparison of API development environments: Postman vs Insomnia

Postman vs Insomnia comparison

Postman | API Development Environment https://www.getpostman.com
Insomnia REST Client - https://insomnia.rest/

Features                                        Insomnia Postman Notes
Create and send HTTP requests x x
Authorization header helpers x x Can create "Authorization" header for you for different authentication schemes: Basic, Digest, OAuth, Bearer Token, HAWK, AWS
@denfrost
denfrost / Unreal_GIS.md
Created July 17, 2021 02:33 — forked from FONQRI/Unreal_GIS.md
Unreal Engine GIS useful links