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 | |
cd $(mktemp -d) | |
wget https://aur.archlinux.org/cgit/aur.git/snapshot/insomnia.tar.gz | |
tar xzf insomnia.tar.gz | |
cd insomnia | |
makepkg -s | |
sudo pacman -U insomnia-*-x86_64.pkg.tar |
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
/** | |
* Scan networks and print in screen | |
*/ | |
#include "WiFi.h" | |
#include "HT_SSD1306Wire.h" | |
#define BAUDRATE 115200 | |
// addr , freq , i2c group , resolution , rst |
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
wget http://openresty.org/download/ngx_openresty-1.7.10.1.tar.gz \ | |
-O ngx_openresty-1.7.10.1.tar.gz | |
tar xzvf ngx_openresty-1.7.10.1.tar.gz | |
cd ngx_openresty-1.7.10.1 | |
./configure | |
make | |
sudo make install | |
wget https://codeload.github.com/keplerproject/luarocks/tar.gz/v2.0.13 \ |
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
ANONIMO PÉREZ SE OMITE mail@dominio.es | |
ANONIMO PÉREZ SE OMITE mail@dominio.es |
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
[Unit] | |
Description=Node.js App | |
After=network.target | |
[Service] | |
Type=simple | |
ExecStart=/usr/local/node-v7.4.0/bin/node index.js | |
WorkingDirectory=/home/yago/produccion/app | |
Environment="HOST=127.0.0.1" | |
Environment="PORT=1234" |
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
// superagent.min.js v1.2.0, https://github.com/visionmedia/superagent | |
!function(b){if("object"==typeof exports&&"undefined"!=typeof module){module.exports=b()}else{if("function"==typeof define&&define.amd){define([],b)}else{var a;"undefined"!=typeof window?a=window:"undefined"!=typeof global?a=global:"undefined"!=typeof self&&(a=self),a.superagent=b()}}}(function(){var d,b,a;return(function c(f,k,h){function g(q,n){if(!k[q]){if(!f[q]){var m=typeof require=="function"&&require;if(!n&&m){return m(q,!0)}if(e){return e(q,!0)}var p=new Error("Cannot find module '"+q+"'");throw p.code="MODULE_NOT_FOUND",p}var i=k[q]={exports:{}};f[q][0].call(i.exports,function(l){var o=f[q][1][l];return g(o?o:l)},i,i.exports,c,f,k,h)}return k[q].exports}var e=typeof require=="function"&&require;for(var j=0;j<h.length;j++){g(h[j])}return g})({1:[function(g,h,f){h.exports=i;function i(j){if(j){return e(j)}}function e(k){for(var j in i.prototype){k[j]=i.prototype[j]}return k}i.prototype.on=i.prototype.addEventListener=function(k,j){t |
Scripts I'm using to mine ETH on Linux.
nbminer.service
: setup Nvidia Power Limit to 250 and start nbminer
local.conf
: disable IPv6
nct6775-fans
: Set Fan 2 and Fan 3 to ~78%
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 crypto = require('crypto'); | |
const vm = require('vm'); | |
process.env.FLAG = "FLAG" | |
const secret = (key) => ((key == 1337) ? process.env.FLAG : 'fail'); | |
const sandbox = {[crypto.randomBytes(32).toString('hex')] : secret}; | |
const message = 'this.constructor.values(this).shift()(this.constructor.values(this.constructor).concat(this.constructor.values(this.constructor).concat(null).length).concat(this.constructor.values(this.constructor).concat(null).concat(null).concat(null).length).concat(this.constructor.values(this.constructor).concat(null).concat(null).concat(null).length).concat(this.constructor.values(this.constructor).concat(null).concat(null).concat(null).concat(null).concat(null).concat(null).concat(null).length).join(this.constructor.name.repeat()))'; | |
// ... | |
if (message.match(/^[a-z.()]+$/)) { | |
try { |
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
docker run -w /root -it ubuntu:xenial-20180417 /bin/bash | |
apt update | |
apt install curl xz-utils cmake ninja-build g++ python -y | |
curl -o llvm-6.0.0.src.tar.xz http://releases.llvm.org/6.0.0/llvm-6.0.0.src.tar.xz | |
tar xvf llvm-6.0.0.src.tar.xz | |
cd llvm-6.0.0.src/tools/ | |
curl -o cfe-6.0.0.src.tar.xz http://releases.llvm.org/6.0.0/cfe-6.0.0.src.tar.xz | |
tar xvf cfe-6.0.0.src.tar.xz | |
mv cfe-6.0.0.src clang |
NewerOlder