Skip to content

Instantly share code, notes, and snippets.

@nickytonline
nickytonline / my-mac-setup.sh
Last active July 23, 2025 00:49
Mac Setup Scripts
#!/bin/sh
# More Mac setup at https://mac.iamdeveloper.com
# Log file
timestamp=$(date +%s)
logFile="./my-mac-setup-$timestamp.log"
# if true is passed in, things will reinstall
reinstall=$1
@bgadrian
bgadrian / setup.dev.sh
Last active October 25, 2022 21:38
Linux web dev setup (made for ubuntu 17+)
#chrome
cd /tmp
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt-get -f install
#docker
sudo apt-get update
sudo apt-get install -y \
apt-transport-https \
@jlis
jlis / .gitlab-ci.yml
Created May 15, 2018 13:16
AWS ECS and ECR deployment via Docker and Gitlab CI
image: docker:latest
variables:
REPOSITORY_URL: <AWS ACCOUNT ID>.dkr.ecr.eu-central-1.amazonaws.com/<ECS REPOSITORY NAME>
REGION: eu-central-1
TASK_DEFINTION_NAME: <TASK DEFINITION NAME>
CLUSTER_NAME: <CLUSTER NAME>
SERVICE_NAME: <SERVICE NAME>
services:
@automata
automata / .gitlab-ci.yml
Created June 5, 2018 00:56
Heroku Docker Container Release from GitLab CI (without Heroku CLI)
image: docker:latest
# Remember to set required vars as secret vars on GitLab CI settings
variables:
DOCKER_DRIVER: overlay
CONTAINER_TEST_IMAGE: ${CI_REGISTRY}/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}:${CI_COMMIT_REF_NAME}_${CI_COMMIT_SHA}_test
CONTAINER_DEPLOY_IMAGE: ${HEROKU_REGISTRY}/${CI_PROJECT_NAME}/web
HEROKU_API_KEY: ${HEROKU_AUTH_TOKEN}
services:
@mzaidannas
mzaidannas / Simple Docker Setup with Rails+Nginx+Redis+Postgres.md
Last active December 22, 2024 15:47
Simple Docker Setup with Rails+Nginx+Redis+Postgres.md

Typical rails setup with docker+puma+nginx+postgres

Zaid Annas

Devsinc inc. 30/08/2018

Overview

@rabssm
rabssm / ffmpegtips.txt
Last active March 2, 2025 09:37
ffmpeg tips
# Interpolate video frames for a higher frame rate
ffmpeg -i source.mp4 -filter:v minterpolate -r 25 result.mp4
ffmpeg -i source.mp4 -vf minterpolate=50,tblend=all_mode=average,framestep=2 result.mp4
# Change the framerate (to 5 fps) of an input h264 raw video and convert to mkv
ffmpeg -r 5 -i input.h264 -vcodec copy output.mkv
# Crop a video to the bottom right quarter
ffmpeg -i in.mp4 -filter:v "crop=in_w/2:in_h/2:in_w/2:in_h/2" -c:a copy out.mp4
@Tapchicoma
Tapchicoma / DownloadDependenciesTask.kt
Last active May 1, 2020 15:19
Download all Gradle project dependecies
import org.gradle.api.DefaultTask
import org.gradle.api.artifacts.Configuration
import org.gradle.api.attributes.Attribute
import org.gradle.api.model.ObjectFactory
import org.gradle.api.tasks.*
import org.gradle.kotlin.dsl.setProperty
import java.io.File
import javax.inject.Inject
/**
@thefranke
thefranke / RSS.md
Last active January 14, 2026 17:55
A list of RSS endpoints, readers and resources

The RSS Endpoint List

Please refer to this blogpost to get an overview.

Replace *-INSTANCE with one of the public instances listed in the scrapers section. Replace CAPITALIZED words with their corresponding identifiers on the website.

Social Media

Twitter

@Quipyowert2
Quipyowert2 / FOSS Alternatives to Adobe's Premiere Pro.md
Created April 28, 2019 01:18
FOSS Alternatives to Adobe's Premiere Pro

Open Source Video Editors:

  1. Blender - I'm not sure if this one counts since it is more of a CAD program than a video editor.

  2. Avidemux:

Avidemux is a free video editor designed for simple cutting, filtering and encoding tasks. It supports many file types, including AVI, DVD compatible MPEG files, MP4 and ASF, using a variety of codecs. Tasks can be automated using projects, job queue and powerful scripting.

  1. OpenShot:
//Abstração
class TestLiveData<T, Q> : TestLiveDataI<T, Q> {
val success = MutableLiveData<T>()
val loading = MutableLiveData<Boolean>()
val error = Event<Q>()
override fun successLiveData(): LiveData<T> = success
override fun loadingLiveData(): LiveData<Boolean> = loading
override fun errorLiveData(): LiveData<Q> = error