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
--- | |
- name: Check /etc/elasticsearch/jvm.options exists | |
stat: | |
path: /etc/elasticsearch/jvm.options | |
become: true | |
register: elastic_jvm_options | |
- name: Check /etc/logstash/jvm.options exists | |
stat: | |
path: /etc/logstash/jvm.options |
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
using System.Linq; | |
using EPiServer; | |
using EPiServer.BaseLibrary.Scheduling; | |
using EPiServer.Core; | |
using EPiServer.PlugIn; | |
namespace BlendInteractive.AppCode.Plugins | |
{ | |
[ScheduledPlugIn(DisplayName = "Delete Unpublished Faculty and Staff")] | |
public class DeleteUnpublishedPeople : JobBase |
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
Cryptocurrency Geek Out!: | |
http://www.dotnetrocks.com/?show=950 | |
https://s3.amazonaws.com/dnr/dotnetrocks_0950_cryptocurrency.mp3 | |
Geeking Out on Thorium: | |
http://www.dotnetrocks.com/?show=864 | |
https://s3.amazonaws.com/dnr/dotnetrocks_0864_thorium.mp3 | |
ShowLinks: | |
http://spectrum.ieee.org/static/special-report-water-vs-energy | |
http://singularityhub.com/2012/12/11/norway-begins-four-year-test-of-thorium-nuclear-reactor/ |
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
:: Init Script for cmd.exe | |
:: Sets some nice defaults | |
:: Created as part of cmder project | |
:: Find root dir | |
@if not defined CMDER_ROOT ( | |
for /f %%i in ("%ConEmuDir%\..\..") do @set CMDER_ROOT=%%~fi | |
) | |
:: Change the prompt style |
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
def flipCounter(stack): | |
result = 0 | |
prev = '+' | |
first = True | |
for ch in stack: | |
if ch != prev and not first: | |
result += 1 | |
prev = ch | |
first = False |
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
#!/bin/bash | |
EXT=`date +%H%M%S` | |
DAY=`date +%d` | |
mkdir -p ~/psaux | |
DIR="~/psaux/$DAY" | |
mkdir -p $DIR | |
free -m > $DIR/free.$EXT | |
ps aux > $DIR/ps.$EXT | |
top -n 1 -b > $DIR/top.$EXT | |
iostat -xm -p sda 3 3 > $DIR/iostat.$EXT |
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 ConvertToFormAndSubmit(databag, url, inputName) { | |
var index = 0; | |
var form = document.createElement('form'); | |
form.setAttribute("method", "post"); | |
form.setAttribute("action", url); | |
if (databag instanceof Array) { | |
for (index = 0; index < databag.length; index++) { | |
for (var prop in databag[index]) { |
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
var http = require('http'); | |
var total = 3; | |
var result = new Array(); | |
function decrementAndPrint(element, data){ | |
result[element] = data; | |
total -= 1; | |
if (total == 0){ | |
console.log(result[0]); | |
console.log(result[1]); |
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
var stuff = ''; | |
var query = ''; | |
$($('table')[0]).find('tr').each(function(){ | |
tds = $(this).find('td'); | |
stuff += 'public ' + $(tds[1]).text() + ' ' + $(tds[0]).text() + ' {get; private set;} \n'; | |
query += ', ' + $(tds[0]).text(); | |
}); |
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
private static UInt64 KnuthIt(string input) | |
{ | |
UInt64 hashedValue = 3074457345618258791ul; | |
foreach (char t in input) | |
{ | |
hashedValue += t; | |
hashedValue *= 3074457345618258799ul; | |
} | |
return hashedValue; | |
} |
NewerOlder