Skip to content

Instantly share code, notes, and snippets.

Dāvis davispuh

Block or report user

Report or block davispuh

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
@davispuh
davispuh / steam_console_params.txt
Last active Nov 14, 2019
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
@postmodern
postmodern / comment.md
Last active Aug 24, 2019
Crypto Privacy Copy Pasta
View comment.md
@davispuh
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
@hakre
hakre / DomTree.php
Last active Oct 15, 2015
DomTree - Dump DomDocument based documents, suiting debugging needs
View DomTree.php
<?php
/**
* DomTree
*
* Dump DomDocument based documents, suiting debugging needs
*
* @author hakre <http://hakre.wordpress.com/>
* @link http://stackoverflow.com/questions/26321597/getting-price-from-amazon-with-xpath/26323824#26323824
* @link http://stackoverflow.com/questions/12108324/how-to-get-a-raw-from-a-domnodelist/12108732#12108732
* @link http://stackoverflow.com/questions/684227/debug-a-domdocument-object-in-php/8631974#8631974
@luislavena
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?

@davispuh
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
LIMIT 30;
You can’t perform that action at this time.