This file contains hidden or 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
| #!/bin/sh | |
| # pqcheck.sh - check a server's TLS setup for post-quantum readiness. | |
| # | |
| # What it checks, for each server: | |
| # - post-quantum (ML-KEM) key exchange, which protects recorded traffic | |
| # from being decrypted later by a quantum computer | |
| # - TLS versions (1.3 wanted; 1.0 and 1.1 should be off) | |
| # - ciphers (AES-256-GCM wanted; no old CBC, 3DES or RSA key exchange) | |
| # - the certificate chain (key types, signature algorithms, expiry) | |
| # |
This file contains hidden or 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
| services: | |
| llama-cpp: | |
| image: ghcr.io/ggml-org/llama.cpp:server-cuda13 | |
| container_name: llama-cpp | |
| restart: unless-stopped | |
| ports: | |
| - "8081:8080" | |
| volumes: | |
| - ./models:/models | |
| command: > |
This file contains hidden or 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
| version: '3.8' | |
| services: | |
| tailscale: | |
| image: tailscale/tailscale:stable | |
| container_name: tailscaled | |
| privileged: true | |
| volumes: | |
| - /dev/net/tun:/dev/net/tun | |
| - tailscale-data:/var/lib/tailscale | |
| network_mode: "host" |
This file contains hidden or 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
| var allowPaste = function(e) { | |
| e.stopImmediatePropagation(); | |
| return true; | |
| }; | |
| document.addEventListener('paste', allowPaste, true); |
This file contains hidden or 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
| // | |
| // main.m | |
| // NSURLWeirdness | |
| // | |
| // Created by Andrew Kehrig on 6/24/16. | |
| // Copyright © 2016 dudid llc. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> |
This file contains hidden or 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
| <?php | |
| /** | |
| * I was given a really silly sorting question to write out in pseudo code once after spending 9 hours traveling | |
| * to the HQ of the employer and running on about 3 hours of sleep. | |
| * I figured I'd do poorly, and I did, but I explained my method. | |
| * I just wasn't able to get the code on the board without constantly erasing and not having a clear head so I was | |
| * passed over for another candidate. | |
| * I named this interviewLulz because I find it lulzworthy when an employer uses sorting questions as their test when | |
| * the sorting requested is: | |
| * A) Ridiculous. |
This file contains hidden or 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
| /** | |
| * Works great on Android 4, and likely 3 but causes Android 2.3 to build a Uri | |
| * with a string value of "geo:?q=" + zipCode | |
| */ | |
| Uri geoUri = Uri.parse("geo:0,0?").buildUpon() | |
| .appendQueryParameter("q", zipCode).build(); | |
| /** | |
| * Works great on Android 2.3+ | |
| */ |
This file contains hidden or 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
| <html> | |
| <head> | |
| <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.1/angular.min.js"></script> | |
| <style> | |
| /** setup simple styling **/ | |
| .ng-invalid { border: 1px solid red; } | |
| body { font-family: Arial,Helvetica,sans-serif; } | |
| body, td, th { font-size: 14px; margin: 0; } | |
| table { border-collapse: separate; border-spacing: 2px; display: table; margin-bottom: 0; margin-top: 0; -moz-box-sizing: border-box; text-indent: 0; } | |
| a:link, a:visited, a:hover { color: #5D6DB6; text-decoration: none; } |
This file contains hidden or 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
| grunt.config(['connect'], { | |
| options: { | |
| port: 9000, | |
| hostname: '*', | |
| keepalive: true, | |
| middleware: function (connect) { | |
| return [ | |
| function (request, response, next) { | |
| response.setHeader('Access-Control-Allow-Origin', '*'); | |
| return next(); |
This file contains hidden or 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
| netstat -an | grep LISTEN | awk '{ print $4 }' | rev | cut -d: -f1 | rev |
NewerOlder