Skip to content

Instantly share code, notes, and snippets.

Avatar

Alexander Regueiro alexreg

View GitHub Profile
View zoomsucks.md

Zoom Sucks

  • Zoom abuses the installer flow on MacOS to bypass permissions dialogs (source)
  • Zoom sends identifying device info to Facebook, even when users don't have a Facebook account (source) (fixed)
  • A bug in Zoom sent identifying information (including email addresses and profile pictures) of thousands of users to strangers (source)
  • Zoom claims that meetings are end-to-end encrypted in their white paper and marketing materials, but meetings are only encrypted in transit, and are available in plaintext to Zoom servers and employees. (source)
  • zoomAutenticationTool can be used to escalat
@akorn
akorn / runcached
Last active Mar 1, 2022
Run speficied (presumably expensive) command with specified arguments and cache result. If cache is fresh enough, don't run command again but return cached output.
View runcached
#!/bin/zsh
#
# Purpose: run speficied command with specified arguments and cache result. If cache is fresh enough, don't run command again but return cached output.
# Also cache exit status and stderr.
# Copyright (c) 2019-2022 András Korn; License: GPLv3
# Use silly long variable names to avoid clashing with whatever the invoked program might use
RUNCACHED_MAX_AGE=${RUNCACHED_MAX_AGE:-300}
RUNCACHED_IGNORE_ENV=${RUNCACHED_IGNORE_ENV:-0}
RUNCACHED_IGNORE_PWD=${RUNCACHED_IGNORE_PWD:-0}
@alexreg
alexreg / gcc-farm-rustc.bash
Last active Apr 16, 2020
GCC Farm Build Script
View gcc-farm-rustc.bash
#!/usr/bin/env bash
set -e
if [[ ! -r "./x.py" ]]; then
echo >&2 "error: not in 'rustc' repository"
exit 1
fi
GCC_FARM_PREBUILD=$'
@alexreg
alexreg / cargo-update-binaries.py
Created Aug 15, 2018
Script for updating Rust binaries via Cargo
View cargo-update-binaries.py
#!/usr/bin/env python3
import io
import json
from packaging import version
import re
import subprocess
def get_crate_info(crate):
with subprocess.Popen(["cargo", "info", "--json", crate], stdout = subprocess.PIPE) as proc:
@rudelm
rudelm / autofs.md
Last active Jul 1, 2022
Use autofs on Mac OS X to mount network shares automatically during access
View autofs.md

Autofs on Mac OS X

With autofs you can easily mount network volumes upon first access to the folder where you want to mount the volume. Autofs is available for many OS and is preinstalled on Mac OS X so I show you how I mounted my iTunes library folder using this method.

Prepare autofs to use a separate configuration file

autofs needs to be configured so that it knows where to gets its configuration. Edit the file /etc/auto_master and add the last line:

#
# Automounter master map
#

+auto_master # Use directory service

@aleks-mariusz
aleks-mariusz / safari-open-pages.py
Created Aug 24, 2014
This script fetches the current open tabs in all Safari windows. Useful to run remotely on your mac when you are at work and want to read a page you have open (remotely) at home but don't remember the url but can log in to your home system on the command line
View safari-open-pages.py
#!/usr/bin/python
#
# This script fetches the current open tabs in all Safari windows.
# Useful to run remotely on your mac when you are at work and want
# to read a page you have open (remotely) at home but don't remember
# the url but can log in to your home system on the cmmand line
#
import sys