Skip to content

Instantly share code, notes, and snippets.

@Ox0400
Ox0400 / Main.java
Created Aug 28, 2016 — forked from rwestergren/Main.java
GetAndroidSig
View Main.java
import java.io.IOException;
import java.io.InputStream;
import java.lang.ref.WeakReference;
import java.security.cert.CertificateEncodingException;
import java.util.Enumeration;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
import java.util.logging.Level;
import java.util.logging.Logger;
@Ox0400
Ox0400 / findLongRunningOp.js
Created Sep 14, 2018 — forked from kylemclaren/findLongRunningOp.js
Find and (safely) kill long running MongoDB ops
View findLongRunningOp.js
db.currentOp().inprog.forEach(
function(op) {
if(op.secs_running > 5) printjson(op);
}
)
@Ox0400
Ox0400 / swarm.yml
Created Dec 2, 2020 — forked from MetalArend/swarm.yml
Run a GitLab Runner on your Swarm
View swarm.yml
version: '3.4'
secrets:
# Find your registration token at: "Your project" > "Settings" > "CI/CD" > "Runners settings" > "Specific Runners" (look for registration token)
# Register it as `GITLAB_REGISTRATION_TOKEN`: `docker secret create GITLAB_REGISTRATION_TOKEN YOUR_REGISTRATION_TOKEN`
GITLAB_REGISTRATION_TOKEN:
external: true
# Find your personal access token at: "Your user account" > "Settings" > "Access Tokens" > "Create personal access token" (for api)
# Register it as `GITLAB_PERSONAL_ACCESS_TOKEN`: `docker secret create GITLAB_PERSONAL_ACCESS_TOKEN <YOUR ACCESS TOKEN>`