Skip to content

Instantly share code, notes, and snippets.

sebolio

Block or report user

Report or block sebolio

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
@sebolio
sebolio / a.md
Last active Oct 23, 2019
Permitir usar URLs para conseguir HOST dinamicamente en uMMORPG
View a.md
  1. NetworkManager.cs inside public void StartClient before OnStartclient():
//SEB -- OBTAIN SERVER FROM URL O HOST
if (networkAddress.Contains("://")) {
    var networkAddressFromURL = new WebClient().DownloadString(networkAddress);
    networkAddress = networkAddressFromURL.Replace("\n","").Replace("\r","");
    Debug.Log("HOST from URL: " +networkAddress);
}
NetworkClient.Connect(networkAddress);
@sebolio
sebolio / NetworkManager.cs
Created Oct 22, 2019
obtener datos o ip desde un servidor remoto
View NetworkManager.cs
void ConnectLocalClient()
{
Debug.Log("Buscando IP..");
var json = new WebClient().DownloadString("http://mera.fun/ip");
// var json = wc.DownloadString("url");
Debug.Log("Tenemos " +json);
if (LogFilter.Debug) Debug.Log("NetworkManager StartHost");
@sebolio
sebolio / moveChat.cs
Created Oct 20, 2019
Mover chat de uMMORPG para el medo en moviles
View moveChat.cs
//by iamallama
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public partial class UIChat : MonoBehaviour
{
void Start()
{
@sebolio
sebolio / Puntero.cs
Last active Oct 15, 2019
Script para ocultar mouse al girar camara en uMMORPG
View Puntero.cs
// Little hack to hide cursor when moving camera
// and then showing it on the same position it was before
// © seb.cl
// USAGE in CameraMMO.cs:
// `Puntero.hide();` inside the "if (Input.GetMouseButton(mouseButton))"
// `Puntero.show();` in an "else" of that "if"
using System.Runtime.InteropServices;
@sebolio
sebolio / a.gs
Created Aug 22, 2019
usar datos de apis en google spreadsheet
View a.gs
//-- IMPORTANTE --
// Este script usa la celda "A1" para saber que tiene que recargar las APIs,
// por lo tanto esa celda debe reservarse para este script, y ojalá de color blanco para no molestar
/**
* Importa un dato de una API JSON a una celda, usar "," o ";" segun idioma.
* Uso: =IMPORTJSON("http://api.pagina.com";"personas/juan/edad"; $A$1)
* @param url URL de la API
@sebolio
sebolio / a.vb
Created Aug 3, 2019
desproteger archivo de Excel (Alt + F11)
View a.vb
Sub PasswordBreaker()
Dim i As Integer, j As Integer, k As Integer
Dim l As Integer, m As Integer, n As Integer
Dim i1 As Integer, i2 As Integer, i3 As Integer
Dim i4 As Integer, i5 As Integer, i6 As Integer
On Error Resume Next
For i = 65 To 66: For j = 65 To 66: For k = 65 To 66
For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66
For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66
For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 126
@sebolio
sebolio / gist:776e52e843f8af4d77a31a975435e5c9
Created Jun 7, 2019
obtener hash key para facebook de una app hecha en cordova
View gist:776e52e843f8af4d77a31a975435e5c9
keytool -list -printcert -jarfile app-debug.apk | grep -Po "(?<=SHA1:) .*" | xxd -r -p | openssl base64
View rc4.js
function rc4(r,f){var n=[],o=0,a,t="";for(var v=0;v<256;v++){n[v]=v}for(v=0;v<256;v++){o=(o+n[v]+r.charCodeAt(v%r.length))%256;a=n[v];n[v]=n[o];n[o]=a}v=0;o=0;for(var c=0;c<f.length;c++){v=(v+1)%256;o=(o+n[v])%256;a=n[v];n[v]=n[o];n[o]=a;t+=String.fromCharCode(f.charCodeAt(c)^n[(n[v]+n[o])%256])}return t}
//uso: rc4(key, string)
View gist:089445bf03ae2d5655dc1f55aed2a304
echo "rdr pass inet proto tcp from any to any port 80 -> 127.0.0.1 port 2020" | sudo pfctl -ef -
@sebolio
sebolio / gist:84986cf1fd74f62348352ed3d9c6cf35
Last active Oct 5, 2019
⭐ chocolatey paquetes windows 10
View gist:84986cf1fd74f62348352ed3d9c6cf35
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
choco install -y --allow-empty-checksums --ignore-checksum webstorm mongodb nvm php battle.net spotify vscode winrar git qbittorrent firefox
You can’t perform that action at this time.