Skip to content

Instantly share code, notes, and snippets.

@Clumsy-Coder
Clumsy-Coder / osx_install.sh
Created September 13, 2016 00:06 — forked from t-io/osx_install.sh
Install most of my Apps with homebrew & cask
#!/bin/sh
echo Install all AppStore Apps at first!
# no solution to automate AppStore installs
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo Install and Set San Francisco as System Font
ruby -e "$(curl -fsSL https://raw.github.com/wellsriley/YosemiteSanFranciscoFont/master/install)"
echo Install Homebrew, Postgres, wget and cask
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
@Clumsy-Coder
Clumsy-Coder / Makefile
Created October 28, 2016 14:17
Makefile for compiling one C++ file. Used for compiling problems from uva or uhunt
CC = g++
CFLAGS = -Wall -g
MAKECMDGOALS := $(filter-out clean, $(MAKECMDGOALS))
INCLUDE = -I./$(MAKECMDGOALS)
OBJS = $(MAKECMDGOALS).o
.PHONY: $(MAKECMDGOALS) clean
# command for compiling source file, removing any junk files
# and running the compiled file
@Clumsy-Coder
Clumsy-Coder / dependabotAutomerge.yml
Last active August 6, 2020 17:40
Dependabot Automerge github action workflow
name: Dependbot Automerge
on:
pull_request:
types: ['opened']
jobs:
Automerge:
# provided by https://github.com/dependabot/dependabot-core/issues/2268#issuecomment-654608325
runs-on: ubuntu-latest
if: |
@Clumsy-Coder
Clumsy-Coder / dependabot.yml
Created August 6, 2020 17:39
Github dependabot config
version: 2
updates:
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'daily'
open-pull-requests-limit: 8
commit-message:
prefix: 'build(deps): '
prefix-development: 'build(devDep): '
@Clumsy-Coder
Clumsy-Coder / androidBuild.yml
Created August 6, 2020 17:41
React Native Android build using github-actions
name: Android APK Build
on: push
env:
YARN_MODULES_CACHE_KEY: v1
YARN_PACKAGE_CACHE_KEY: v1
YARN_CACHE_FOLDER: .cache/yarn
FORCE_COLOR: true # display terminal colors
jobs:
@Clumsy-Coder
Clumsy-Coder / .github_workflows_semantic-release
Last active March 5, 2023 22:41
semantic release config file
name: Semantic release
on:
push:
branches:
- master
env:
FORCE_COLOR: true
jobs:
@Clumsy-Coder
Clumsy-Coder / end-g-code.gcode
Last active October 7, 2023 17:12
Cura Printer settings (Wanhao Duplicator i3 Plus)
M104 S0 ; extruder heater off
M140 S0 ; bed heater off
G91 ; relative positioning
G1 E-5 F300 ; retract the filament a bit before lifting the nozzle, to release some of the pressure
; move extruder and build plate out of the way so the print object can be reached
M211 S1 ; turn on soft limits
G0 Z40 F1500 ; move Z axis upwards so the print can be reached
G28 X0 ; move X axis to min endstop, so the print can be reached
G0 Y150 F1500 ; move Y to +max position, so the print can be reached
@Clumsy-Coder
Clumsy-Coder / run.sh
Created September 10, 2023 21:14
Convert cloned repo to a bare repo
#!/usr/bin/env zsh
# convert cloned repo into bare repo.
# this to allow the usage of git worktrees
# obtained from
# https://stackoverflow.com/a/2200662/3053548
cd repo
mv .git ../repo.git # renaming just for clarity
cd ..
@Clumsy-Coder
Clumsy-Coder / PULL_REQUEST_TEMPLATE.md
Created November 4, 2023 18:30
repo .github dir contents

Summary

Description

Related Issue

@Clumsy-Coder
Clumsy-Coder / build.yaml
Created November 4, 2023 19:08
github-actions NextJS docker build with semantic-release
---
# .github/workflows/build.yaml
name: NextJS build and release
# description: lint, test, build and release NextJS
on: push
env:
FORCE_COLOR: true # display terminal colors