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
'use strict'; | |
/** | |
* Module dependencies. | |
*/ | |
const Hoek = require('hoek'); | |
const Limiter = require('ratelimiter'); | |
const RedisClient = require('../utils/redis'); | |
const ReplyUtil = require('../utils/reply'); |
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 | |
# Bash script to scan IP ranges from a text file with sipvicious. | |
# | |
# Use: ./scanRange.sh | |
# | |
# Copyright (c) Jesús Pérez | |
# Licensed under GPLv3 - http://www.gnu.org/licenses/gpl-3.0.html | |
SVMAP="/home/baguira/Installed/sipvicious/svmap.py" |
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
## | |
# Simple node.js UDP client written in CoffeScript which | |
# connects to an UDP server, sends a message, waits for a | |
# response, prints it and finally closes the connection. | |
# | |
# Copyright (c) Jesús Pérez | |
# Licensed under GPLv3 - http://www.gnu.org/licenses/gpl-3.0.html | |
## | |
dgram = require "dgram" |
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 ruby | |
# | |
# 2012-03-2012 -- jesus.perez _at_ quobis _dot_ com | |
# | |
# Apache Ruby script to interop between FreeSWITCH and Kamailio. | |
# It uses Siremis database schema: | |
# | |
# mysql> use openser; | |
# Database changed | |
# mysql> desc subscriber; |
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
#!KAMAILIO | |
# | |
# Example configuration file for a sipcapture node | |
# | |
####### Global Parameters ######### | |
debug=5 | |
log_stderror=no | |
memdbg=5 |
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
// Get an user Facebook friends. It accepts an ETag parameter to avoid | |
// non-changed ones to be returned again. | |
// https://developers.facebook.com/docs/marketing-api/etags | |
const https = require('https'); | |
// Credentials | |
const app_id = 'X'; | |
const app_secret = 'Y'; |
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/sh | |
# Just another (very) simple "GNU/Linux router" script. | |
# | |
# NOTE: We suposse two interfaces correclty connected and external | |
# interface is connected to Internet/other network at this point. | |
# | |
# Copyright (c) Jesús Pérez | |
# Licensed under GPLv3 - http://www.gnu.org/licenses/gpl-3.0.html | |
# Variables |
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
[package] | |
name = "online" | |
version = "0.2.0" | |
authors = ["Jesús Rubio <jesusprubio@gmail.com>"] | |
edition = "2018" | |
documentation = "https://docs.rs/online" | |
include = ["src/**/*", "Cargo.toml"] | |
description = "📶 Library to check your Internet connectivity" | |
repository = "https://github.com/jesusprubio/online.git" | |
readme = "README.md" |
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
'use strict'; | |
const motivation = require('motivation'); | |
module.exports = async () => { | |
const res = motivation.get(); | |
strapi.log.info(`\n${res.text} (${res.author})\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
'use strict'; | |
const motivation = require('motivation'); | |
/** | |
* StrapiPluginFortune.js controller | |
* | |
* @description: A set of functions called "actions" of the `strapi-plugin-fortune` plugin. | |
*/ |
OlderNewer