Stop spying on me:
launchctl unload /Library/LaunchAgents/com.paloaltonetworks.gp.pangp*
I want to use the VPN again:
launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangp*
| const http = require("http"); | |
| const url = require("url"); | |
| const server = http.createServer((req, res) => { | |
| const parsedUrl = url.parse(req.url); | |
| const date = new Date(); | |
| const time = date.toLocaleTimeString("sv-SE", { hour12: false }); | |
| // Handle OPTIONS requests | |
| if (req.method === "OPTIONS") { |
| { | |
| "title": "Caps Lock to Escape/Control", | |
| "description": "Caps Lock to Escape when tapped, Control when held", | |
| "manipulators": [ | |
| { | |
| "from": { "key_code": "caps_lock" }, | |
| "to": [{ "key_code": "left_control" }], | |
| "to_if_alone": [{ "key_code": "escape" }], | |
| "type": "basic" | |
| } |
| /* eslint-env node */ | |
| // | |
| // pnpm add --save-dev @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint typescript eslint-plugin-unicorn | |
| module.exports = { | |
| extends: [ | |
| 'eslint:recommended', | |
| 'plugin:@typescript-eslint/recommended', | |
| 'plugin:unicorn/recommended', | |
| ], | |
| parser: '@typescript-eslint/parser', |
| -- Create the 'movies' table | |
| CREATE TABLE movies ( | |
| movie_id serial PRIMARY KEY, | |
| title VARCHAR(100) NOT NULL, | |
| release_year INT, | |
| director VARCHAR(100), | |
| opening_crawl TEXT | |
| ); | |
| -- Create the 'planets' table |
| #!/bin/bash | |
| # Tom Hale, 2016. MIT Licence. | |
| # Print out 256 colours, with each number printed in its corresponding colour | |
| # See http://askubuntu.com/questions/821157/print-a-256-color-test-pattern-in-the-terminal/821163#821163 | |
| set -eu # Fail on errors or undeclared variables | |
| printable_colours=256 |
| const fetch = require('node-fetch') | |
| const pThrottle = require('p-throttle') | |
| const throttle = pThrottle({ | |
| limit: 5, | |
| interval: 2000 | |
| }) | |
| const throttled = throttle(step => { | |
| return fetch(`https://jsonplaceholder.typicode.com/posts/${step}`) | |
| }) |
| /** | |
| * @name Puppeteer – Screenshot array of URLs and handling timeout (unhandledRejection) | |
| * | |
| * @desc Takes a screenshot of every URL in array and handles timeout | |
| * (Times out on purpose) | |
| * | |
| */ | |
| const puppeteer = require( 'puppeteer' ); | |
| let urlsToShoot = [ 'https://www.google.se', 'https://github.com/' ] |