Skip to content

Instantly share code, notes, and snippets.

View MuhsinFatih's full-sized avatar
💭
Spaces are dead, and we have killed them, - tabs

Muhsin Fatih Yorulmaz MuhsinFatih

💭
Spaces are dead, and we have killed them, - tabs
  • Rabbit Inc
  • Los Angeles
View GitHub Profile
@MuhsinFatih
MuhsinFatih / fix-macos-python.md
Last active November 19, 2024 23:05
How to recover from messed up python installation on mac, and never have to mess with apple's shitty python confusion factory

I am assuming you are here because like me, you installed a bazillion different python interpreters on mac and the whole thing is a spagetti. Today, I finally fixed my python installation. Whatever I install for python2 or python3 using pip JUST.WORKS.. My god! finally.

What the hell?

Here is what I had messed up, which you also probably did:

  • I had too many different python interpreters
  • Too many different symlinks which I lost track of
  • almost no package I installed with pip worked without a headache
  • any attempt to fix using online resources made it worse.
@MuhsinFatih
MuhsinFatih / amazonPAAPI.js
Created March 8, 2018 01:54
Example using the amazon PAAPI to retrieve itemsearch results with node.js
var fs = require('fs')
var colors = require('colors')
var moment = require('moment')
var sortKeys = require('sort-keys')
var cryptoJS = require('crypto-js')
var csv
var https = require('https')
var request = require('request')
var parseString = require('xml2js').parseString;
@MuhsinFatih
MuhsinFatih / muhsinfatih.zsh-theme
Last active January 9, 2018 04:47
My custom zsh theme
# Easily readable, pretty, packs the most important information, shows git status, and shows a "wireless" symbol when connected via ssh
BOLD_GREEN="%{$fg_bold[green]%}"
BOLD_YELLOW="%{$fg_bold[yellow]%}"
BOLD_CYAN="%{$fg_bold[cyan]%}"
BOLD_RED="%{$fg_bold[red]%}"
GREEN="%{$fg[green]%}"
YELLOW="%{$fg[yellow]%}"
CYAN="%{$fg[cyan]%}"
RED="%{$fg[red]%}"
@MuhsinFatih
MuhsinFatih / textRenderOptions.c
Last active May 17, 2017 16:48
perfect antialiasing and font options for Visual Studio on high-dpi display
/*
(.c extension doesn't mean anything. This is not a configuration file, you are supposed to apply settings below yourself)
To use these settigns you need the 'text sharp' extension available at:
https://marketplace.visualstudio.com/items?itemName=SergeyVlasov.TextSharp
If this doesn't work for you, I suggest you upgrade to visual studio 2017 (after preview).
After this version and following configuration the text is rendered like the rest of the OS,
with proper thickness and beautiful rendering. imo it is just like xcode now
*/

Keybase proof

I hereby claim:

  • I am muhsinfatih on github.
  • I am muhsinfatih (https://keybase.io/muhsinfatih) on keybase.
  • I have a public key ASDygIUV6dgEgI6FmakEWTnzybYnx4Q7_c6JucyNepV5Two

To claim this, I am signing this object:

<-- I have also created a diff for this against the default csproj file generated when a new application is created.
Here it is: https://www.diffchecker.com/4Hs0Ltle
Note that this also solved the Material UI crash problem for me -->
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{F93EB74C-EEA9-4789-9DAB-5974B229E707}</ProjectGuid>
@MuhsinFatih
MuhsinFatih / private.xml
Last active December 12, 2016 15:15
Karabiner private swap modifier keys on a VM for real. No manual shortcut definitions no nothing else. How-to:
<?xml version="1.0"?>
<root>
<appdef>
<appname>PARALLELS</appname>
<equal>com.parallels.desktop.console</equal>
</appdef>
<item>
<name>Swap Command and Option (Parallels)</name>
<identifier>private.app_parallels_swap_command_and_option</identifier>