Skip to content

Instantly share code, notes, and snippets.

@Haloplasm
Haloplasm / PoBs.txt
Last active May 6, 2024 21:01
Haloplasm and Seik's PoBs
----------------------------------------------
3.24 PoBs [Always re-pull PoBs right before league start to have the most updated version]
----------------------------------------------
Aurabot:
https://pobb.in/s1XzEFf8M0wi
Inquitor Spark carry:
https://pobb.in/moAh2_q-syE-
Inquisitor Storm Brand carry:
@profConradi
profConradi / chladni.py
Last active May 6, 2024 20:58
Chladni Square Plate Normal Modes Simulation
def energy(z, n, m, L):
return np.cos(n* np.pi *np.real(z) / L) *np.cos(m *np.pi*np.imag(z) / L) - np.cos(m*np.pi*np.real(z)/ L) *np.cos(n* np.pi *np.imag(z) / L)
class ChladniPlate:
def __init__(self, n, m, L=1, n_particles=10000):
self.L = L
self.n_particles = n_particles
self.n = n
self.m = m
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 6, 2024 20:57
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
@Iliannnn
Iliannnn / Discord.js-v14-Events.md
Last active May 6, 2024 20:56
Discord.js v14 Events - Cheatsheet

Discord.js v14 Events

An overview of all events in Discord.js v14 with examples.

📢 | Last updated: 27 July 2022

ℹ️ | client references to your client instance.

ℹ️ | The v13 overview can be found here.

Using keepalived for node ingress and dns relaibility

This assumes you have installed a docker swarm

Introduction

When one has a docker swarm a container running on any node in the swarm can be accesed using any IP address of any swarm memeber.

For example if you had a single web server running on port 80, on one node of a swarm you could access the web server with any of the following IP addresses:

  • server1-ip:80
  • server2-ip:80
@legege
legege / cleanup.groovy
Created March 23, 2018 16:41
Intelligently clean a Sonatype Nexus3 repository... keep the last X released versions of each "major.minor" artifact
import org.sonatype.nexus.repository.storage.Component
import org.sonatype.nexus.repository.storage.StorageFacet;
def retentionCount = 15
def repositoryName = 'releases'
def dryRun = true
log.info("Cleanup script started! Dry Run Mode: $dryRun");
def repo = repository.repositoryManager.get(repositoryName);
def tx = repo.facet(StorageFacet.class).txSupplier().get();
@robertklep
robertklep / dabblet.css
Created February 23, 2013 20:06
European Energy Label in CSS
/**
* European Energy Label in CSS
*/
.energy-class {
position: relative;
width: 155px;
font-family : sans-serif;
}
.energy-class span {
@ammuench
ammuench / 8BitDoUltimateWifi_Linux.MD
Last active May 6, 2024 20:54
8BitDo Ultimate 2.4GHz wifi working in linux
@gbuela
gbuela / NavViewDemo
Created February 9, 2020 03:14
Custom navigation bar in SwiftUI
import SwiftUI
struct ContentView: View {
var body: some View {
NavigationView {
ZStack {
Color.black
.edgesIgnoringSafeArea([.all])
NavigationLink(destination: ContentView2()) {
Text("push")
@th3at0m
th3at0m / kms.md
Last active May 6, 2024 20:54
KMS Keys/Product Keys for Windows/Windows Server

Here, you can find the Product Keys for activating Windows.

Warming: This won't work with Home editions. Please first update to Professional edition if you want to activate Windows.

How do I activate Windows?

  1. Search for "Command Prompt" in the search box
  2. Right Click on the Command Prompt entry
  3. Press "Run as Administrator", then press yes.
  4. Type these commands one by one: