Skip to content

Instantly share code, notes, and snippets.

@Axotla
Axotla / Caballo.java
Created May 10, 2024 03:09 — forked from JRaul/Caballo.java
Problema del caballo
/*
Problema del caballo: http://es.wikipedia.org/wiki/Problema_del_caballo
Resuelto con http://es.wikipedia.org/wiki/Backtracking
*/
public class Caballo {
public static boolean tablero[][]=new boolean[8][8];
public static int [][] recorrido=new int[8][8];
public static long con=0;
public static void DFS(int n,int h,int v){
if(n==64){
@JHibbard
JHibbard / make_table_uris.py
Last active May 10, 2024 04:10
Example function for generating normalized table URIs reflecting the medallion architecture
from pathlib import Path
def make_table_uris(name: str, basepath: str='.'):
"""Example function for generating normalized table URIs
Args:
name: name of table to generate table URIs for
basepath: directory to nest table URIs under
@qoomon
qoomon / conventional_commit_messages.md
Last active May 10, 2024 04:09
Conventional Commit Messages

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs

Commit Message Formats

Default

@sroccaserra
sroccaserra / Amiga_samples_conversion.md
Last active May 10, 2024 04:09
Documenting the converstion of old Amiga 8 bit samples

Archive:

These are 8 bit samples often used with the first Amiga trackers of the late 80s and early 90s, like Ultimate Soundtracker. In original and updated formats.

Following the info found in [this other archive][other], I tried to accurately convert the original files to modern & self documenting formats (.wav or .aiff), so they can easily be used in modern DAWs or modern trackers, like

@andreacioni
andreacioni / app.controller-1.ts
Last active May 10, 2024 04:09
NestJS Authentication: Single Sign On with SAML 2.0
@Get('api/auth/sso/saml/login')
@UseGuards(SamlAuthGuard)
async samlLogin() {
//this route is handled by passport-saml
return;
}
@xorrior
xorrior / wmic_cmds.txt
Last active May 10, 2024 04:06
Useful Wmic queries for host and domain enumeration
Host Enumeration:
--- OS Specifics ---
wmic os LIST Full (* To obtain the OS Name, use the "caption" property)
wmic computersystem LIST full
--- Anti-Virus ---
wmic /namespace:\\root\securitycenter2 path antivirusproduct
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 10, 2024 04:00
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@1gjunior
1gjunior / VMware-Workstation-Pro-17-Licence-Keys.txt
Created May 10, 2024 03:54 — forked from hegdepavankumar/VMware-Workstation-Pro-17-Licence-Keys.txt
VMware Workstation Pro 17 full license keys. Collected and sorted out thousands of universal License Keys for all major versions of VMware Workstation Pro 17. x versions.
VMware-Workstation-Pro-17-Licence-Keys
-------------------------------------------------------------------
VMware Workstation Pro 17 full license keys. Collected and sorted out thousands of universal License Keys for all major versions of VMware Workstation Pro 17. x versions.
Install VMWare Workstation PRO 17.x (Read it right. PRO!)
---
@hegdepavankumar
hegdepavankumar / VMware-Workstation-Pro-17-Licence-Keys.txt
Last active May 10, 2024 03:54
VMware Workstation Pro 17 full license keys. Collected and sorted out thousands of universal License Keys for all major versions of VMware Workstation Pro 17. x versions.
VMware-Workstation-Pro-17-Licence-Keys
-------------------------------------------------------------------
VMware Workstation Pro 17 full license keys. Collected and sorted out thousands of universal License Keys for all major versions of VMware Workstation Pro 17. x versions.
Install VMWare Workstation PRO 17.x (Read it right. PRO!)
---
@jboner
jboner / latency.txt
Last active May 10, 2024 03:53
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD