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
//Usually this variable will get passed through method parameters | |
$emailSendTo = "costumer@t-online.de"; | |
//In this example: ConfirmTemplate. Works this way with every template. | |
$template = new ConfirmTemplate("We need your confirmation!", | |
"Your password was changed", | |
"Hello,<br/>your password was recently changed. Please confirm this action by clicking the confirmation<br/>button below. Thank you!", | |
"https://google.com/", | |
"https://nani-games.net", | |
"Please confirm your action here: https://google.com or cancel here: https://nani-games.net"); |
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
<?php | |
/** | |
* Class Database | |
* | |
* @author Ceytec <david@nani-games.net> | |
*/ | |
class Database { | |
private $dbHost = DB_HOST; | |
private $dbUser = DB_USER; | |
private $dbPass = DB_PASS; |
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 Example Plugin | |
| @description /ping - Command name is defined by filename | |
| @author David Dewes <hello@david-dewes.de> | |
*/ | |
/* Add a little description for your command /ping */ | |
module.exports.description = "A command to join the Guest group"; | |
/* If you want to have a channel restriction for this command uncomment & replace id */ |
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": "8clicks", | |
"version": "0.0.1", | |
"description": "8clicks", | |
"main": "start.js", | |
"scripts": { | |
"start": "nodemon start.js" | |
}, | |
"nodemonConfig": { | |
"ignore": [ |
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
import csv | |
# CSV FILE | |
file_name = "hodgepodge_tcp.csv" | |
# FUNCTION TO PARSE CSV FILE | |
def parseCSV(file): | |
arr = [] | |
with open(file, newline='') as csvf: | |
rd = csv.reader(csvf, delimiter=',') |
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
<!-- Paste this into your <footer> section! --> | |
<!-- This snippet uses standard container 'visitor-count' --> | |
<!-- Begin Visitor Count --> | |
<script id="vc-src" src="https://dev.nani-games.net/scripts/ajax.min.js"></script> | |
<script id="ajax-src" src="https://dev.nani-games.net/scripts/visitor.min.js"></script> | |
<script type="text/javascript"> | |
let c = new VisitorCounter('exact_loc', function(data) { console.log(data); }, false); | |
c.useContainer();c.make(); | |
</script> |
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
// Constant variables | |
const NO_CONTAINER_FOUND = "No container was found. Please create one and try again."; | |
const NO_LOCATION_DEFINED = "No location definition was found. You can use 'exact_loc' or 'host_only'."; | |
const NO_CALLBACK_DEFINED = "No callback function was defined."; | |
const LOCATION_EXACT = "exact_loc"; | |
const LOCATION_HOST = "host_only"; | |
// Settings | |
var configuration = { | |
'API_URL': "TRACKING_API_ROUTE", |
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
const font_rules = { | |
allowedExtensions: ".woff,.ttf,.woff2,.otf,.fnt", | |
path: '/fonts/extra', | |
route: '/fonts/list' | |
} | |
/** | |
* Dynamic font loader library | |
*/ | |
class DynamicFontLoader { |
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
// Requirements: | |
// - request | |
// - jsdom | |
const request = require('request'); | |
const jsdom = require("jsdom"); | |
const { JSDOM } = jsdom; | |
/** | |
* Ensure correctness of public ipv4 by using external ip resolver |
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 | |
echo "<YOUR_PASSWORD>" | sudo openconnect -u <YOUR_USERNAME> --passwd-on-stdin asa2.uni-saarland.de |
OlderNewer