These packages are obsolete! Please use the official packages from http://www.Graylog2.org
=================================================
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from lxml import etree | |
from StringIO import StringIO | |
import time | |
import os | |
import urllib | |
PINBOARD_USER = "username" |
# Set up ssh-agent | |
SSH_ENV="$HOME/.ssh/environment" | |
function start_agent { | |
echo "Initializing new SSH agent..." | |
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}" | |
echo succeeded | |
chmod 600 "${SSH_ENV}" | |
. "${SSH_ENV}" > /dev/null | |
/usr/bin/ssh-add; |
# establishes a cron entry that runs the puppet agent every 30 minutes, starting | |
# at a time that is derived from the primary ip-address | |
# largely based on http://projects.puppetlabs.com/projects/1/wiki/Cron_Patterns | |
$timeoffset1 = ip_to_cron(1,29) | |
$timeoffset2 = $timeoffset1 + 30 | |
cron { "puppet": | |
ensure => present, | |
command => "puppet agent --onetime --no-daemonize --environment ${environment} --fqdn ${hostname}.${dnsdomain} --logdest syslog > /dev/null 2>&1", | |
user => "root", | |
minute => [ $timeoffset1, $timeoffset2 ], |
/* This is a wrapper library that will give your server the power of | |
* /dev/null as a service, as seen at http://devnull-as-a-service.com/ | |
* | |
* Compile: | |
* gcc -ggdb -shared -fPIC dnaas.c -ldl -lcurl -o libdnaas.so | |
* | |
* Try: | |
* LD_PRELOAD=./libdnaas.so dd if=/dev/sda of=/dev/null bs=8192 count=16 | |
* | |
* Install: |
These packages are obsolete! Please use the official packages from http://www.Graylog2.org
=================================================
#!/bin/bash | |
getPrim() { | |
local range="$1" | |
local prim=$(getRandom $range) | |
until [[ $prim -gt 1 ]] && isPrim $prim;do | |
prim=$(getRandom $range) | |
done | |
echo $prim | |
return 0 |
// Paste these lines into website's console (Win/Linux: Ctrl + Shift + I / Mac: Cmd + Alt + I) | |
if(!!window.React || | |
!!document.querySelector('[data-reactroot], [data-reactid]') || | |
Array.from(document.querySelectorAll('*')).some(e => e._reactRootContainer !== undefined || Object.keys(e).some(k => k.startsWith('__reactContainer'))) | |
) | |
console.log('React.js'); | |
if(!!document.querySelector('script[id=__NEXT_DATA__]')) | |
console.log('Next.js'); |
#!/bin/sh | |
get_installed_version() { | |
cmd=$1 | |
case $cmd in | |
"fish") | |
fish --version | cut -d" " -f3- | |
;; | |
"lsd") | |
lsd --version | cut -d" " -f2- |