Skip to content

Instantly share code, notes, and snippets.

View jakebrinkmann's full-sized avatar

Jake Brinkmann jakebrinkmann

View GitHub Profile
@usr-ein
usr-ein / Dockerfile
Last active May 2, 2024 10:55
Optimal multistaged Dockerfile for poetry
# syntax=docker/dockerfile:1
# Keep this syntax directive! It's used to enable Docker BuildKit
# Based on https://github.com/python-poetry/poetry/discussions/1879?sort=top#discussioncomment-216865
# but I try to keep it updated (see history)
################################
# PYTHON-BASE
# Sets up all our shared environment variables
################################
@phanhaiquang
phanhaiquang / .eslintrc.js
Last active March 18, 2024 16:10
Setup ESLint for VIM ALE
module.exports = {
"parser": "@babel/eslint-parser",
"env": {
"browser": true,
"es2021": true
},
"extends": "plugin:react/recommended",
"parserOptions": {
"requireConfigFile": false,
"ecmaFeatures": {
@Vanlightly
Vanlightly / Clock.tla
Created June 3, 2021 08:38
Clock TLA+ specification
------------------------------- MODULE Clock -------------------------------
EXTENDS Naturals
VARIABLES hour, minute, second
Init ==
/\ hour = 0
/\ minute = 0
/\ second = 0
@Vanlightly
Vanlightly / two_counters.tla
Created June 3, 2021 08:23
Example TLA+ specification
---------------------------- MODULE TwoCounters ----------------------------
EXTENDS Integers
CONSTANT C, Limit
VARIABLES counter
Init ==
counter = [c \in C |-> 0]
Next ==
@jakebrinkmann
jakebrinkmann / DailyTimesheet.xml
Last active September 26, 2021 22:09
Windows 10 Task Scheduler - Tell myself to go home or take a lunch break by LockWorkStation (XML)
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2021-09-26T17:04:07.1303814</Date>
<Author>jbrinkma</Author>
<URI>\Daily Timesheet</URI>
</RegistrationInfo>
<Triggers>
<CalendarTrigger>
<StartBoundary>2021-09-26T16:45:00</StartBoundary>

Design a Public Transit Tracker 🛤🚂

Back story

OOP Design (object-oriented programming) is a good exercise to show how to split up our system into different components. You can think of React Components but instead, we are separating our system into different objects/classes. The important factor of this problem and problems like these are that they are opened ended and force you to think abstractly and creatively. The main goal of this exercise is to be able to draw out diagrams to communicate abstract ideas before they begin to be implemented with code.

These problems are language agnostic (meaning language-neutral, or cross-language)

Learning Objective

  • To understand and design activity diagrams and class diagrams.
@ChristopherA
ChristopherA / brew-bundle-brewfile-tips.md
Last active May 7, 2024 16:54
Brew Bundle Brewfile Tips

Brew Bundle Brewfile Tips

Copyright & License

Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.

Sponsor

If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.

@DannyQuah
DannyQuah / 2020.06-D.Quah-Pulse-Secure-Client-on-Ubuntu-Linux.md
Last active March 18, 2024 16:12
Pulse Secure Client on Ubuntu Linux

Pulse Secure Client on Ubuntu Linux

by Danny Quah, June 2020 (revised Jan 2022)

Pulse Secure Client is a VPN client that allows secure connection to a Pulse Connect Secure SSL VPN gateway. Many universities use that latter for faculty, staff, and student access to their computer systems. However, because Linux comes in many different flavors, the standard Pulse Secure Client installer does not always run to completion. (For one, [UWO.ca][] suggests "PulseSecure's understanding of Linux package managers and distributions in general seems very limited.") The user is then either forced to use a Windows machine, somehow, or fail VPN access when traveling with their Linux notebook.

This Gist describes the steps I took to install Pulse Secure Client on my Ubuntu-based Linux machines, including a Pixelbook running GalliumOS 3.1 and Dell desktops running Ubuntu 18.04 and 20.04. Other writeups elsewhere that I've looked at describe the same problems I encountered, but were either out-dated, overly localised,

Disclaimer: This gist is a bit outdated now. The client download page now redirects to a login page that the downloads are guarded behind. You'll want to do a web search for a pulse secure deb file and install that now. Try: http://webdev.web3.technion.ac.il/docs/cis/public/ssl-vpn/ps-pulse-ubuntu-debian.deb. When I installed Pulse Secure 9.1R13, I didn't need to do anything else to get it working.

9.1R13 download: https://drive.google.com/file/d/1xfXsg9aNISAtWUgfVmAWKd_8FE2I_Mbl/view


To install Pulse Secure for Ubuntu 20.04, it is a bit complicated since the support isn't great.

First, we'll want to go through the form at https://www.pulsesecure.net/trynow/client-download/. You'll get an email with download links to the latest versions of pulse secure. Download the Linux

@jakebrinkmann
jakebrinkmann / 0-DEV-ENV.md
Last active July 11, 2022 22:37
Developer Environment -- All my "notes to self" about my developer environment (DEV-ENV)

👩‍💻 👨‍💻

Hello Friends. This is my space where I want to spread knowledge as far as I can.