Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
It's Complicated

Dmitry Sabanin dsabanin

💭
It's Complicated
View GitHub Profile
@dsabanin
dsabanin / enable-xcode-debug-menu.sh
Last active May 12, 2021
Enable internal Xcode debug menu in Xcode 11
View enable-xcode-debug-menu.sh
defaults write com.apple.dt.Xcode ShowDVTDebugMenu -bool YES
sudo mkdir -p /Applications/Xcode.app/Contents/Developer/AppleInternal/Library/Xcode
sudo touch /Applications/Xcode.app/Contents/Developer/AppleInternal/Library/Xcode/AppleInternal.plist
# Don't forget to restart Xcode
@judepereira
judepereira / idea.vmoptions
Created Jun 15, 2018
IntelliJ on steroids with G1 GC
View idea.vmoptions
-Xmx2048m
-Xss256k
-XX:+UseG1GC
-XX:InitiatingHeapOccupancyPercent=65
-XX:G1HeapRegionSize=2
-XX:MaxGCPauseMillis=100
@yellowflash
yellowflash / RegExp.scala
Last active Sep 1, 2018
Regex Engine which runs in `O(mn)` Glushkov automaton
View RegExp.scala
sealed trait RegExp {
def isFinal:Boolean
def acceptsEmpty:Boolean
def shift(prev:Boolean, character:Char):RegExp
def matches(str:String) =
if(str.isEmpty) this.acceptsEmpty
else str.foldLeft(this.shift(true, str.head))(_.shift(false,_)).isFinal
}
object Epsilon extends RegExp {
@rtaibah
rtaibah / gist:0922731c452c6d1ab682
Last active Oct 10, 2017
Linux Mint 17 + Xmonad on Macbook Pro Retina 15
View gist:0922731c452c6d1ab682

Base installations

sudo apt-get install blueman build-essentials calcurse chromium-browser cpufrequtils gnupg2 gparted hfsprogs imagemagick linux-tools-common lxappearance mplayer rtorrent ruby skype ubuntu-restricted-essentials urlview vagrant vim xclip

System Configurations

Lastpass

@schwuk
schwuk / plexmediaserver
Created Aug 29, 2013
UFW Application Profile for Plex Media Server
View plexmediaserver
[plexmediaserver]
title=Plex Media Server
description=The Plex Media Server is smart software that makes playing Movies, TV Shows and other media on your computer simple
ports=32400/tcp|1900/udp|32469/udp|5353/udp