Skip to content

Instantly share code, notes, and snippets.

ConnorWGarvey

Block or report user

Report or block ConnorWGarvey

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ConnorWGarvey
ConnorWGarvey / indented-list-item.md
Last active May 16, 2019
Indented list line break example
View indented-list-item.md

Line breaks using backslashes

* List item
    * Indented list item 1\
      item 1 line two\
      item 1 line three
    * Indented list item 2
@ConnorWGarvey
ConnorWGarvey / download
Last active Apr 26, 2018
Flickr Downloader
View download
#!/usr/bin/env ruby
require 'fileutils'
require 'flickraw'
require 'open-uri'
require 'set'
require 'zaru'
def download_page(destination_dir:, page:)
count = 0
@ConnorWGarvey
ConnorWGarvey / headphones
Last active Aug 2, 2018
Every new version of BlueMan or PulseAudio on Ubuntu breaks my Bluetooth headphones in new ways. Lately, I have to connect, set the profile to "off", set the profile to "headset", disconnect, reconnect, set the profile to "high fidelity audio". Here's a script that does all of that. Put it on your path and run "headphones" any time you want to l…
View headphones
#!/usr/bin/env ruby
# Requires these libraries
#
# $ gem install colorize, open4
require 'colorize'
require 'io/console'
require 'open3'
require 'open4'
View hubot-irc-commands.coffee
# Description:
# Anyone can have voice or op
#
# Commands:
# hubot make me an op
# hubot make <name> an op
# hubot give me voice
# hubot give <name> voice
module.exports = (robot) ->
@ConnorWGarvey
ConnorWGarvey / StaxRip log
Created Jan 6, 2013
It seems like only for large files, something fails and the video is sent through FFVideoSource instead of DGSource. I noticed that in the avs file, an mkv was passed in, but it seems like DGSource wants the dgi.
View StaxRip log
------------------------------------------------------------
Environment
------------------------------------------------------------
StaxRip version: 1.1.8.0
OS Name : Windows 8 Pro
OS Version : 6.2.9200.0
OS Type : 64-bit
OS Culture : English (United States)
@ConnorWGarvey
ConnorWGarvey / mapvaluetiming
Created Jul 6, 2012
When are map values evaluated in Groovy?
View mapvaluetiming
#! /usr/bin/env groovy
def i = 1
def map = [value:i]
i = i + 1
println map
@ConnorWGarvey
ConnorWGarvey / pomdepstogradle.groovy
Created Apr 2, 2012
Convert pom dependencies to Gradle
View pomdepstogradle.groovy
#! /usr/bin/env groovy
def project = new XmlSlurper().parse(new File('pom.xml'))
def versionNodes = project.properties.children().findAll { it.name().endsWith('.version') }
def versions = [:]
for (versionNode in versionNodes) {
versions[versionNode.name()] = versionNode.text()
}
for (dependency in project.dependencies.dependency) {
print " compile('${dependency.groupId.text()}:${dependency.artifactId.text()}:"
You can’t perform that action at this time.