Skip to content

Instantly share code, notes, and snippets.

View bjensen's full-sized avatar

Brian Jensen bjensen

View GitHub Profile
@bjensen
bjensen / gist:bc91e5147634850409927c415fa5683a
Created January 14, 2024 20:30
studentapp pricacy policy
privacy policy - nothing is collected
# This file contains pin mappings for the LDO Kit using BigTreeTech Octopus V1 as the main controller.
# To use this config, the firmware should be compiled for the STM32F446 with a "32KiB bootloader"
# Enable "extra low-level configuration options" and select the "12MHz crystal" as clock reference
# after running "make", copy the generated "klipper/out/klipper.bin" file to a
# file named "firmware.bin" on an SD card and then restart the Octopus with that SD card.
# See docs/Config_Reference.md for a description of parameters.
## Voron Design VORON2 250/300/350mm BigTreeTech Octopus V1 TMC2209 UART config
@bjensen
bjensen / how-to-copy-aws-rds-to-local.md
Last active March 10, 2021 12:08 — forked from syafiqfaiz/how-to-copy-aws-rds-to-local.md
How to copy production database on AWS RDS(postgresql) to local development database.

https://computingforgeeks.com/install-postgresql-12-on-ubuntu/

sudo apt update
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" |sudo tee  /etc/apt/sources.list.d/pgdg.list
sudo apt update
sudo apt -y install postgresql-client-12
class AttendanceTimesForTeam
def self.get(team_id, current_user, only_team_activities)
AttendanceTime.
joins(attendance: {stay: :student}).
where(
'stays.team_id': team_id,
'attendances.is_team_activity': only_team_activities,
'students.fgu_institution_id': current_user.fgu_institution_id
)
end
import authService from "../auth/authService";
export default {
install(Vue) {
Vue.prototype.$auth = authService;
Vue.mixin({
created() {
if (this.handleLoginEvent) {
authService.addListener('loginEvent', this.handleLoginEvent);
@bjensen
bjensen / 1-brew.sh
Last active February 1, 2023 21:33
Initial setup of mac with all apps using cask and homebrew
#reqs Install Xcode from app store first and certs be icloud folder certs
xcode-select --install
echo "Installing certs"
echo 'Installing homebrew'
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Rails.application.config.middleware.insert_before 0, Rack::Cors do
allow do
origins '*'
resource '*', headers: :any, methods: [:get, :post, :options, :patch]
end
end
<template>
<v-text-field :label="name" v-on="listeners" :value="value" :error-messages="errors"/>
</template>
<script>
export default {
props: {
<template>
<div class="col-lg-3 d-none d-xl-block">
<!-- <img src="https://place-hold.it/180x238/666/fff/000.gif" class="img-responsive" alt> -->
<vue-transmit
ref="vtransmit"
:uploadMultiple="false"
v-bind="options"
@success="onUploadSuccess"
@processing="prepURL"
:url="uploadURL"
apt-get update
apt-get upgrade /y
cd
git clone https://github.com/bjensen/OLED
git clone https://github.com/HackerShackOfficial/Smart-Bartender
cd OLED
sh OLEDinstall.sh