Skip to content

Instantly share code, notes, and snippets.

View OffS3c's full-sized avatar
🏠
Working from home

OffS3c OffS3c

🏠
Working from home
View GitHub Profile
@OffS3c
OffS3c / bookmarkleting.md
Created December 30, 2021 04:06 — forked from caseywatts/bookmarkleting.md
Making Bookmarklets

This is one chapter of my "Chrome Extension Workshops" tutorial, see the rest here: https://gist.github.com/caseywatts/8eec8ff974dee9f3b247

Unrelated update: my book is out! Debugging Your Brain is an applied psychology / self-help book

Making Bookmarklets

I'm feeling very clever. I've got this sweet line of javascript that replaces "cloud" with "butt". My mom would LOVE this, but she doesn't computer very well. I'm afraid to show her the Developer Console and have her type/paste this in. But she IS pretty good at bookmarks, she knows just how to click those!

A bookmark normally takes you to a new web page. A bookmarklet is a bookmark that runs javascript on the current page instead of taking you to a new page. To declare that it is a bookmarklet, the "location" it points to starts with javascript:.

Using Let’s Encrypt (public beta) with Vesta Control Panel

Install the Let’s Encrypt ACME Client

Follow the instructions at https://letsencrypt.readthedocs.org. Assuming you installed as root, the client will be now be located at /root/letsencrypt.

Request a Certificate

By default:

  • The beta client will use the test infrastructure to issue a certificate, and thus won’t be trusted by browsers;
  • The client uses a temporary web server to authenticate the host which will conflict with the existing web server(s);
@OffS3c
OffS3c / .bashrc
Created March 1, 2020 07:15 — forked from rickdaalhuizen90/.bashrc
Parrot Os bash theme for ubuntu
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace