jq is useful to slice, filter, map and transform structured json data.
brew install jq
#5&0xff=TTL, здесь нужно указать правильный TTL до DPI | |
iptables -I INPUT -p tcp --sport 443 -m u32 --u32 "0=0x45000028&&4=0x00000000&&5&0xff=60&&0x20=0x50140000" -j DROP | |
iptables -I INPUT -p tcp --sport 80 -m u32 --u32 "04=0x00000000&&5&0xff=60&&0x60=0x39352e31&&0x64=0x36372e31" -j DROP | |
#Зигуй за РТ |
/** | |
* Complete code at https://github.com/six519/jsdecodeqr | |
* https://www.npmjs.com/package/jsdecodeqr | |
**/ | |
#include <node.h> | |
#include <v8.h> | |
#include <opencv/cv.h> | |
#include <opencv/highgui.h> | |
#include <decodeqr.h> |
// Change these settings | |
var username = 'myname', | |
password = 'mypass', | |
pin = [0,0,0,0]; | |
// Auto-login | |
var login = setInterval(function(){ | |
if ($('form#user-account-form').length) { | |
clearInterval(login); | |
$('input#username').val(username); |
upstream upstream-apache2 { | |
server 127.0.0.1:8080; | |
} | |
upstream upstream-nodejs { | |
server 127.0.0.1:3000; | |
} | |
server { | |
listen 80; |
server | |
{ | |
listen 80; | |
server_name _; | |
location / { | |
resolver 8.8.8.8; | |
proxy_pass http://$http_host$request_uri; | |
} | |
} |
// Params: | |
// 1. query (filter) if you only want to remove this field from some records. {} will select any. | |
// 2. $unset the field(s) that you want to remove. Here I've set them to null but the value doesn't matter as it's ignored. | |
// 3. multi must be set to true otherwise it will only operate on the first record that it finds. | |
// | |
// Run this command in the MongoDB shell | |
db.<collectionName>.update( {}, {$unset: {<fieldName1>: null, <fieldName2>: null}}, {multi: true}); |
#!/bin/bash | |
version=1.0.1 | |
versionDate="2014-02-14" | |
function showHelp() { | |
echo "watchfile - monitor file(s)/command and perform action when changed | |
Possible ways of usage | |
---------------------------------------- |