Skip to content

Instantly share code, notes, and snippets.

View ubuntupunk's full-sized avatar
:octocat:
making coffee

DavDev Yes ubuntupunk

:octocat:
making coffee
View GitHub Profile
@ddd1600
ddd1600 / yahoo_finance.rb
Created September 26, 2012 02:17
My repurposed yahoo-finance gem -- dumped it straight in my rails lib folder
require 'open-uri'
require 'csv'
class YahooFinance
# VERSION = '0.1.0'
COLUMNS = {
:ask => "a",
:average_daily_volume => "a2",
@0mark
0mark / dmount
Last active October 13, 2021 15:18
Mount/unmount with dmenu
#!/bin/bash
##### CONFIG
DEVS=( "sd" "mmcblk" )
BLOCK=( "sda" )
#### DO NOT TOUCH
c=0
@OlofFredriksson
OlofFredriksson / spop-pi.sh
Last active December 25, 2024 07:48
Install Spop on Raspberry Pi
# Made by Olof Fredriksson
# http://olof.nu
# https://github.com/oloffredriksson
# Tested on Raspberry Pi with Raspbian OS. Will probably work on Ubuntu and other Debian based systems, just make sure you install correct libspotify for your process architecture.
# Big thanks to Thomas Jost for creating Spop and uploading the project to Github (https://github.com/Schnouki/spop)
#Thanks to Björn Andersson (https://github.com/bjornandersson) for testing, reviewing and contributing to this guide.
# Changelog
# 1.0 2013-08-28 : First public release
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@venkateshshukla
venkateshshukla / AndroidDevLinux
Last active September 19, 2023 04:20
Setting up your Linux for Android Application Development
Step 1. Preparation
--------------------
First take care of the dependencies for Android Application Development.
Dependencies are -
1. Java
2. ant
3. Eclipse and Android Development tools (IDE)
4. Android SDK and NDK
5. adb
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
@sevko
sevko / README.md
Last active December 27, 2024 09:19
Compile a full-featured Vim (w/ Python, Ruby, etc.).

compile full Vim

The default Vim installed on most Linux distros lacks a number of vital features, like xterm_clipboard (allows copy-and-pasting to the system clipboard) and python (on which certain plugins rely). The compile_full_vim.sh shell script removes the currently installed Vim and compiles a full-featured version; it's based entirely off Valloric's YouCompleteMe walkthrough, which it bundles into a simple script for convenience. Vim will be compiled with the following feature flags:

  • --with-features=huge
  • --enable-multibyte
anonymous
anonymous / 01.configure
Created November 2, 2015 11:29
2015-11-02 06:04:16 -0500
./configure
--prefix=/usr/local/Cellar/nginx-full/1.8.0_2
--with-http_ssl_module
--with-pcre
--with-ipv6
--sbin-path=/usr/local/Cellar/nginx-full/1.8.0_2/bin/nginx
--with-cc-opt=-I/usr/local/include -I/usr/local/Cellar/pcre/8.37/include -I/usr/local/Cellar/openssl/1.0.2d_1/include
--with-ld-opt=-L/usr/local/lib -L/usr/local/Cellar/pcre/8.37/lib -L/usr/local/Cellar/openssl/1.0.2d_1/lib
@mikew
mikew / plug_disable.md
Created March 8, 2016 21:24
A way to disable a plugin in vim-plug

plug_disable.vim

If your vim distribution uses vim-plug and includes plugins you don't want, or if you want to simply maintain a single set of plugins but disable some on certain machines, this may be for you.

Source

let g:plugs_disabled = []
function! plug_disable#commit()
 for name in g:plugs_disabled
from: http://blog.anhangzhu.com/2016/05/03/easy-rails-deployment-with-rsync/
First, have an rsync_exclude file:
// my-rails-app/.rsync_exclude
.bundle
tmp
log
Run in localhost:
$ bundle exec rake assets:precompile