Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:

denisinla

:octocat:
View GitHub Profile
@denisinla
denisinla / shutdown-vagrant
Created Jul 18, 2014
Forgot shutdown Vagrant
View shutdown-vagrant
$ ps ax | grep vboxheadless
View self-signed-ssl.sh
$ openssl genrsa -out key.pem
$ openssl req -new -key key.pem -out csr.pem
$ openssl x509 -req -days 9999 -in csr.pem -signkey key.pem -out cert.pem
$ rm csr.pem
@denisinla
denisinla / Preferences.sublime-settings
Last active Aug 29, 2015
SublimeText3: My Latest Preferences.
View Preferences.sublime-settings
{
"color_scheme": "Packages/Theme - Glacier/glacier.tmTheme",
"detect_indentation": false,
"font_size": 12,
"ignored_packages":
[
"Vintage"
],
"open_files_in_new_window": true,
"soda_classic_tabs": false,
@denisinla
denisinla / mysql-install.sh
Created Jul 24, 2014
MySQL install on ubuntu instance.
View mysql-install.sh
$ sudo apt-get install libmysqld-dev libmysqlclient-dev mysql-client mysql-server
@denisinla
denisinla / d3-charts.html
Last active Aug 29, 2015
Messing with D3.
View d3-charts.html
<!DOCTYPE html>
<html>
<head>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<meta charset="utf-8">
<title>Messing with D3</title>
</head>
<body>
<h3>D3 Bar Charts</h3>
@denisinla
denisinla / Preferences.sublime-settings
Last active Aug 29, 2015
February2015 Preferences for ST3
View Preferences.sublime-settings
{
"theme": "Glacier.sublime-theme",
"color_scheme": "Packages/Theme - Glacier/glacier.tmTheme",
"color_inactive_tabs": true,
"detect_indentation": false,
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
View mapbox-require.js
require.config({
paths: {
"jquery": "//ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min",
"fitText": "/js/vendor/jquery.fittext",
"fitVids": "/js/vendor/jquery.fitvids",
"mapbox": "//api.tiles.mapbox.com/mapbox.js/v1.6.1/mapbox"
}
});
require(['mapbox'], function() {
@denisinla
denisinla / index.html
Created Aug 17, 2014
Decoupling jquery custom events. // source http://jsbin.com/wacut/5
View index.html
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<meta charset="utf-8">
<title>Decoupling jquery custom events.</title>
<style id="jsbin-css">
body{
font: 13px "Helvetica",Arial,sans-serif;
color: #333
View install-pathogen.md

Backup VIM

mv ~/.vimrc ~/.vimrc.bak
mv ~/.vim/ ~/.vimbak/

Create new VIM directory