Skip to content

Instantly share code, notes, and snippets.


Dāvis davispuh

View GitHub Profile
davispuh / channels.sql
Created Aug 26, 2014
Most active channels
View channels.sql
SELECT count(messageid) as count, buffername as channel
FROM backlog
LEFT JOIN buffer ON buffer.bufferid = backlog.bufferid
WHERE buffername != ''
GROUP BY buffername ORDER BY count DESC
davispuh / steam_console_params.txt
Last active Sep 11, 2020
Steam client parameters, consoles commands and variables
View steam_console_params.txt
-480p - Run tenfoot in 480p rather than 1080p
-720p - Run tenfoot in 720p rather than 1080p
-accountrecovery - Perform account recovery
-all_languages - show longest loc string from any language
-bigpicture - Start in Steam Big Picture mode
-cafeapplaunch - Launch apps in a cyber cafe context
-candidates - Show libjingle candidates for local connection as they are processed
-ccsyntax - Spew details about the localized strings we load
-community - Set the community URL
-complete_install_via_http - Run installation completion over HTTP by default
willurd /
Last active Oct 21, 2020
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
davispuh / array.rb
Last active Dec 15, 2015
Equally distribute several array elements across single array. (Ruby)
View array.rb
#!/usr/bin/env ruby
require 'pp'
a = []
a << [:a, :c, :e]
a << [:b, :f, :g, :h, :i, :j]
a << [:d]
# element coefficients
postmodern /
Last active Sep 18, 2020
Crypto Privacy Copy Pasta
hakre / DomTree.php
Last active Oct 15, 2015
DomTree - Dump DomDocument based documents, suiting debugging needs
View DomTree.php
* DomTree
* Dump DomDocument based documents, suiting debugging needs
* @author hakre <>
* @link
* @link
* @link
luislavena / gist:3251384
Created Aug 3, 2012
Testing Ruby 2.0 on Windows
View gist:3251384

Prepare for Ruby 2.0, today

Ruby 2.0 is around the corner, estimated to be launch February 2013, for its 20th anniversary!

Wouldn't be great to be able to test Ruby 2.0 features and report possible bugs?

Things like Refinements, built-in ANSI coloring for Windows or even better, faster startup

Users of other OS like Linux and OSX already can install upcoming versions of RUby thanks to RVM and rbenv tools, but what about Windows?

You can’t perform that action at this time.