Skip to content

Instantly share code, notes, and snippets.

View V1ncNet's full-sized avatar

Vincent Nadoll V1ncNet

View GitHub Profile
@flandrade
flandrade / automatically-add-icalendar-events.md
Last active July 5, 2024 19:26
Automatically Add iCalendar Events (.ics) to Calendars

Automatically Add iCalendar Events (.ics) to Calendars

Do you want to create a calendar event so that you can display it on an iPhone's calendar app or in Google Calendar? This can be done by using iCalendar events RFC 5545 as part of the following workflow:

  1. The user signs up for an event online.
  2. The user receives the iCalendar file as an attachment in the email.
  3. The .ics file contains information for the event at a specific time and date.
@florianschmidt1994
florianschmidt1994 / custom_history.md
Last active July 23, 2019 17:24
Using custom fzf history with ctrl-r in zsh
function fh() {
   command=$(fc -ln 0|               # show history without line numbers
     tail -r         |               # reverse the order
     awk '!x[$0]++'  |               # drop duplicates (https://unix.stackexchange.com/a/193331)
     fzf -e +s \
         --color=light \
         --height=20 \
         --inline-info \
         --border \
@zironycho
zironycho / portainer-agent-stack-traefik.yml
Last active June 30, 2019 23:00
portainer stack with traefik
version: '3.2'
services:
agent:
image: portainer/agent
environment:
# REQUIRED: Should be equal to the service name prefixed by "tasks." when
# deployed inside an overlay network
AGENT_CLUSTER_ADDR: tasks.agent
# AGENT_PORT: 9001
#!/bin/sh
# Supported desktop environments
# 1. Aqua (MacOS)
# 2. Gnome
# 3. Unity
# 4. Feh
# 5. xfce4
# 6. KDE
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
.block_bg {
position: relative;
@fntlnz
fntlnz / self-signed-certificate-with-custom-ca.md
Last active July 15, 2024 09:31
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096

Card fold down effect with dynamic height

A mix of max-height 0 and overflow hidden, and transform. With the benefit of dynamic height of content that gets folded out.

A Pen by Kriszta on CodePen.

License.

@oleq
oleq / _README.md
Last active July 1, 2024 21:37
A2DP audio streaming using Raspberry PI (Raspbian Jessie)

What is this all about?

This tutorial will turn your Raspberry PI into a simple Bluetooth audio receiver, which plays music through connected speakers. It's like a regular car audio system, but it can be used anywhere and it's a good value.

   Audio source (i.e. smartphone) 
                |
                v
 (((  Wireless Bluetooth Channel  )))
 |
@Josef-Friedrich
Josef-Friedrich / .githook_pre-commit
Last active February 14, 2018 23:23
pre-commit hook to clean up tex, latex repository
#! /bin/sh
# Extensions:
EXT="aux fdb_latexmk log out pdf synctex.gz"
# Symlink to .git/hooks/pre-commit
# cd .git/hook
# ln -s ../../.githook_pre-commit pre-commit
_remove() {
@yurydelendik
yurydelendik / gist:f2b846dae7cb29c86d23
Last active June 18, 2024 11:46
PDF.js get/show hightlight
function getHightlightCoords() {
var pageIndex = PDFViewerApplication.pdfViewer.currentPageNumber - 1;
var page = PDFViewerApplication.pdfViewer.getPageView(pageIndex);
var pageRect = page.canvas.getClientRects()[0];
var selectionRects = window.getSelection().getRangeAt(0).getClientRects();
var viewport = page.viewport;
var selected = selectionRects.map(function (r) {
return viewport.convertToPdfPoint(r.left - pageRect.x, r.top - pageRect.y).concat(
viewport.convertToPdfPoint(r.right - pageRect.x, r.bottom - pageRect.y));
});