Skip to content

Instantly share code, notes, and snippets.

dodyw / algolia-places-leaflet-mapbox.markdown
Created September 26, 2019 12:46
algolia places + leaflet + mapbox
dodyw /
Created January 29, 2019 08:05 — forked from ZevEisenberg/
Reset all iOS simulators with this one weird trick
osascript -e 'tell application "iOS Simulator" to quit'
osascript -e 'tell application "Simulator" to quit'
xcrun simctl erase all
dodyw /
Created March 1, 2018 17:48 — forked from erichrobinson/
SwitchResX Configuration

#SwitchResX Settings for LG 21:9 UltraWide

SwitchResX is a utility that allows users to override the default resolution settings in OSX. For more information, including download links, vist .

##Disabling System Integrity Protection (SIP)

If you are running OSX 10.11 or higher, SIP must be disabled. To disable SIP do the following:

  • Boot into the recovery partition by pressing CMD + R when starting up your Mac.
  • Once in recovery mode, open a terminal window.
  • Type the command csrutil disable
dodyw / gist:1c012600a30a6dc5d48ea180f701e329
Created December 9, 2017 14:51 — forked from rtrouton/gist:f92f263414aaeb946e54
Install Xcode command line tools on 10.7.x - 10.10.x. Tested on 10.7.5, 10.8.5, 10.9.5 and 10.10.2.
View gist:1c012600a30a6dc5d48ea180f701e329
# Installing the Xcode command line tools on 10.7.x or higher
osx_vers=$(sw_vers -productVersion | awk -F "." '{print $2}')
# Installing the latest Xcode command line tools on 10.9.x or higher
if [[ "$osx_vers" -ge 9 ]]; then
dodyw / ubuntu14.04-command-line-install-android-sdk
Created December 9, 2016 23:11 — forked from wenzhixin/ubuntu14.04-command-line-install-android-sdk
Ubuntu 14.04 command line install android sdk
View ubuntu14.04-command-line-install-android-sdk
# install openjdk
sudo apt-get install openjdk-7-jdk
# download android sdk
tar -xvf android-sdk_r24.2-linux.tgz
cd android-sdk-linux/tools
# install all sdk packages
dodyw /
Created December 7, 2016 00:17 — forked from mustafaturan/
Installs latest ffmpeg on Centos 6
# source:
yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel
mkdir ~/ffmpeg_sources
cd ~/ffmpeg_sources
curl -O
tar xzvf yasm-1.2.0.tar.gz
cd yasm-1.2.0
dodyw / file.html
Created June 19, 2016 14:06
css fix large image on responsive / small devices
View file.html
img {
max-width: 100%;
height: auto;
View file.html
<script src="//"></script>
<script src=""></script>
$(document).ready(function() {
if(typeof YOUTUBE_VIDEO_MARGIN == 'undefined') {
$('iframe').each(function(index,item) {
if($(item).attr('src').match(/(https?:)?\/\/www\.youtube\.com/)) {
var w=$(item).attr('width');
dodyw /
Last active August 29, 2015 14:14
masalah dg redraw lisview / repeating
package com.dwidasa.mpos;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
View mymail.php
* Plugin Name: My Name Email
* Description: Use custom email From Name
* Plugin URI:
* Version: 2015.01.28
* Author: Dody Rachmat Wicaksono
* Author URI:
* License: GPL