Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home #StayAtHome

Anthony Da Mota AkdM

🏠
Working from home #StayAtHome
View GitHub Profile
@superjose
superjose / .gitlab-ci.yml
Last active Jun 2, 2021
This is an example of a .gitlab-ci.yml that is required for Continuous Integration on GitLab projects.
View .gitlab-ci.yml
# Reference: https://www.exclamationlabs.com/blog/continuous-deployment-to-npm-using-gitlab-ci/
# GitLab uses docker in the background, so we need to specify the
# image versions. This is useful because we're freely to use
# multiple node versions to work with it. They come from the docker
# repo.
# Uses NodeJS V 9.4.0
image: node:9.4.0
# And to cache them as well.
View mmalobj_demo.py
# WARNING: This probably won't work with current versions of the
# mmalobj layer; it was made while the layer was still being
# developed.
import io
import curses
import datetime as dt
from picamera import array, mmal, mmalobj as mo, PiCameraMMALError
from threading import Thread, Lock
from PIL import Image, ImageDraw, ImageFont
@waveform80
waveform80 / astro_cam.py
Created Jun 16, 2017
Faster astro-cam demo
View astro_cam.py
from picamera import PiCamera
from sense_hat import SenseHat
from PIL import Image
from signal import pause
class DisplayOutput():
def __init__(self):
self.hat = SenseHat()
def write(self, buf):
@justjanne
justjanne / Price Breakdown.md
Last active Apr 6, 2021 — forked from kylemanna/price.txt
Server Price Breakdown: DigitalOcean, Amazon AWS LightSail, Vultr, Linode, OVH, Hetzner, Scaleway/Online.net:
View Price Breakdown.md

Server Price Breakdown: DigitalOcean, Amazon AWS LightSail, Vultr, Linode, OVH, Hetzner, Scaleway/Online.net:

Permalink: git.io/vps

$5/mo

Provider Type RAM Cores Storage Transfer Network Price
@jaibeee
jaibeee / brew-perms.sh
Last active May 24, 2021
Configure homebrew permissions to allow multiple users on MAC OSX. Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
View brew-perms.sh
#!/bin/sh
# Configure homebrew permissions to allow multiple users on MAC OSX.
# Any user from the admin group will be able to manage the homebrew and cask installation on the machine.
# allow admins to manage homebrew's local install directory
chgrp -R admin /usr/local
chmod -R g+w /usr/local
# allow admins to homebrew's local cache of formulae and source files
chgrp -R admin /Library/Caches/Homebrew
@jamesattard
jamesattard / gist:51240a9a60ca6bf9513e
Last active Apr 19, 2021
Fix Permissions and Refresh KExt cache
View gist:51240a9a60ca6bf9513e
echo "Fixing ownership and permissions..."
chmod -R 755 /System/Library/Extensions/*
chown -R root:wheel /System/Library/Extensions/*
chown root:admin /
echo "Rebuilding kext cache..."
kextcache -system-prelinked-kernel
kextcache -system-caches
@ebattenberg
ebattenberg / config.yaml
Last active Jun 3, 2021
YAML config file example
View config.yaml
---
# Dataset Stuff -------------------------------------------------
#
data_path: ~/data
output_path: ~/output
val_size: 10000
train_chunk_size: 40000
@revett
revett / git_branch_naming.md
Last active May 23, 2021
Git Branch Naming Conventions
View git_branch_naming.md

<type>/<name>

<type>

bug    - Code changes linked to a known issue.
feat   - New feature.
hotfix - Quick fixes to the codebase.
junk   - Experiments (will never be merged).