This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function SvdSetElementFullHeight(elementId, bpad) { | |
// default | |
bpad = (typeof bpad === "undefined") ? 20 : bpad; | |
var inDesignMode = document.forms[MSOWebPartPageFormName].MSOLayout_InDesignMode.value; | |
if (inDesignMode == "1"){ | |
return; | |
} | |
var e = document.getElementById(elementId); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
*/ | |
class TempTask extends BuildTask { | |
protected $title = 'TempTask'; | |
protected $description = ''; | |
public function run($request) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ErrorActionPreference = "Stop" | |
#region functions - put this in an include and add it to every script | |
function DoTrap() { | |
$script = $_.InvocationInfo.ScriptName | |
$line = $_.InvocationInfo.ScriptLineNumber | |
$_errorDetails = $Error[0] | fl * -force | Out-string | |
if (Submit-BugzScoutReport -Description "TEST: $script:$line" -Extra $_errorDetails) { | |
Write-Host "Error reported." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoEnv | |
#SingleInstance ignore | |
SendMode Input | |
playPauseKey = {Control down}{Alt down}{Home}{Alt up}{Control up} | |
workPeriod := 25 * 60 * 1000 | |
breakPeriod := 5 * 60 * 1000 | |
pomsBeforeLongBreak := 4 | |
Pomodoro: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Sets up an icecast mount point on your own machine --> | |
<icecast> | |
<limits> | |
<sources>2</sources> | |
</limits> | |
<authentication> | |
<source-password>hackme</source-password> | |
<relay-password>hackme</relay-password> | |
<admin-user>admin</admin-user> | |
<admin-password>hackme</admin-password> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set("log.file",false) | |
set("log.stdout",true) | |
source_url = "http://localhost:8000/traktor.ogg" | |
output_host = "example.com" | |
output_port = 8124 | |
output_pass = "mypassword" | |
s = input.http(buffer=4.0,source_url) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Requires jQuery of course. | |
$(document).ready(function() { | |
$('.show-comments').on('click', function(){ | |
var disqus_shortname = 'YOUR-DISQUS-USERNAME'; // Replace this value with *your* username. | |
// ajax request to load the disqus javascript | |
$.ajax({ | |
type: "GET", | |
url: "http://" + disqus_shortname + ".disqus.com/embed.js", | |
dataType: "script", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
#v2.2 | |
from random import choice | |
from datetime import datetime | |
def wlog(answer,now): | |
with open(f"worklog-{now:%Y%m%d}.csv", "a") as f: | |
f.write(f'"{now}","{answer.strip()}"\n') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import errno | |
import feedparser | |
import os | |
import sys | |
t = ''' | |
title: {title} | |
--- | |
pub_date: {pub_date} | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$user = "domain\user"; | |
$pass = "password"; | |
$dn = "OU=..."; | |
$time = microtime(); | |
$time = explode(" ", $time); | |
$time = $time[1] + $time[0]; | |
$start = $time; |