start new:
tmux
start new with session name:
tmux new -s myname
| from django.db import models | |
| class Post(models.Model): | |
| title = models.CharField(max_length=128) | |
| slug = models.SlugField(unique=True, editable=False) | |
| content = models.TextField() # markdown | |
| thumbnail = models.ImageField(upload_to='%Y/%m/%d/', width_field='width', height_field='height') | |
| width = models.PositiveIntegerField(editable=False) | |
| height = models.PositiveIntegerField(editable=False) |
| /* | |
| * MIT License | |
| * | |
| * Copyright (c) 2023 Fabio Lima | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is |
Both things have been introduced recently, and let you access even private ec2 instances
# Assumes valid AWS Credentials in ENV
This uses acme.sh to generate a certificate which replaces the one shown in the certificate section in the Untangle UI.
It updates on each run and if the certificate is renewed it replaces the one used by untangle and restarts apache.
if the certificate isn’t renewed, it still checks if the certificate untangle is using is the one cached by acme.sh and it will replace it and restart apache if necessary.
The crontab entries allow it to do a certificate check at reboot and also at 4am every morning.
You’ll need to download acme.sh, but it requires no extra dependencies over what is supplied in untangle, you will need to edit the acme.sh configuration file to match how you update the cert.
| #[derive(Clone)] | |
| pub struct KillSwitch { | |
| kill: Arc<AtomicBool>, | |
| } | |
| impl KillSwitch { | |
| pub fn new() -> Self { | |
| KillSwitch { | |
| kill: Arc::new(AtomicBool::new(false)), | |
| } | |
| } |
| #!/bin/bash | |
| set -eu | |
| umask 0022 | |
| if [[ $# -lt 1 ]]; then | |
| echo "Usage: $0 role_name [AWS ACCOUNT NUMBER]" >&2 | |
| exit 1 | |
| fi |
Product: Sagitta Brutalis 1080 Ti (SKU N4X48-GTX1080TI-2620-128-2X500)
Software: Hashcat 3.5.0-22-gef6467b, Nvidia driver 381.09
Accelerator: 8x Nvidia GTX 1080 Ti Founders Edition
| # Makefile for transpiling with Babel in a Node app, or in a client- or | |
| # server-side shared library. | |
| .PHONY: all clean | |
| # Install `babel-cli` in a project to get the transpiler. | |
| babel := node_modules/.bin/babel | |
| # Identify modules to be transpiled by recursively searching the `src/` | |
| # directory. |
| Elastic Load Balancer, CloudFront and Let's Encrypt |