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
#define _XOPEN_SOURCE 500 /* Enable certain library functions (strdup) on linux. See feature_test_macros(7) */ | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <limits.h> | |
#include <string.h> | |
struct entry_s { | |
char *key; | |
char *value; |
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
#include <math.h> | |
#include <string.h> | |
int hex2int(const char * s) | |
{ | |
char charset[] = "0123456789abcdef"; | |
int i = (int)strlen(s), len = i, num = 0, j = 0; | |
while (i >= 0) { | |
for (j = 0; j < 16; j++) { | |
if (charset[j] == s[i]) { |
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 | |
# execution permissions: chmod +x broadcom_bcm4325.sh | |
# execute with: ./broadcom_bcm4325.sh | |
# need root access to work properly | |
cd /tmp | |
wget http://marchrius.altervista.org/blog/download/broadcom_3.19.tar.gz | |
mkdir broadcom_3.19 |
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
// | |
// reverse.c | |
// | |
// | |
// Created by Matteo Gaggiano on 23/06/12. | |
// Copyright (c) 2012 Marchrius. All rights reserved. | |
// | |
#include <stdio.h> | |
#include <string.h> |
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
angular.module('myApp', ['ngPluralizeHtml']) | |
function AppController() { | |
var vm = this; | |
vm.count = 10; | |
} | |
.controller('AppController', AppController); |
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
/*! | |
* jQuery ClassyLoader | |
* www.class.pm | |
* | |
* Written by Marius Stanciu - Sergiu <marius@class.pm> | |
* Licensed under the MIT license www.class.pm/LICENSE-MIT | |
* Version 1.1.0 | |
* | |
*/(function(d){d.fn.ClassyLoader=function(a){a=d.extend({},{ | |
width:200, |
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 | |
function checkport { | |
if nc -zv -w30 $1 $2 <<< '' &> /dev/null | |
then | |
echo "[+] Port $1/$2 is open" | |
else | |
echo "[-] Port $1/$2 is closed" | |
fi | |
} |
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 | |
# | |
# Created by: Matteo Gaggiano on 22/04/2017 | |
# Base script by: stojg at https://gist.github.com/stojg/70a15a84900da72ff2b5 | |
# | |
# Changelog 22/04/2017 : | |
# - Added support for multi-port check | |
# | |
function usage() { |
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 | |
include_once __DIR__ . '/helpers.php'; | |
$data = ((object)[ | |
"name" => "Matteo", | |
"surname" => "Gaggiano", | |
"age" => 25, | |
"github" => ((object)[ | |
"username" => "Marchrius", |
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
# none |
OlderNewer