Table of Contents
- DISCLAIMER 2. Status 3. Introduction 4. Security issues 5. DNS
| #!/bin/bash | |
| # === INFO === | |
| # NoVPN | |
| # Description: Bypass VPN tunnel for applications run through this tool. | |
| VERSION="3.0.0" | |
| # Author: KrisWebDev | |
| # Requirements: Linux with kernel > 2.6.4 (released in 2008). | |
| # This version is tested on Ubuntu 14.04 and 19.10 with bash. | |
| # Main dependencies are automatically installed. |
Table of Contents
| #!/usr/bin/env zsh | |
| # Initialize VPN | |
| sudo vpnns up | |
| sudo vpnns start_vpn | |
| # Popcorn time! | |
| sudo ip netns exec frootvpn sudo -u $USER popcorntime | |
| # Cleanup |
| #!/usr/bin/env python | |
| """ | |
| Copyright 2011 Domen Kozar. All rights reserved. | |
| Redistribution and use in source and binary forms, with or without modification, are | |
| permitted provided that the following conditions are met: | |
| 1. Redistributions of source code must retain the above copyright notice, this list of | |
| conditions and the following disclaimer. |
| """Transaction-aware Celery task handling. | |
| Core originally written for Warehouse project https://raw.githubusercontent.com/pypa/warehouse/master/warehouse/celery.py | |
| """ | |
| from celery import Task | |
| from pyramid import scripting | |
| from pyramid.interfaces import IRequest | |
| from pyramid.request import Request |
| # Use systemd for managing NVIDIA driver suspend in drivers ====>>> PRIOR to version 470 <<<===== | |
| # https://download.nvidia.com/XFree86/Linux-x86_64/450.66/README/powermanagement.html | |
| # https://forums.developer.nvidia.com/t/unable-to-set-nvidia-kernel-module-parameters/161306 | |
| # Please note: In Fedora Linux you may need to just install the xorg-x11-drv-nvidia-power pakage | |
| # as sugested by @goombah88 in the comments below. | |
| TMP_PATH=/var/tmp | |
| TMPL_PATH=/usr/share/doc/nvidia-driver-460/ | |
| echo "options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=${TMP_PATH}" | sudo tee /etc/modprobe.d/nvidia-power-management.conf |
| import itertools | |
| from django.apps import apps | |
| from django.contrib.contenttypes.models import ContentType | |
| from django.core.management import BaseCommand | |
| from django.db import DEFAULT_DB_ALIAS, router | |
| from django.db.models.deletion import Collector | |
| class Command(BaseCommand): |
| import operator | |
| class LazyObject: | |
| _wrapped = None | |
| _is_init = False | |
| def __init__(self, factory, **factory_kwargs): | |
| # Assign using __dict__ to avoid the setattr method. | |
| self.__dict__['_factory'] = factory |
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
| usage() { | |
| cat <<EOF | |
| Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
| import operator | |
| from django.contrib import admin, messages | |
| from django.contrib.admin import ModelAdmin | |
| from django.urls import reverse | |
| from django.db import transaction | |
| from django.db.models import Q, QuerySet | |
| from django.forms import TextInput | |
| from django.utils.html import format_html |