Skip to content

Instantly share code, notes, and snippets.

View CreedsCode's full-sized avatar
🎯
Focusing

CreedsCode CreedsCode

🎯
Focusing
View GitHub Profile
@CreedsCode
CreedsCode / BallBouncer.cs
Last active July 30, 2018 01:42
Unity3D Script snippets/examples
//Copied From https://gist.github.com/unity3dcollege/b43888d4d17bef0c21369d6cc32352dd
using UnityEngine;
public class BallBouncer : MonoBehaviour
{
[SerializeField]
[Tooltip("Just for debugging, adds some velocity during OnEnable")]
private Vector3 initialVelocity;
[SerializeField]
@CreedsCode
CreedsCode / Dockerfile
Created September 6, 2018 11:40 — forked from jcavat/Dockerfile
docker-compose with php/mysql/phpmyadmin/apache
FROM php:7.1.2-apache
RUN docker-php-ext-install mysqli
@CreedsCode
CreedsCode / Program.cs
Created August 2, 2019 00:19
Asp.net deploy setup
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
@CreedsCode
CreedsCode / splice.py
Last active December 23, 2020 10:20
Splice the images out of a video
import cv2
vidcap = cv2.VideoCapture('video.mp4')
success, image = vidcap.read()
count = 1
while success:
cv2.imwrite("output/image_%d.jpg" % count, image)
success, image = vidcap.read()
print('Saved ', count)
count += 1
@CreedsCode
CreedsCode / docker-compose.yml
Created June 26, 2021 19:10
My dev env, when working with Wordpress
version: '3'
services:
mysql:
image: mysql:5
container_name: mysql
environment:
- MYSQL_DATABASE=wpdb
- MYSQL_USER=wpuser
@CreedsCode
CreedsCode / start.sh
Created August 12, 2021 07:10
start.sh for github runner, to be able to curl it in the dockerfile
#!/bin/bash
ORGANIZATION=$ORGANIZATION
ACCESS_TOKEN=$ACCESS_TOKEN
REG_TOKEN=$(curl -sX POST -H "Authorization: token ${ACCESS_TOKEN}" https://api.github.com/orgs/${ORGANIZATION}/actions/runners/registration-token | jq .token --raw-output)
cd /home/docker/actions-runner
./config.sh --url https://github.com/${ORGANIZATION} --token ${REG_TOKEN}
@CreedsCode
CreedsCode / twitter_template.ipynb
Created June 1, 2022 05:55
My Twitter jupyter template.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
name: Server Build & Push
on:
push:
branches: [main]
paths:
- 'server/**'
- 'shared/**'
- docker-compose.prod.yml
- Dockerfile