Skip to content

Instantly share code, notes, and snippets.


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:
"name": "always-show-rolls",
"description": "Show rolls",
"title": "Always Show Rolls",
"version": "1.0.0",
"minimumCoreVersion": "0.4.5",
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<YOUR ACCOUNT>/<YOUR REPOS>.git
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
$ 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 /
Created Dec 19, 2019 — forked from mill1000/
Headless A2DP Audio Streaming on Raspbian Stretch


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.


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


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'
container_name: my_app
restart: "no"
context: .
- ./config/my_app.env
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 / 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 / .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
# Restart Bluetooth Module on Mac OS X
# Requires Blueutil to be installed:
log() {
echo "$@"