Skip to content

Instantly share code, notes, and snippets.

View koraysels's full-sized avatar

Koray S. koraysels

View GitHub Profile
@koraysels
koraysels / create_trellis_project.sh
Last active November 15, 2021 14:09
Create a trellis project from existing bedrock repos
#!/bin/sh
#change de URL of the repo
deployRepo=https://github.com/undefinedio/deveerman-trellis.git
bedrockRepo=https://github.com/undefinedio/deveerman-backend.git
tools=(trellis) #tool from roots.io
subtrees=(trellis) #folder structure for the tools
#init repo
@koraysels
koraysels / TRELLIS setup local + digialocean.md
Last active February 23, 2022 11:25
Use Trellis to deploy to digitalocean droplet
# install vagrant
brew install --cask vagrant

# install ansible
brew install ansible 
brew install esolitos/ipa/sshpass

# install virtualbox but make sure it is virtualbox v6.1.26 
@koraysels
koraysels / roland-dxy-1350.md
Last active May 8, 2023 00:17
Roland Plotter HPGL install guide for Mac
#!/usr/bin/env bash
cd INF101AB
while read repo; do
git clone "$repo"
done < ../INF101AB.txt
cd ../INF102AB
while read repo; do
git clone "$repo"
@koraysels
koraysels / unzip.sh
Created December 14, 2023 10:07
unzip all zip files in folder and use the zip archive name as the folder root
#!/bin/bash
for zipFile in *.zip; do
fileName=$(basename "$zipFile" .zip)
echo "Extracting $zipFile..."
unzip -q "$zipFile" -d "$fileName"
newName=$(echo "$fileName" | cut -d '_' -f 1)
# Move the contents of the inner folder to the parent folder