Skip to content

Instantly share code, notes, and snippets.

@unp
unp / .vimrc
Last active August 16, 2017 04:31
" Gotta be first
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
" ----- Making Vim look good ------------------------------------------
autocomplete-clang@0.11.3
build@0.68.0
busy@0.7.0
busy-signal@1.4.3
comment-headers@2.15.0
intentions@1.1.5
language-ini@1.19.0
linter@2.2.0
linter-gcc@0.7.1
linter-ui-default@1.6.5
@unp
unp / fb_profile_extractor.rb
Created January 23, 2019 02:17
Extracts user names and profile URLs from Facebook group members' page
require 'nokogiri'
require 'csv'
doc = File.open("members.htm") do |f|
html = Nokogiri.HTML(f)
CSV.open("users.csv", "w") do |csv|
csv << ['Name', 'Profile Link']
users = html.css('.uiProfileBlockContent').map do |profile_block|
link = profile_block.css('a').first['href'].match(/(https:\/\/www.facebook.com\/.*)\?/)[1]
name = profile_block.css('a').first.text.strip
@unp
unp / bpm_downloader.rb
Created November 14, 2023 00:30
BPMSupreme Downloader
class BPMDownloader
require 'httparty'
require 'byebug'
require 'awesome_print'
require 'io/console'
require 'uri'
include HTTParty
follow_redirects false
def initialize(username, password)