Skip to content

Instantly share code, notes, and snippets.

🌏
Somewhere between home and Hogwarts School of Witchcraft and Wizardry

Tim Joosten Tjoosten

🌏
Somewhere between home and Hogwarts School of Witchcraft and Wizardry
  • Polar Youth
  • Antwerp, BE
Block or report user

Report or block Tjoosten

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Tjoosten
Tjoosten / portscanner.php
Created Jun 5, 2014
Simple portscanner in PHP
View portscanner.php
<form method="post" >
Domain/IP:
<input type="text" name="domain" />
<input type="submit" value="Scan" />
</form>
<br />
<?php
if(!empty($_POST['domain'])) {
//list of port numbers to scan
View code
<?php
// ______________________
// / \
// | WARNING: |
// | Here will be dragons |
// \___ _________________/
// |/
// (o_
// //\
View regimenten.js
<script type="text/javascript">
function Dropdown(eenheid,regimenten) {
var A.B.L = <?php json_encode($Regimenten_ABL); ?>
switch (eenheid.value) {
case 'A.B.L':
regimenten.options.length = 0;
for (i = 0; i < colours.length; i++) {
createOption(regimenten, A.B.L[i], A.B.L[i]);
}
View gist:1254c03284ab530c6119
<?php
ini_set('display_errors',0);
require_once('Spinternet/Api.php');
//try {
$spinternet = Spinternet_Api::getInstance();
$mm = $spinternet->getMemberManagement('jorisp@spinternet.be','sn1145', 'sn1145tAjgcNFWvMBDR48P9IhncE40uUsD6h', false);
View gist:9f71f1e4225ba3e8daee
// error = Cannot GET /api/Bears
// Error: ER_ACCESS_DENIED_ERROR: Access denied for user 'newuser'@'127.0.0.1' (using password: YES)
// Server.js
// BASE SETUP
// =======================================================================================
// Call the packages we need
var express = require('express'); // call express
View gist:6bd491ada94bb5313849
$file = Input::file('file');
$destinationPath = 'uploads';
// If the uploads fail due to file system, you can try doing public_path().'/uploads'
$filename = str_random(12);
//$filename = $file->getClientOriginalName();
//$extension =$file->getClientOriginalExtension();
$upload_success = Input::file('file')->move($destinationPath, $filename);
if( $upload_success ) {
return Response::json('success', 200);
View gist:11aaff6a663c779e4abf
if($this->Auth) {
$config['allowed_types'] = 'jpg';
$config['upload_path'] = './assets/Fotos';
$this->load->library('upload', $config);
if (!$this->upload->do_upload()) {
$error = array('error' => $this->upload->display_errors());
var_dump($error);
} else {
View gist:8728879e4c25b9521f38
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Welcome extends CI_Controller {
public function index()
{
$this->load->helper('file');
View gist:cf25fbab6add912c77bc
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
require(APPPATH'./includes/Table.php');
class Statistics extends CI_Controller {
function __construct() {
parent::__construct();
// Controller can only be called from the command line.
if(!$this->input->is_cli_request()) show_error('Direct access is not allowed');
// Database Layers
View gist:1d3e387684347962534b
function Columns() {
// Load variables
$Regiment = $this->Regimenten->Regimenten_All();
$Begraafplaats = $this->Begraafplaatsen->Get_all();
$Burgers = $this->Burgers->Doden();
$Correctie = $this->Correcties->Get_all();
$Vrijwilligers = $this->User->Get_users();
$Soldaten = $this->Soldaten->Select();
$query = $$this->db->list_fields('users');
You can’t perform that action at this time.