Skip to content

Instantly share code, notes, and snippets.

vesper8 / .zshrc
Created September 5, 2023 14:48 — forked from callumlocke/.zshrc
ZSH function to auto-switch to correct Node version
# ZSH function to auto-switch to correct Node version
# - Searches up your directory tree for the closest .nvmrc, just like `nvm use` does.
# - If you are already on the right Node version, IT DOES NOTHING, AND PRINTS NOTHING.
# - Works correctly if your .nvmrc file contains something relaxed/generic,
# like "4" or "v12.0" or "stable".
vesper8 /
Created January 24, 2022 00:02 — forked from pirate/
Script to manage searching, backing up, and collecting infinite clipboard history from the Alfred Clipboard History on macOS.
#!/usr/bin/env bash
# This is a script that provides infinite history to get around Alfred's 3-month limit.
# It works by regularly backing up and appending the items in the alfred db to a
# sqlite database in the user's home folder. It also provides search functionality.
# Example Usage:
# backup
vesper8 /
Created August 8, 2020 14:58 — forked from escapedcat/
Tutorial: Cordova iOS build with fastlane, match and Jenkins

Cordova CI with Jenkins for iOS apps

Inspired by CI server on Mac OS for iOS using GitLab and Fastlane by @v_shevchyk we decided to write down our approach. This will be extended and improved over time.

So you want to deploy your Cordova app, but you hate opening xcode manually to archive and export and sign and cry? Try this. By this we mean we try to explain how to create the following CI (Jenkins) setup:

  • Build Cordova app
  • Create & sign your ipa file
  • Upload to HockeyApp (for Enterprise distribution)
vesper8 /
Created April 26, 2020 03:26 — forked from kuznero/
How to compact VirtualBox's VDI file size?

Source: StackOverflow

1. Run defrag in the guest (Windows only)

2. Nullify free space:

With a Linux Guest run this:

sudo dd if=/dev/zero | pv | sudo dd of=/bigemptyfile bs=4096k
sudo rm -rf /bigemptyfile
vesper8 / nginx.conf
Created October 10, 2019 10:37 — forked from thoop/nginx.conf
Official nginx.conf for nginx
# Change YOUR_TOKEN to your prerender token
# Change (server_name) to your website url
# Change /path/to/your/root to the correct value
server {
listen 80;
root /path/to/your/root;
index index.html;
Created September 16, 2019 07:16
it's work
Block these in nano /etc/hosts

How to Download iOS Simulator (Xcode) in Command Line and Install it

For faster connection speed and more flexibility.


  1. Start Xcode in command line by running this in commandline /Applications/
  2. Start downloading of the simulator
  3. Cancel it. YES CANCEL IT!
  4. You will get a message like this:
vesper8 / gist:1831aa1a59765349a9b1dd29a36ca035
Created August 21, 2019 08:18 — forked from rtrouton/gist:2ca6f001b3cecb5037825c7f9d2e422e
Xcode iOS simulator download URLs (as of Xcode 8.3.1)
iOS 10.2 Simulator:
iOS 10.1 Simulator:
iOS 10.0 Simulator:
iOS 9.3 Simulator:
iOS 9.2 Simulator:
iOS 9.1 Simulator:
iOS 9.0 Simulator:
iOS 8.4 Simulator: https://devimages.a
vesper8 / Dockerfile
Created May 13, 2019 19:38 — forked from oze4/Dockerfile
Dockerfile / traefik.toml / docker-compose.yml
FROM node:lts-alpine AS build-stage
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
FROM nginx:stable-alpine
COPY --from=build-stage /app/dist /usr/share/nginx/html
# this isn't necessary - you don't have to expose a port here
vesper8 / led-burn-fix.html
Last active December 20, 2023 05:09
Fullscreen HTML LED stuck pixel / burn-in fixer, inspired by jscreenfix
<html lang="en">
<script src=""></script>
body {
padding: 0;