Skip to content

Instantly share code, notes, and snippets.

View UmutAlihan's full-sized avatar

Alihan UmutAlihan

  • Istanbul, Turkey
View GitHub Profile
@UmutAlihan
UmutAlihan / osx-for-hackers.sh
Created November 7, 2021 16:34 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
#!/bin/python
#
# Connects to a Wifi network
#
import os
def commandExists(command):
def canExecute(file):
return os.path.isfile(file) and os.access(file, os.X_OK)
@UmutAlihan
UmutAlihan / howto-koel-music
Created October 7, 2020 22:22
This gists are my notes on the journe to solve issues while setting up my music server container
# Source:
- https://github.com/Hyzual/docker-koel
# init:
- docker exec -it <container_name_for_koel> bash
- php artisan koel:init
# fail over https reverse proxy
# error code on clients browser console:
# Mixed Content: The page at 'https://listenalihan.duckdns.org/' was loaded over HTTPS, but requested an insecure favicon 'http://listenalihan.duckdns.org/public/img/icon.png'. This request has been blocked; the content must be served over HTTPS
@UmutAlihan
UmutAlihan / send_email2.py
Created February 4, 2017 16:26 — forked from bryhal/send_email2.py
PYTHON: SMTP Email with HTML and Multiple Attachments
# Found most ofthis at http://ryrobes.com/python/python-snippet-sending-html-email-with-an-attachment-via-google-apps-smtp-or-gmail/
# Adapted to accept a list of files for multiple file attachments
# From other stuff I googled, a little more elegant way of converting html to plain text
# This works in 2.7 and my brain gets it.
######### Setup your stuff here #######################################
attachments = ['test_pdf.pdf', 'test_waiver.pdf']
username = 'joe@gmail.com'