Skip to content

Instantly share code, notes, and snippets.

bind SPACE "+dota_camera_follow; +dota_camera_follow; -dota_camera_follow"
Enter that into the console and space will center with a single tap. It doesn't lock the camera though so I will see if there is a better bind.
edit:
dota_camera_follow_doublepress_time 100
entering this is likely needed to make it work right. Tried some stuff and not sure how to reset it to check if it is strictly necessary.
diff --git a/auth.php b/auth.php
index 33d7279..87c2ee2 100644
--- a/auth.php
+++ b/auth.php
@@ -22,7 +22,7 @@ class auth_plugin_authldap extends DokuWiki_Auth_Plugin {
/* @var array $_pattern User filter pattern */
protected $_pattern = null;
-
+ protected $cache = null;
@XANi
XANi / nortel.rb
Last active July 22, 2020 19:10
class Nortel < Oxidized::Model
# nortel switch config download
prompt /^>>.+\#\s/
comment '/* '
cmd '/info/sys/general' do |c|
comment c
end
cmd '/info/link' do |c|
comment c
end
@XANi
XANi / collectd.clj
Last active October 16, 2019 08:05
riemann collectd derive/counter -> rate
; Expire old events from the index every 5 seconds.
(periodically-expire 600)
(def graph (graphite {:host "127.0.0.1"}))
; Keep events in the index for 5 minutes by default.
(let [index (default :ttl 300 (update-index (index)))]
; Inbound events will be passed to these streams:
(streams
@@ -1191,16 +1191,6 @@ class TimelineExtractor:
).order_by(
models.HistoricalEvent.start_date_days.desc()
).first()
- if capital_event is None or capital_event.planet.planet_id != capital.planet_id:
- self._session.add(models.HistoricalEvent(
- event_type=models.HistoricalEventType.capital_relocation,
- country=country_model,
- leader=ruler,
- start_date_days=self._date_in_days,
![img](http://i.imgur.com/dWMyOyw.gif)
![img](http://i.imgur.com/01Y93sL.gif)
![img](http://i.imgur.com/056er39.gif)
![img](http://i.imgur.com/05Y6pFQ.gif)
![img](http://i.imgur.com/0TJtp5D.gif)
![img](http://i.imgur.com/0YIsVNu.gif)
![img](http://i.imgur.com/0p3PUar.gif)
![img](http://i.imgur.com/0vqExjm.gif)
![img](http://i.imgur.com/13z8S8A.gif)
![img](http://i.imgur.com/18nauQl.gif)
@XANi
XANi / another gist test
Created January 1, 2011 18:04
test of gist
gist test
yada yada
ggist
this is cool
@XANi
XANi / gist:761894
Created January 1, 2011 18:07
dasdsadas
some silly git test
another silly change
yet another silly change
bullshit is here
bullshit
yadatada
class yum::nginx {
file {"/etc/pki/rpm-gpg/RPM-GPG-KEY-nginx":
source => "puppet:///modules/yum/nginx.asc",
ensure => present,
owner => root,
group => root,
mode => 644,
}
exec { "nginx_import":
command => "rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-nginx",
{
"spec_version": "v1.6",
"identifier": "installed-default",
"version": "2015.06.03.08.49.56",
"license": "unknown",
"name": "installed-default",
"abstract": "A list of modules installed on the default KSP instance",
"kind": "metapackage",
"depends": [
{