Skip to content

Instantly share code, notes, and snippets.

View furkantektas's full-sized avatar

Furkan Tektas furkantektas

View GitHub Profile
@furkantektas
furkantektas / hosts
Created June 30, 2017 17:29
Adblock /etc/hosts file
#adaway adblock
127.0.0.1 wateristian.com
127.0.0.1 logv31.xiti.com
127.0.0.1 ad319m.adk2.co
127.0.0.1 ads.doktoronline.no
127.0.0.1 www.leadgenetwork.com
127.0.0.1 ads.v-links.net
127.0.0.1 ycv.clearshieldredirect.com
127.0.0.1 ssdc.icelandair.com
@furkantektas
furkantektas / readme.md
Last active July 6, 2017 20:45
Aruco on OSX Yosemite (python3 and OpenCV 3.2.0)

Assuming you're using brew

  brew install eigen swig numpy
  brew install opencv3 --with-contrib --with-python3 --without-python 
  git clone https://github.com/fehlfarbe/python-aruco.git
  cp swigbuild.sh swigbuild.sh.org
  cp setup.py setup.py.org
@furkantektas
furkantektas / bng2en.py
Created March 11, 2022 22:37
Convert British National Grid References to Easting and Northing coordinates.
#!/usr/bin/env python3
"""
Convert British National Grid References to Easting and Northing coordinates.
Prints the Easting and Northing coordinates of the provided grid reference. Prints south
west point coordinates of reference box by default. You can specify the point of the box
to print by passing the point as the second argument. Accepted values are: "SW", "NW",
"NE", "SE", "MID", "SWNE".
@furkantektas
furkantektas / main.dart
Created June 25, 2023 01:39
Flutter Material 3 full screen dialog
import 'package:flutter/material.dart';
const Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@furkantektas
furkantektas / dark-arc-boost.css
Created February 24, 2025 17:46
Easy dark mode boost on Arc browser - on basic html web pages too :)
@media (prefers-color-scheme: dark) {
/* revert everything then adjust hue to retain colours */
:root {filter: invert(1) hue-rotate(180deg)}
/* revert back the filter for images. */
/* tweak selections based on site (e.g. remove svg if icons lose readability) */
*[style*="background-image:"], img, svg { filter: invert(1) hue-rotate(180deg) }
}
@furkantektas
furkantektas / index.css
Created August 19, 2025 17:48
Random dice roller for games
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-satura