Skip to content

Instantly share code, notes, and snippets.

@Erlite
Erlite / Code.cpp
Created May 21, 2020 21:39
Simple way to grab blueprint components from a CDO
// Room.cpp
void ARoom::SetupDefaultObject(UBlueprintGeneratedClass* BlueprintClass)
{
checkf(HasAnyFlags(RF_ClassDefaultObject), TEXT("ARoom::SetupDefaultObject() can only be called on ARoom default objects."));
checkf(BlueprintClass, TEXT("Cannot setup default room object with null blueprint class."));
if (bIsDefaultSetup) return;
TArray<const UBlueprintGeneratedClass*> BlueprintClasses;
UBlueprintGeneratedClass::GetGeneratedClassesHierarchy(BlueprintClass, BlueprintClasses);
for (const UBlueprintGeneratedClass* Class : BlueprintClasses)
@skoqaq
skoqaq / build4123.sublime4.key
Last active January 15, 2025 01:23
Sublime Text 4 License Key
—– BEGIN LICENSE —–
Mifeng User
Single User License
EA7E-1184812
C0DAA9CD 6BE825B5 FF935692 1750523A
EDF59D3F A3BD6C96 F8D33866 3F1CCCEA
1C25BE4D 25B1C4CC 5110C20E 5246CC42
D232C83B C99CCC42 0E32890C B6CBF018
B1D4C178 2F9DDB16 ABAA74E5 95304BEF
9D0CCFA9 8AF8F8E2 1E0A955E 4771A576
@davedarko
davedarko / deauther_killer.ino
Created January 16, 2018 17:20
Arduino Script to auto connect to deauthers by spacehuhn with standard passwords and replaces them with whatever you want.
#include <ESP8266WiFi.h>
WiFiClient client;
const char* ssid = "pwned";
const char* password = "deauther";
const char* host = "192.168.4.1";
void setup()
{
Serial.begin(115200);
@ChristopherA
ChristopherA / brew-bundle-brewfile-tips.md
Last active January 15, 2025 01:21
Brew Bundle Brewfile Tips

Brew Bundle Brewfile Tips

Copyright & License

Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.

Sponsor

If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.

-- Pull in the wezterm API
local wezterm = require 'wezterm'
-- This will hold the configuration.
local config = wezterm.config_builder()
-- overwrite key bindings
-- This will create a new split and run your default program inside it
config.keys = {
@codigoconjuan
codigoconjuan / db.js
Created August 22, 2023 23:18
Gist Guitarras para GuitarLA - React y TypeScipt - La Guía Completa
export const db = [
{
id: 1,
name: 'Lukather',
image: 'guitarra_01',
description: 'Morbi ornare augue nisl, vel elementum dui mollis vel. Curabitur non ex id eros fermentum hendrerit.',
price: 299,
},
{
id: 2,
@iangreenleaf
iangreenleaf / gist:b206d09c587e8fc6399e
Last active January 15, 2025 01:17
Rails naming conventions

Rails naming conventions

General Ruby conventions

Class names are CamelCase.

Methods and variables are snake_case.

Methods with a ? suffix will return a boolean.

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active January 15, 2025 01:17
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@jimmydo
jimmydo / ubuntu-server-multicast-dns.md
Last active January 15, 2025 01:16
Enable multicast DNS on Ubuntu Server

Enabling multicast DNS (mDNS) on a server allows other hosts on the local network to address the server as <hostname>.local.

mDNS is disabled by default in Ubuntu Server:

$ resolvectl mdns
Global: no
Link 2 (eno1): no
@Kartones
Kartones / postgres-cheatsheet.md
Last active January 15, 2025 01:14
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)