Skip to content

Instantly share code, notes, and snippets.

Install Wine From PPA

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install wine1.7 winetricks

Download Photoshop Installer

SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0e79", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0502", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0b05", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="413c", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0489", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="091e", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", MODE="0666", GROUP="plugdev"
@dwiash
dwiash / dwimux.sh
Created July 12, 2014 09:43
Tmux powered top-down terminal (in xfce)
#!/bin/bash
# use this following line in the keyboard shortcut entry:
# xfce4-terminal --drop-down --command=/path/to/dwimux.sh
tm=$(tmux list-session)
if [ "$tm" ]; then
tmux a
else
@dwiash
dwiash / README.md
Created December 30, 2013 09:35 — forked from kerryrodden/.block

This example shows how it is possible to use a D3 sunburst visualization (partition layout) with data that describes sequences of events.

A good use case is to summarize navigation paths through a web site, as in the sample synthetic data file (visit_sequences.csv). The visualization makes it easy to understand visits that start directly on a product page (e.g. after landing there from a search engine), compared to visits where users arrive on the site's home page and navigate from there. Where a funnel lets you understand a single pre-selected path, this allows you to see all possible paths.

Features:

  • works with data that is in a CSV format (you don't need to pre-generate a hierarchical JSON file, unless your data file is very large)
  • interactive breadcrumb trail helps to emphasize the sequence, so that it is easy for a first-time user to understand what they are seeing
  • percentages are shown explicitly, to help overcome the distortion of the data that occurs wh
@dwiash
dwiash / gist:8178856
Last active January 1, 2016 17:39
total earning in envato marketplace items
(function (unsafeWindow) {
// ==UserScript==
// @name total earning in envato marketplace items
// @creator dwiash
// @include http://codecanyon.net/*
// @include http://activeden.net/*
// @include http://audiojungle.net/*
// @include http://themeforest.net/*
// @include http://videohive.net/*
// @include http://graphicriver.net/*
[Dialer Defaults]
Init = ATZ
Init = ATQ0 V1 E1 S0=0 &C1; &D2; +FCLASS=0
Modem Type = USB Modem
Baud = 921600
Modem = /dev/ttyUSB0
Phone = #777
Username = smart
Password = smart
New PPPD = yes
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = Analog Modem
ISDN = 0
Phone = #777
New PPPD = yes
Modem = /dev/ttyUSB0
Username = smart
@dwiash
dwiash / gist:6404554
Created September 1, 2013 13:43
Smartfren CE81B Modem
# put this following lines into /etc/udev/rules.d/haier-port-blacklist.rules
ACTION!="add|change", GOTO="mm_haier_port_types_end"
SUBSYSTEM!="tty", GOTO="mm_haier_port_types_end"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="201e", GOTO="mm_haier_vendorcheck"
GOTO="mm_haier_port_types_end"
LABEL="mm_haier_vendorcheck"
SUBSYSTEMS=="usb", ATTRS{bInterfaceNumber}=="?*",
@dwiash
dwiash / f.php
Created May 24, 2013 03:02
Add a custom tab to woocommerce product page
<?php
add_filter('woocommerce_product_tabs', 'lame_custom_product_tab_filter', 123);
function lame_custom_product_tab_filter($args){
$args[] = array(
'title' => 'Custom tab',
'priority' => 999,
'callback' => 'lame_custom_product_tab'
);
@dwiash
dwiash / envato-item-earning.user.js
Created November 21, 2012 03:43
Display total earning in every envato marketplace item page
// ==UserScript==
// @name Display total earning in every envato marketplace item page
// @include http://codecanyon.net/*
// @include http://activeden.net/*
// @include http://audiojungle.net/*
// @include http://themeforest.net/*
// @include http://videohive.net/*
// @include http://graphicriver.net/*
// @include http://3docean.net/*
// @include http://marketplace.tutsplus.com/*