Skip to content

Instantly share code, notes, and snippets.

@ndrut
ndrut / readme.md
Last active July 11, 2022 20:26
This windows batch file opens the steam game sea of thieves and sets cpu priority to maximum

Use

Right click raw to the right of startsot.bat and Save link as

Note: I created this to work around the fact that you can't use a real desktop shortcut to point to a real executable file for a game managed by steam.

Why does it ask for administrator privileges?

In order to set priority of a process you need administrator privileges (especially when setting above high)

@ndrut
ndrut / firstboot.sh
Created September 14, 2018 12:46
vultr-ubuntu18-docker-startup
#!/bin/bash
log () {
level=$1
log=$2
t=`date +%F/%T`
echo "[${t} ${level}] ${log}"
}
METADATA=http://169.254.169.254/v1
@ndrut
ndrut / my.cnf
Last active October 14, 2022 12:06
wordpress template - nginx (ready for traefik), php-fpm, mysql
[mysqld]
; mysql > 5.6 changes this to sha2 which php doesn't support yet
default_authentication_plugin=mysql_native_password
version: '3.6'
services:
core:
image: traefik:latest
command:
- "--api"
- "--entrypoints=Name:http Address::80 Redirect.EntryPoint:https"
- "--entrypoints=Name:https Address::443 TLS:/run/secrets/nbusa-wildcard.crt,/run/secrets/nbusa-wildcard.key"
- "--defaultentrypoints=http,https"
@ndrut
ndrut / kube.do.yaml
Created April 7, 2018 14:55
Kubernetes DigitalOcean Setup
#cloud-config
apt:
sources:
docker-ce.list:
source: "deb https://download.docker.com/linux/ubuntu xenial stable"
key: |
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFit2ioBEADhWpZ8/wvZ6hUTiXOwQHXMAlaFHcPH9hAtr4F1y2+OYdbtMuth
lqqwp028AqyY+PRfVMtSYMbjuQuu5byyKR01BbqYhuS3jtqQmljZ/bJvXqnmiVXh
┌────────────────────────────────┬────────────┬────────────┬────────────┐ |
│ tag │ total │ confirmed │ percent │ |
├────────────────────────────────┼────────────┼────────────┼────────────┤ |
│ TMXIWJHZXNKDCULZXSZIXILTIYY │ 1 │ 1 │ 100 │ |
├────────────────────────────────┼────────────┼────────────┼────────────┤ |
│ XXQWCPN9GQBYSJJYHUFHZIOIDKT │ 1 │ 1 │ 100 │ |
├────────────────────────────────┼────────────┼────────────┼────────────┤ |
│ ITAG99999999999999999999999 │ 14896 │ 14540 │ 97.6 │ |
├────────────────────────────────┼────────────┼────────────┼────────────┤ |
│ NYRSTA999999999999999999999 │ 3237 │ 3126 │ 96.6 │ |
┌────────────────────────────────┬────────────┬────────────┬────────────┐
│ tag │ total │ confirmed │ percent │
├────────────────────────────────┼────────────┼────────────┼────────────┤
│ ITAG99999999999999999999999 │ 1760 │ 1698 │ 96.5 │
├────────────────────────────────┼────────────┼────────────┼────────────┤
│ NYRSTA999999999999999999999 │ 380 │ 362 │ 95.3 │
├────────────────────────────────┼────────────┼────────────┼────────────┤
│ IOTAJANITORCCURL99999999999 │ 1104 │ 1037 │ 93.9 │
├────────────────────────────────┼────────────┼────────────┼────────────┤
│ LIQIO9999999999999999999999 │ 665 │ 594 │ 89.3 │

Recipe Name

Total cook time: () mins (optional) Summary:

ingredients

  • 1 x ingredient

Keybase proof

I hereby claim:

  • I am jawsome on github.
  • I am ndru (https://keybase.io/ndru) on keybase.
  • I have a public key ASDnK2nol8TjLimyQwKzBak0Xcr3beqNErg8o-dYxmnXdAo

To claim this, I am signing this object:

{
"hits": [
{
"result": {
"id": 1006955,
"title": "Shugga",
"url": "http://genius.com/Pleymo-shugga-lyrics",
"path": "/Pleymo-shugga-lyrics",
"header_image_url": "https://assets.rapgenius.com/images/default_cover_image.png?1443197028",
"primary_artist": {