Skip to content

Instantly share code, notes, and snippets.

View LanceGundersen's full-sized avatar
💫
Seeking a Frontend or UI/UX Role!

linuxlance LanceGundersen

💫
Seeking a Frontend or UI/UX Role!
View GitHub Profile
@LanceGundersen
LanceGundersen / config.yml
Created December 6, 2020 01:16
CircleCI Config
version: 2.1
orbs:
github-release: h-matsuo/github-release@0.1.3
# cypress: cypress-io/cypress@1
executors:
windows:
docker:
- image: electronuserland/builder:wine
@LanceGundersen
LanceGundersen / server_setup.sh
Last active January 18, 2020 18:11
Home Server Setup
#!/bin/bash
# Clone gist
# Enter Directory cd 300b4268667e8f080c7175e0c81438b5
# Modify permissions sudo chmod -x server_setup.sh
# Run file . server_setup.sh
echo "Updating and Upgrading..."
sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get autoremove -y
@LanceGundersen
LanceGundersen / openvpn-client.sh
Created October 9, 2019 01:53
Server - OpenVPN Client
This tutorial assumes basic knowledge of Linux and root access to your OMV server. Lets get started.
Installing OpenVPN (as root)
apt-get install openvpn
After installing OpenVPN, you'll want to obtain the VPN certificate files. These should be provided to you by your VPN provider. My personal recommendation is PIA. If you choose to utilize PIA, you can download the necessary files here.
At this point you'll want to transfer the certificate files over to your server either using SCP or some other mechanism. I personally recommend directly downloading it on the server with wget and then unzipping it with unzip.
From your extracted files, move ca.crt, crl.pem, vpn.ovpn to /etc/openvpn/ (Note: vpn.ovpn refers to whatever VPN server you're looking to connect to)
edit the vpn.ovpn file using whatever editor you prefer and replace the line
auth-user-pass
with
<template>
...
</template>
<script>
// TODO: REMOVE WHEN API IMPLEMENTED
import fs from 'fs'
// TODO: REMOVE WHEN API IMPLEMENTED
import path from 'path'
import DetailsDialog from '@/components/DetailsDialog'
@LanceGundersen
LanceGundersen / Camera.java
Created February 12, 2019 04:18
Elusive camera class that is missing from coursework.
import javax.media.opengl.GL2;
import javax.media.opengl.glu.GLU;
import java.awt.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
/**
* A Camera object encapsulates the information needed to define a
* viewing transform and a projection for an OpenGL context. The
@LanceGundersen
LanceGundersen / sprite_60fps.svg
Created January 29, 2019 05:25
SVG Animation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@LanceGundersen
LanceGundersen / 2DJava.java
Created January 25, 2019 16:07
Code Snippet for Instructor Question
/**
* The paintComponent method draws the content of the JPanel. The parameter
* is a graphics context that can be used for drawing on the panel.
*/
protected void paintComponent(Graphics g) {
BufferedImage arrowImage = myImages.getImage(ImageTemplate.arrow);
BufferedImage thumbImage = myImages.getImage(ImageTemplate.thumb);
BufferedImage cupImage = myImages.getImage(ImageTemplate.cup);
@LanceGundersen
LanceGundersen / AreaCalculator.java
Last active November 14, 2018 13:37
Java Area Calculator
import javax.swing.*;
import javax.swing.border.EmptyBorder;
import java.awt.*;
import static javax.swing.SwingConstants.CENTER;
/**
* File Week4Discussion.java
* Simple area calculator.
*