Skip to content

Instantly share code, notes, and snippets.

😴

GrenderG

😴
Block or report user

Report or block GrenderG

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View EzDismount.lua
-- EzDismount : A quick and dirty dismounting mod, useful for PVP or herb/ore collecting
-- By Gaddur of the Eonar Server
-- Modified v2.01 by nathan
-- Added Turtle support by Grender (Rakkata) from Elysium
local EzDClass
local EzDPlayer
EzDismount_ver = "v2.04";
EzDismount_fullver = ("EzDismount " .. EzDismount_ver);
@GrenderG
GrenderG / ChangePassword.java
Created Feb 19, 2018 — forked from zach-klippenstein/ChangePassword.java
The keystore password on Java keystore files is utterly pointless. You can reset it without knowing it, as shown by this code. Note that private keys are still secure, as far as I know. The JKS implementation is copyright Casey Marshall (rsdio@metastatic.org), and the original source is available at http://metastatic.org/source/JKS.java. I've in…
View ChangePassword.java
import java.util.*;
import java.io.*;
import java.security.*;
public class ChangePassword
{
private final static JKS j = new JKS();
public static void main(String[] args) throws Exception
{
@GrenderG
GrenderG / check-tor.py
Last active Oct 24, 2017
Check if you are using Tor
View check-tor.py
import requests
TOR_CHECK_URL = 'https://check.torproject.org/cgi-bin/TorBulkExitList.py?ip=1.1.1.1'
IPIFY_API_URL = 'https://api.ipify.org'
def check_tor():
ip = requests.get(IPIFY_API_URL).text
tor_exit_node_list = requests.get(TOR_CHECK_URL).text
return ip in tor_exit_node_list
@GrenderG
GrenderG / IdenticonGenerator.java
Last active Oct 7, 2019
Generate identicons using java.
View IdenticonGenerator.java
import javax.imageio.ImageIO;
import java.awt.geom.AffineTransform;
import java.awt.image.AffineTransformOp;
import java.awt.image.BufferedImage;
import java.awt.image.WritableRaster;
import java.io.File;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
@GrenderG
GrenderG / emoji_scrap.py
Last active Sep 17, 2018
Getting all emojis directly from http://emoji.codes/ and formatted to use in https://github.com/mrowa44/emojify
View emoji_scrap.py
from bs4 import BeautifulSoup
import requests
def start_requests():
urls = [
'http://emoji.codes/family?c=people',
'http://emoji.codes/family?c=nature',
'http://emoji.codes/family?c=food',
'http://emoji.codes/family?c=activity',
'http://emoji.codes/family?c=travel',
@GrenderG
GrenderG / SomeFragment.java
Created Oct 3, 2016 — forked from joshdholtz/SomeFragment.java
Android Google Maps V2 - MapView in XML
View SomeFragment.java
public class SomeFragment extends Fragment {
MapView mapView;
GoogleMap map;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.some_layout, container, false);
@GrenderG
GrenderG / tictactoe.cpp
Last active Dec 19, 2018
Just a simple Tic Tac Toe game implemented in C++
View tictactoe.cpp
/*
* Copyright (C) 2016-20?? Daniel Morales
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@GrenderG
GrenderG / chat_server.py
Created May 29, 2016
Simple terminal-based chat in Python
View chat_server.py
#!/usr/bin/env python
import socket
import thread
import time
HOST = "localhost"
PORT = 4004
def accept(conn):
View GCIOTemplate.java
import java.io.IOException;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.nio.charset.Charset;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.List;
import java.util.ArrayList;
@GrenderG
GrenderG / comprobar matriz mágica
Last active Aug 29, 2015
comprobar matriz magica
View comprobar matriz mágica
public static boolean check (int[][] m) {
int masterSum = 0;
int tempSumRow = 0;
int tempSumCol = 0;
int diagonal = 0;
for (int i = 0; i < m.length; i++){
for (int j = 0; j < m[0].length; j++){
You can’t perform that action at this time.