- Run the following command to create a kubectlproxy service file.
sudo nano /lib/systemd/system/kubectlproxy.service
- Copy these contents into your file and save.
[Unit]
/* | |
I was inspired to write this from one of my favorite twitch streamers. | |
This script decides whether or not you should considering selling your toes on OnlyToes. | |
Based on your input you will be taken to the right resource | |
*/ | |
use webbrowser; |
/* | |
I was inspired to write this from one of my favorite twitch streamers. | |
This script decides whether or not you should considering selling your toes on OnlyToes. | |
Based on your input you will be taken to the right resource | |
*/ | |
use webbrowser; |
[package] | |
name = "onlytoes" | |
version = "0.1.0" | |
edition = "2021" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
webbrowser = "0.8.0" |
# Core Django Imports | |
from django.db.models.base import ModelBase | |
from django.contrib.auth import get_user_model | |
from django.contrib.auth.backends import BaseBackend | |
from django.contrib.auth.base_user import AbstractBaseUser | |
# Monta Imports | |
from monta_user.models import MontaUser |
async function getChargeType(charge_id) { | |
// Charge Type API GET request | |
let url = "/api/charge_types/" + charge_id + "/"; | |
// Await the response of the fetch call | |
const response = await fetch(url, { | |
method: 'GET', | |
headers: { | |
'Content-Type': 'application/json', | |
'Authorization': 'Token ' + window.localStorage.getItem('token'), |
# Prints SQL statements to console. Put this in your settings.py | |
LOGGING = { | |
'version': 1, | |
'filters': { | |
'require_debug_true': { | |
'()': 'django.utils.log.RequireDebugTrue', | |
} | |
}, | |
'handlers': { |
import time | |
def main(): | |
"""Print the latest tutorial from Real Python""" | |
tic = time.perf_counter() | |
# code here | |
toc = time.perf_counter() |
from django.utils.translation import gettext_lazy as _ # Import this bad boy | |
class Organization(TimeStampedModel): | |
""" | |
Organization Model Fields | |
""" |
class ClogGenericAPIView(viewsets.ViewSet): | |
""" | |
Generic API View for CLOG use this class for any redundant logic. | |
""" | |
model = None | |
serializer = None | |
def list(self, request): | |
queryset = self.model.objects.all() # Or you could do a selector instead of model | |
serializer = self.serializer(queryset, many=True) |
sudo nano /lib/systemd/system/kubectlproxy.service
[Unit]