Skip to content

Instantly share code, notes, and snippets.

View JamyDev's full-sized avatar

Jamy Timmermans JamyDev

View GitHub Profile
@JamyDev
JamyDev / addon.js
Created December 27, 2012 13:27
jugglingdb-mongodb issue
module.exports = function (compound) {
compound.models.Servertype.all(function (err, servertypes) {
compound.routeMapper.namespace('scpad', function (scpad) {
servertypes.forEach(function (servertype) {
console.log(servertype);
compound.models.Addon.all({where: {servertype: servertype.id}}, function (err, addons) {
console.log(addons);
@JamyDev
JamyDev / keybase.md
Created September 23, 2014 16:23
keybase.md

Keybase proof

I hereby claim:

  • I am JamyDev on github.
  • I am jamydev (https://keybase.io/jamydev) on keybase.
  • I have a public key whose fingerprint is 157F FC3E 23B6 850F D807 0A12 5793 2B02 026F 638D

To claim this, I am signing this object:

@JamyDev
JamyDev / index.js
Created January 8, 2015 00:55
Beam.pro chatbot (Chuck Norris)
// YOU NEED NODE.JS TO RUN THIS
// Please run the following command first: npm install ws readline request tough-cookie
// Then run the program with: node filename.js
var WebSocket = require('ws');
var readline = require('readline');
var request = require('request');
// Various options
var options = {
@JamyDev
JamyDev / README.md
Last active August 29, 2015 14:16
Sails sockets stuff?

Installation

put stuff in same folder

npm install socket.io-client@0.9 bluebird

then run siotest.js

Should first error and then connect

@JamyDev
JamyDev / client.js
Created July 13, 2015 10:46
Example ws Beam client
var ws = require("ws");
var sock = new ws("wss://beam.pro/socket.io/?__sails_io_sdk_version=0.11.0&__sails_io_sdk_platform=node&__sails_io_sdk_language=javascript&EIO=3&transport=websocket", {
headers: {
'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.81 Safari/537.36'
}
});
sock.on("open", function() {
setInterval(function() {
@JamyDev
JamyDev / gist:e7fb8a54a8ec9d428f910e5ae2ba1020
Created February 27, 2024 16:34
vscode-remote-log-after-sleep
[07:24:19.570] Log Level: 2
[07:24:19.576] VS Code version: 1.86.2
[07:24:19.576] Remote-SSH version: remote-ssh@0.108.0
[07:24:19.576] darwin arm64
[07:24:19.577] SSH Resolver called for "ssh-remote+my-secret-host.example.com", attempt 1
[07:24:19.577] "remote.SSH.useLocalServer": true
[07:24:19.577] "remote.SSH.useExecServer": false
[07:24:19.578] "remote.SSH.path": undefined
[07:24:19.578] "remote.SSH.configFile": undefined
[07:24:19.578] "remote.SSH.useFlock": true