Skip to content

Instantly share code, notes, and snippets.

View kclejeune's full-sized avatar

Kennan LeJeune kclejeune

View GitHub Profile
@kclejeune
kclejeune / symantec-vip-access-totp.md
Created January 2, 2023 00:21 — forked from jarbro/symantec-vip-access-totp.md
Generate Symantec VIP Access Token as TOTP

Generate Symantec VIP Access Token as OTP

Recently I came across a web service that required two-factor authentication using the Symantec VIP Access App. I already manage all of my OTP tokens in a different app (If you are on iOS I highly recommend using OTP Auth by Roland Moers.) and did not want to have to use yet another app to generate the TOTP.

There is a way to generate a Symantec VIP Access compatible token very easily if you have access to an environment which can run Python PIP. I happen to have Ubuntu Windows Subsystem Linux running on my machine. (If you are running Windows 10 and don't have this you should really check it out.) Let's get started...

hello

Instructions

Here we install python3-pip and qrencode so we can generate our secret, I

@kclejeune
kclejeune / flake.nix
Last active December 27, 2021 09:10
home manager flake
{
description = "home manager system configurations";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
};
@kclejeune
kclejeune / tmux.sh
Created July 30, 2021 04:06
tmux auto config for hpc over ssh
# if we're in an interactive ssh shell and NOT in a tmux shell, reconnect or create an ssh_tmux session
if [[ $- == *i* ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
# tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux
tmux new-session -A -s ssh_tmux
fi
@kclejeune
kclejeune / MySQL.md
Last active November 4, 2020 01:15
A Severely Mediocre Crash Course in MySQL

A Severely Mediocre Crash Course in MySQL

So you're in the WCA statistics group, and you want to learn how to make the nifty tables of mystery stats? Here are the tools you need to make it happen. If anything here doesn't work, google it or ask someone more qualified than myself.

Installing MySQL - macOS

I'd suggest using Homebrew if you don't already. To check if you have it and install accordingly, run:

if [ ! -e /usr/local/bin/brew ]; then 
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Scanner;
public class Solver {
public static void main(String[] args) {
// quit if no input argument is provided
if (args.length == 0) {
System.out.println("No input file provided.");
# System-wide .bashrc file for interactive bash(1) shells.
if [ -z "$PS1" ]; then
return
fi
PS1='\h:\W \u\$ '
# Make bash check its window size after a process completes
shopt -s checkwinsize
[ -r "/etc/bashrc_$TERM_PROGRAM" ] && . "/etc/bashrc_$TERM_PROGRAM"
#!/usr/bin/env bash
# ~/.macos — https://mths.be/macos
# Close any open System Preferences panes, to prevent them from overriding
# settings we’re about to change
osascript -e 'tell application "System Preferences" to quit'
# Ask for the administrator password upfront
sudo -v

Keybase proof

I hereby claim:

  • I am kclejeune on github.
  • I am kclejeune (https://keybase.io/kclejeune) on keybase.
  • I have a public key ASDi3-z8D-NMQl_XOGRfOCBZWj8PAidhVhHxwZNblkmvUQo

To claim this, I am signing this object:

Name ItsJustALittlePie
# def-file by KÃ¥re Krig
# PIECES: UBR UR UFR UFL UL UBL DFR DR DBR DBL DL
# DFL Fixed
Set CORNERS 12 0
Solved
CORNERS

Rankings

name minAvg
Max Park 5.9700
Feliks Zemdegs 6.0280
Patrick Ponce 6.3360
Seung Hyuk Nahm (남승혁) 6.5020
Philipp Weyer 6.6080
Kian Mansour 6.6280
Bill Wang 6.6620