Skip to content

Instantly share code, notes, and snippets.

Avatar

Sinan Midillili sinanm89

View GitHub Profile
View gist:0d34e21bd648fd2ff1273d6f8a7dd4c3
You need to create two files in a new folder - **always-show-rolls** - in your modules folder:
**module.json**
{
"name": "always-show-rolls",
"description": "Show rolls",
"title": "Always Show Rolls",
"version": "1.0.0",
"minimumCoreVersion": "0.4.5",
@sinanm89
sinanm89 / git-clearHistory
Created Aug 26, 2020 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
View git-clearHistory
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git
@sinanm89
sinanm89 / wsl_setup.txt
Created Jun 17, 2020
wsl setup instructions
View wsl_setup.txt
# Turn on developer mode in windows programs and features
# Install Ubuntu 20.04 from the Windows Store
# Install Windows Terminal from the Windows Store
$ sudo apt-get update
# https://github.com/pyenv/pyenv/wiki/common-build-problems
$ sudo apt-get install -y build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev python-openssl git
@sinanm89
sinanm89 / README.md
Created Dec 19, 2019 — forked from mill1000/README.md
Headless A2DP Audio Streaming on Raspbian Stretch
View README.md

About

This gist will show how to setup Raspbian Stretch as a headless Bluetooth A2DP audio sink. This will allow your phone, laptop or other Bluetooth device to play audio wirelessly through a Rasperry Pi.

Motivation

A quick search will turn up a plethora of tutorials on setting up A2DP on the Raspberry Pi. However, I felt this gist was necessary because this solution is:

  • Automatic & Headless - Once setup, the system is entirely automatic. No user iteration is required to pair, connect or start playback. Therefore the Raspberry Pi can be run headless.
  • Simple - This solution has few dependencies, readily available packages and minimal configuration.
  • Up to date - As of December 2017. Written for Raspbian Stretch & Bluez 5.43

Prerequisites

@sinanm89
sinanm89 / workplace questions
Last active Jul 18, 2019
Good questions to ask before starting a job
View workplace questions
are you looking to fill a position or expand your current team
- what was the reason for the last engineers leave?
how diverse is your workplace?
how many engineers do you have thatve worked with the company for more than 4 years?
View docker-compose.yml
# TODO: the ports should be dynamically set from the data_service.env file
version: '3'
services:
my_app_service:
container_name: my_app
restart: "no"
build:
context: .
env_file:
- ./config/my_app.env
View escape.py
import json
# chart v3 has a list of asteroids that are in a non-changable order
# each asteroid has a cycle which changes each turn
# an astroid with an offset 0 is an illegal move
# initial offset value is given
# find the shortest path (in terms of turns) to reach the end.
class Ship(object):
@sinanm89
sinanm89 / no_mans_sky_fix.rst
Last active Aug 14, 2016
No mans Sky fix 14.Aug.2016
View no_mans_sky_fix.rst

How to fix No mans Sky on Windows 10 running Strix970

I originally left this comment on TCB's video but the comments are disabled (oops didnt know, makes sense though).

I couldnt play when I first got the game and I had prepurchased. It actually took me about 3 hours to get the game working because everytime I changed an option to optimize my game I HAD TO RESTART IT. That being said I love the game. It reminds me of the fun I used to have playing MYST and Ultima Online.

Heres How

@sinanm89
sinanm89 / .wakeup
Created Jul 5, 2016 — forked from ralph089/.wakeup
Restarts Bluetooth Module on Mac OS X El Capitan. Use it with SleepWatcher to automatically restart your Bluetooth Module on wakeup.
View .wakeup
#!/bin/bash
#
# Restart Bluetooth Module on Mac OS X
#
# Requires Blueutil to be installed: http://brewformulas.org/blueutil
BT="/usr/local/bin/blueutil"
log() {
echo "$@"