This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Make sure x is a true output so pulumi doesn't try to run this function during preview. | |
const ingressIP = pulumi.all([x]).apply(async ([x]) => { | |
const kc = new k8sClient.KubeConfig(); | |
const provider = (this.getProvider('kubernetes::') as any) | |
const kubeConfig = provider.kubeconfig as pulumi.Output<string>; | |
const ip = kubeConfig.apply(async (config) => { | |
kc.loadFromString(config); | |
const k8sApi = kc.makeApiClient(k8sClient.CoreV1Api); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env runhaskell | |
import System.Process (callCommand) | |
runcmd args = | |
putStrLn ("+ " ++ cmd) >> callCommand cmd | |
where cmd = unwords args | |
-- (Name of your laptop's internal display, x res, y res) | |
(internalOutput, intX, intY) = ("eDP1", 3840, 2160) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
from objc_util import * | |
NSAKDeserializer = ObjCClass('NSAKDeserializer') | |
NSAKDeserializerStream = ObjCClass('NSAKDeserializerStream') | |
NSAKSerializer = ObjCClass('NSAKSerializer') | |
NSAKSerializerStream = ObjCClass('NSAKSerializerStream') | |
NSAbstractLayoutGuide = ObjCClass('NSAbstractLayoutGuide') | |
NSAddressCheckingResult = ObjCClass('NSAddressCheckingResult') | |
NSAffineTransform = ObjCClass('NSAffineTransform') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# provides a ridiculously simple SSL VPN, using a client side certificate. | |
# Issuing client side certificates is easy, and there are plenty of | |
# demos already. | |
# | |
# The following files are assumed: | |
# ca.crt This is your root certificate (note: NOT the key!) | |
# apache.crt An SSL certificate for this webserver | |
# apache.key The SSL key (to go with the SSL certificate) | |
# ca.crl The revocation list from your CA (so you can disable access!) | |
# |