Skip to content

Instantly share code, notes, and snippets.

View efjacobson's full-sized avatar
🐙
ὀκτώπους

efjacobson

🐙
ὀκτώπους
  • A series of tubes
View GitHub Profile
@efjacobson
efjacobson / pve_debian_bullseye_unifi_controller.sh
Created January 5, 2023 00:50
Proxmox Debian 11 (Bullseye) install Unifi Controller
# start with a fresh container using proxmox debian-11-standard_11.6-1_amd64.tar.zst
# sprinkle in some spice
# - https://florianmuller.com/setup-a-self-hosted-unifi-controller-on-a-hardened-proxmox-lxc-ubuntu-container
# - https://gist.github.com/sinofool/233ed96dd85123ee5a87ad12e812d424
apt update \
&& echo '[unifi-lxc] installing prerequisites...' \
&& apt install -y curl gpg \
&& echo '[unifi-lxc] installing java 8...' \
&& curl -fsSL "https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public" | gpg --dearmor --yes -o /usr/share/keyrings/adoptopenjdk-archive-keyring.gpg \
Hi PERSON_I_HAVE_NEVER_HEARD_OF,
Thank you for reaching out, I appreciate your gumption.
The CURRENT_EMPLOYER Engineering Department is currently not interested in the services provided by WHATEVER_YOUR_COMPANY_IS_CALLED. If that ever changes I'll be sure to let you know. I'll keep the lines of communication open between us, but please note that if I receive another unsolicited message I will start soft blocking your email and/or entire domain.
No hard feelings, I hope you have a lovely day.
Best,
YOUR_NAME_AND_CURRENT_JOB_TITLE_I_GUESS
@efjacobson
efjacobson / rc.local
Created July 3, 2022 06:20
OpenWRT /etc/rc.local
echo "begin /etc/rc.local"
echo ""
DRY_RUN=0
for opt in "$@"
do
case ${opt} in
--dry-run)
DRY_RUN=1
@efjacobson
efjacobson / vtt
Last active March 20, 2020 23:51
WEBVTT
00:00:00.500 --> 00:00:02.000
The Web is always changing
00:00:02.500 --> 00:00:04.300
and the way we access it is changing
00:00:10.410 --> 00:00:14.269
they will never be employed? But neither can,
export default (editorState) => {
const contentState = editorState.getCurrentContent();
const firstBlock = contentState.getFirstBlock();
const lastBlock = contentState.getLastBlock();
const selectionState = editorState.getSelection();
const anchorKey = selectionState.getAnchorKey();
const anchorOffset = selectionState.getAnchorOffset();
const focusKey = selectionState.getFocusKey();
const focusOffset = selectionState.getFocusOffset();
let areAllBlocksSelected = false;
export default {
':⊛_adhesive_bandage:': '🩹',
':⊛_auto_rickshaw:': '🛺',
':⊛_axe:': '🪓',
':⊛_ballet_shoes:': '🩰',
':⊛_banjo:': '🪕',
':⊛_beverage_box:': '🧃',
':⊛_blue_square:': '🟦',
':⊛_briefs:': '🩲',
':⊛_brown_circle:': '🟤',
import React from 'react';
import PropTypes from 'prop-types';
class coolList extends React.Component {
constructor(props) {
super();
state = {
selectedArticle: props.selectedArticle,
articles: props.articles,
users: props.users,
import { EditorState } from 'draft-js';
import DraftOffsetKey from 'draft-js/lib/DraftOffsetKey';
import insertNewLine from './modifiers/insertNewLine';
import setSelection from './modifiers/setSelection';
import setSelectionToBlock from './modifiers/setSelectionToBlock';
import createDecorator from './createDecorator';
import createBlockKeyStore from './utils/createBlockKeyStore';
import blockInSelection from './utils/blockInSelection';
import getBlockMapKeys from './utils/getBlockMapKeys';
import defaultTheme from './style.css';
@model Healswift.Web.Models.ViewModels.ItemViewModel<int>
@{
ViewBag.Title = "Create";
Layout = "~/Views/Shared/_LayoutHealth.cshtml";
}
@section Styles {
<link href="~/assets/css/individual-provider-crud.css" rel="stylesheet" />
<link href="~/assets/css/ng-img-crop.css" rel="stylesheet" />
@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}
<div class="content-heading" id="topPage">
<!-- START Language list-->
<div class="pull-right">
<div class="btn-group">