Skip to content

Instantly share code, notes, and snippets.

View phoenixtype's full-sized avatar
🎯
Focusing

Samuel Akuma phoenixtype

🎯
Focusing
  • SyntaxReady Inc.
  • Oakville, Canada
  • 07:39 (UTC -05:00)
View GitHub Profile
{
"success": true,
"credits_left": 20,
"rate_limit_left": 20,
"person": {
"publicIdentifier": "suakuma",
"linkedInIdentifier": "ACoAABWqkUgB9UJmX4lwrkoBhoQk92Pv4-D2Q1k",
"memberIdentifier": "363499848",
"linkedInUrl": "https://www.linkedin.com/in/suakuma",
"firstName": "Samuel",
@phoenixtype
phoenixtype / spring-boot-cheatsheet.java
Created November 23, 2021 15:51 — forked from jahe/spring-boot-cheatsheet.java
Spring Boot Cheatsheet
// Enable component-scanning and auto-configuration with @SpringBootApplication Annotation
// It combines @Configuration + @ComponentScan + @EnableAutoConfiguration
@SpringBootApplication
public class FooApplication {
public static void main(String[] args) {
// Bootstrap the application
SpringApplication.run(FooApplication.class, args);
}
}
@phoenixtype
phoenixtype / backtracking_template.py
Created August 3, 2021 00:55 — forked from RuolinZheng08/backtracking_template.py
[Algo] Backtracking Template & N-Queens Solution
def is_valid_state(state):
# check if it is a valid solution
return True
def get_candidates(state):
return []
def search(state, solutions):
if is_valid_state(state):
solutions.append(state.copy())
@phoenixtype
phoenixtype / DH-key-exchange.py
Created March 6, 2019 23:56
Python simulation of Diffie–Hellman key exchange
#!/usr/bin/env python2.7
__author__ = '[email protected]'
'''
Python functions to simulate Diffe-Hellman key exchange (TLS/SSL handshake),
for educational use only.
This will automatically generate public and private keys, the shared secret, and will check the handshake.
Does this for 20 cycles, to change edit line 54.
To change encryption strength edit line 32.