Skip to content

Instantly share code, notes, and snippets.

View andramalmen's full-sized avatar
🏠
Working remotely

Andra Malmén andramalmen

🏠
Working remotely
View GitHub Profile
@andramalmen
andramalmen / ls.js
Last active August 2, 2022 08:47
node ls
const fs = require('fs').promises;
const listFiles = async () => {
try {
const dir = process.argv[2] ?? '.';
const files = await fs.readdir(dir);
for (const file of files) {
console.log(file);
}
@andramalmen
andramalmen / openconnect.md
Created March 2, 2020 07:03 — forked from moklett/openconnect.md
OpenConnect VPN on Mac OS X

Unfortunately, the Cisco AnyConnect client for Mac conflicts with Pow. And by "conflicts", I mean it causes a grey-screen-of-death kernel panic anytime you connect to the VPN and Pow is installed.

As an alternative, there is OpenConnect, a command-line client for Cisco's AnyConnect SSL VPN.

Here's how to get it set up on Mac OS X:

  1. OpenConnect can be installed via homebrew:

     brew update
    

brew install openconnect

Keybase proof

I hereby claim:

  • I am andramalmen on github.
  • I am andramalmen (https://keybase.io/andramalmen) on keybase.
  • I have a public key ASAiUI-tjAY9U9rpdi24-m9z5Mbw_xeR-pSrhZyjVE0Zvgo

To claim this, I am signing this object:

{
"tabWidth": 4,
"singleQuote": true,
"semi": true,
"trailingComma": "es5",
"printWidth": 100,
"arrowParens": "avoid"
}
@andramalmen
andramalmen / .block
Last active January 29, 2018 20:46
Multi-Series Line Chart
license: gpl-3.0
@andramalmen
andramalmen / .block
Created January 29, 2018 20:13
fresh block
license: mit