Skip to content

Instantly share code, notes, and snippets.

@enxt
enxt / fix-gp-routes.ps1
Created December 15, 2022 07:46 — forked from 01000101/fix-gp-routes.ps1
PowerShell script to remove unwanted "full tunnel" Palo Alto GlobalProtect VPN routes.
# Description name of the GlobalProtect interface
$gp_iface = "PANGP Virtual Ethernet Adapter"
# Routes to remove from the GlobalProtect interface
$bad_routes = @(
'0.0.0.0/0',
'10.1.10.0/24',
'10.1.10.255/32',
'172.16.100.0/24',
'192.168.1.0/24')
# How many loops used to remove routes.
@enxt
enxt / geneticAlgorithms.R
Last active August 13, 2018 07:15 — forked from thertrader/geneticAlgorithms
Using Genetic Algorithms in Quantitative Trading
############################################################
## Using Genetic Algorithms in Quantitative Trading
##
## thertrader@gmail.com - Mar 2014
############################################################
library(PerformanceAnalytics)
library(rgenoud)
library(quantmod)
library(TTR)
<?php
namespace Controllers;
use OAuth\Common\Service\AbstractService;
use OAuth\Common\Storage\Session as OAuthSession;
class AuthController extends ControllerBase {
// everytime we enter the controller, then we check for login, if yes, then we dont have to access here (except logout)