Skip to content

Instantly share code, notes, and snippets.

View TristanOrta's full-sized avatar

Oscar Tristan Orta TristanOrta

  • Productora Nacional de Papel
  • San Luis Potosi
View GitHub Profile
@TristanOrta
TristanOrta / Sobre_Gist.md
Created October 13, 2022 12:26 — forked from renatojobal/Sobre_Gist.md
¿Qué es un gist en GitHub?

¿Qué es un Gist en GitHub y para qué sirve?

Un gist es una forma que se tiene para poder compartir código usando GitHub.

Cuando tenemos un código que no es lo suficientemente grande para crear un repositorio, entonces creamos un gist. Aunque gist funciona básicamente cómo un repositorio, ya que se le puede hacer un fork o clonarlo. Así mismo se puede editar y las personas pueden comentar el gist.

Usos del gist

Muchas personas usan gist cómo un portapapeles. Para subir código que siempre sueles usar en diferentes proyectos. También se suele usar cómo una forma de hacer posts. Cómo este que estas viendo.

@x0nu11byt3
x0nu11byt3 / memo_en.md
Created June 4, 2022 04:39
Advent Calendar CTF 2014 の write-up。ブログに移動しました -> https://st98.github.io/diary/posts/2014-12-26-adctf.html

Advent Calendar CTF 2014

Aditional note: This is a translated version of the original project gist.github.com/st98/memo.md

We participated as Bok Team omakase. The final score was 173 points and the team was ranked 24th (out of 505 teams). We solved the problems on days 1 to 14, 21 to 22 and 25.

1 warmup (misc)

'0x41444354465f57334c43304d335f37305f414443374632303134'.match(/[0-9a-f]{2}/g).map(function(c){return String.fromCharCode(parseInt(c, 16))}).join('');
@x0nu11byt3
x0nu11byt3 / sshclient.py
Created June 4, 2022 04:32
SSH Client with a simple connection and run an simple command. For to connect with a normal user without many privileges since to use the root user more processes. Iptables to open a port is enabled as follows: iptables -A INPUT -p tcp -m tcp --dport <port> -j ACCEPT
#!/usr/bin/env python3
import os
import sys
import paramiko
class SSHClient:
def __init__(self,hostname, port, username, password):
self._port = port
@x0nu11byt3
x0nu11byt3 / gaussjordan.py
Created June 4, 2022 04:30
A simple implementation of the algorithm pure MethodGaussJordan Is a linear algebra algorithm used to determine the solutions of a system of linear equations Previous requirements for handling complex arrays you need to install numpy
#!/usr/bin/env python3
import numpy as np
class error(Exception): pass
class GaussJordan():
def __init__(self,x,y):
self.m = x
self.n = y
self.matrix = [[ 0 for i in range(x)] for j in range(y)]
@x0nu11byt3
x0nu11byt3 / resources.md
Created August 21, 2020 00:15 — forked from muff-in/resources.md
A curated list of Assembly Language / Reversing / Malware Analysis -resources

Assembly Language / Reversing / Malware Analysis -resources

Twitter: Muffin

⭐Assembly Language

@proteo5
proteo5 / CURPValido.cs
Created June 11, 2020 20:13
Métodos en C# para Validar el CURP
private bool CurpValida(string curp)
{
var re = @"^([A-Z][AEIOUX][A-Z]{2}\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])[HM](?:AS|B[CS]|C[CLMSH]|D[FG]|G[TR]|HG|JC|M[CNS]|N[ETL]|OC|PL|Q[TR]|S[PLR]|T[CSL]|VZ|YN|ZS)[B-DF-HJ-NP-TV-Z]{3}[A-Z\d])(\d)$";
Regex rx = new Regex(re, RegexOptions.Compiled | RegexOptions.IgnoreCase);
var validado = rx.IsMatch(curp);
if (!validado) //Coincide con el formato general?
return false;
//Validar que coincida el dígito verificador
@renatojobal
renatojobal / Sobre_Gist.md
Last active June 24, 2024 04:24
¿Qué es un gist en GitHub?

¿Qué es un Gist en GitHub y para qué sirve?

Un gist es una forma que se tiene para poder compartir código usando GitHub.

Cuando tenemos un código que no es lo suficientemente grande para crear un repositorio, entonces creamos un gist. Aunque gist funciona básicamente cómo un repositorio, ya que se le puede hacer un fork o clonarlo. Así mismo se puede editar y las personas pueden comentar el gist.

Usos del gist

Muchas personas usan gist cómo un portapapeles. Para subir código que siempre sueles usar en diferentes proyectos. También se suele usar cómo una forma de hacer posts. Cómo este que estas viendo.