Skip to content

Instantly share code, notes, and snippets.

{
"InvasionMultiplier": 1,
"DefaultMaximumSpawns": 5,
"DefaultSpawnRate": 600,
"ServerPort": 7777,
"EnableWhitelist": false,
"InfiniteInvasion": false,
"PvPMode": "normal",
"SpawnProtection": true,
"SpawnProtectionRadius": 10,
{
"config":{
"pattern":"!!",
"welcomeMessage":"Welcome to the JavaScript chat! Please review the [room rules](http://rlemon.github.com/so-chat-javascript-rules/). Please don'task if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.",
"weatherKey":"44db6a862fba0b067b1930da0d769e98"
},
"users":{
"4":true,
"27":true,
"65":true,
@BobVul
BobVul / index.js
Last active June 3, 2016 07:04
requirebin sketch
// Welcome! require() some modules from npm (like you were using browserify)
// and then hit Run Code to run your code on the right side.
// Modules get downloaded from browserify-cdn and bundled in your browser.
window.Buffer = require('buffer').Buffer;
console.log(new Buffer([0, 1, 2]).subarray(0, 0));
console.log(new Buffer([0, 1, 2]).subarray(0, 1));
console.log(new Buffer([0, 1, 2]).subarray(0, 2));
console.log(new Buffer([0, 1, 2]).subarray(0, 3));
@BobVul
BobVul / SEMobileChatEnter.user.js
Created January 28, 2015 05:33
Makes the enter key work properly on mobile chat
// ==UserScript==
// @name SEMobileChatEnter
// @namespace http://vulpin.com/
// @description Makes the enter key work properly on mobile chat
// @match *://chat.stackexchange.com/*
// @match *://chat.stackoverflow.com/*
// @version 1.0.0
// @grant none
// ==/UserScript==
@BobVul
BobVul / listwin.ps1
Last active August 29, 2015 14:03
Powershell list untitled windows' process names (modified version of http://powershell-knowhow.de/powershell/?p=321)
$TypeDef = @"
using System;
using System.Text;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Diagnostics;
namespace Api
{
@BobVul
BobVul / ssl.reg
Created March 24, 2013 14:40
firefox-19.0.2.source\mozilla-release\security\nss\tests\pkcs11\netscape\suites\security\ssl\ssl.reg
This file has been truncated, but you can view the full file.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
[General]
mut=SSL
mutversion=1.0
htmlout=NOW
reporterSpec=NOW
@BobVul
BobVul / iszero-fast.cpp
Last active September 21, 2020 19:07
Check for nonzero data in a stream, quickly and without output. Answers http://superuser.com/q/559772/117590.
#include <cstdio>
#define BUFFER_SIZE 1024
int main() {
FILE* file = stdin;
char buffer[BUFFER_SIZE];
long long bytes_read = 0;
while (bytes_read = fread(buffer, 1, BUFFER_SIZE, file)) {
@BobVul
BobVul / iszero.cpp
Last active October 10, 2023 15:48
Check for nonzero data in a stream. Answers http://superuser.com/q/559772/117590.
#include <cstdio>
#define BUFFER_SIZE 1024
int main() {
FILE* file = stdin;
char buffer[BUFFER_SIZE];
long long bytes_read = 0;
long long progress = 0;
long long nonzero = 0;