Skip to content

Instantly share code, notes, and snippets.

#! /usr/bin/env donkey
install:
- pip install -U pip
- pip install -r requirements
runserver:
- ./manage.py runserver
sass:
exe: webpack
@queilawithaQ
queilawithaQ / main.go
Created December 15, 2021 21:20 — forked from oxlb/main.go
package main
import "fmt"
func main() {
fmt.Println("Dev Configuration\n")
configuration := GetConfig()
fmt.Println(configuration.DB_USERNAME)
fmt.Println(configuration.DB_PASSWORD)
fmt.Println(configuration.DB_PORT)
@queilawithaQ
queilawithaQ / config.go
Created December 15, 2021 21:19 — forked from oxlb/config.go
package main
import (
"github.com/tkanos/gonfig"
"fmt"
)
type Configuration struct {
DB_USERNAME string
DB_PASSWORD string
{
"DB_USERNAME": "prod_test",
"DB_PASSWORD": "prod_test",
"DB_PORT": "3306",
"DB_HOST": "127.0.0.1",
"DB_NAME": "prod_test"
}
@queilawithaQ
queilawithaQ / dev_config.json
Created December 15, 2021 21:16 — forked from oxlb/dev_config.json
dev configuration
{
"DB_USERNAME": "test",
"DB_PASSWORD": "test",
"DB_PORT": "3306",
"DB_HOST": "127.0.0.1",
"DB_NAME": "test"
}
@queilawithaQ
queilawithaQ / 0-github-actions.md
Created December 10, 2021 07:35 — forked from domenic/0-github-actions.md
Auto-deploying built products to gh-pages with Travis

Auto-deploying built products to gh-pages with GitHub Actions

This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.

A file below this one contains the steps for doing this with Travis CI. However, these days I recommend GitHub Actions, for the following reasons:

  • It is much easier and requires less steps, because you are already authenticated with GitHub, so you don't need to share secret keys across services like you do when coordinate Travis CI and GitHub.
  • It is free, with no quotas.
  • Anecdotally, builds are much faster with GitHub Actions than with Travis CI, especially in terms of time spent waiting for a builder.
@queilawithaQ
queilawithaQ / auto_git_file.md
Created December 10, 2021 07:16 — forked from darencard/auto_git_file.md
Automatic file git commit/push upon change

Automatically push an updated file whenever it is changed

Linux

  1. Make sure inotify-tools is installed (https://github.com/rvoicilas/inotify-tools)
  2. Configure git as usual
  3. Clone the git repository of interest from github and, if necessary, add file you want to monitor
  4. Allow username/password to be cached so you aren't asked everytime
git config credential.helper store
@queilawithaQ
queilawithaQ / gist:927dc271321586260af2b6e5a1af2bcc
Created June 19, 2021 00:29 — forked from wacko/gist:5577187
SSH between Mac OS X host and Virtual Box guest

On Mac OS (host):

Shutdown your VM and do:

VirtualBox > Settings > Network > Add (you will get vboxnet0)

On a terminal ifconfig will show you new interface vboxnet0

VM's Settings > System > check "Enable I/O APIC." VM's Settings > Network > Adapter 2 > host-only vboxnet0

@queilawithaQ
queilawithaQ / gb-bxbt-1900.md
Created April 7, 2021 16:02 — forked from plembo/gb-bxbt-1900.md
Gigabyte BXBT-1900 as a HTPC

Using a Gigabyte BXBT-1900 as an HTPC

Gigabyte mini PC with Intel Baytrail J1900 Celeron.

NOTE: I do not endorse the use of this machine as an HTPC. It's way too underpowered for that. Over time, I have found that a non-mobile i5 with 4 cores is the absolute minimum hardware required for an HTPC.

4 core CPU, but weak GPU. Old tech released in 2014, optimized for Windows 8.

Known for locking up without warning. That condition supposed to have been fixed by BIOS F8 (03/02/2016).