Skip to content

Instantly share code, notes, and snippets.

View denisinla's full-sized avatar
👋

denisinla

👋
View GitHub Profile
@denisinla
denisinla / d3-charts.html
Last active August 29, 2015 14:04
Messing with D3.
<!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 / mysql-install.sh
Created July 24, 2014 08:01
MySQL install on ubuntu instance.
$ sudo apt-get install libmysqld-dev libmysqlclient-dev mysql-client mysql-server
@denisinla
denisinla / Preferences.sublime-settings
Last active August 29, 2015 14:04
SublimeText3: My Latest Preferences.
{
"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,
$ 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 / shutdown-vagrant
Created July 18, 2014 10:04
Forgot shutdown Vagrant
$ ps ax | grep vboxheadless
@denisinla
denisinla / git-path-windows.md
Created October 3, 2013 19:23
Adding git to Windows 7 PATH

Adding Git to Windows 7 Path

Note: You must have msysgit installed on your machine. Also, the path to my git install is “C:\Program Files (x86)\Git” yours might be different. Please check were yours is before continuing.

  • Open Windows Environment Variables/Path Window
  • Right-Click on My Computer
  • Click Advanced System Settings link from the left side column
  • Click Environment Variables in the bottom of the window
  • Then under System Variables look for the path variable and click edit Add the pwd to git’s bin and cmd at the end of the string like this:
@denisinla
denisinla / pretty-git-logs.txt
Created July 19, 2013 19:01
Pretty Git logs
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
@denisinla
denisinla / bluetooth-commandline.md
Last active December 17, 2015 23:19
Ever leave your bluetooth mouse in the conference room a few feet away but you're not allowed to get back in there due to important meetings ? Well follow the snippet below and get command-line access to your bluetooth settings. Enjoy.

Install blueutil via brew(package manager for OSX - http://mxcl.github.io/homebrew/)


$ brew install blueutil # install it

$ blueutil power 0 # turn bluetooth off

@denisinla
denisinla / deployment.md
Last active December 15, 2015 22:29
Deploying a bare git repository on an Ubuntu EC2 instance.

Git deploy setup:

copy your public key to your ec2 instance:

cat ~/.ssh/id_rsa.pub | ssh -i ~/.ssh/your_pemfile.pem ubuntu@your_ip_addr "cat>> .ssh/authorized_keys"

on remote server: create bare git directory

@denisinla
denisinla / dropbox-setup.markdown
Created December 16, 2012 23:11
Setup Dropbox on Fedora 17.

Configure Dropbox Repository
Create a file called dropbox.repo inside of /etc/yum.repos.d

$ cd /etc/yum.repos.d
$ sudo vim dropbox.repo

Paste the following:

``[Dropbox] name=Dropbox Repository