Skip to content

Instantly share code, notes, and snippets.

Cong Tru Nguyen ctnguyenvn

Block or report user

Report or block ctnguyenvn

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 dec2bin.c
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
// function reverse string instead of strrev (strrev not exist in linux)
char *rev_string(char *str)
{
int start = 0;
int end = strlen(str) - 1;
char tmp;
@ctnguyenvn
ctnguyenvn / CMakeLists.txt
Last active Mar 1, 2019
template simple gtk cmake C on Clion Linux
View CMakeLists.txt
cmake_minimum_required(VERSION 3.7)
project(First C) // First -> project name
include(FindPkgConfig)
pkg_check_modules(GTK REQUIRED "gtk+-3.0")
include_directories(${GTK_INCLUDE_DIRS})
link_directories(${GTK3_LIBRARY_DIRS})
add_definitions(${GTK3_CFLAGS_OTHER})
@ctnguyenvn
ctnguyenvn / blog-FindKeyXorFile.py
Created Sep 30, 2018
challenge ransomware file decode D-CTF
View blog-FindKeyXorFile.py
#!/usr/bin/python3
import string
import sys
index = int(sys.argv[1])
char = str(sys.argv[2])
allp = string.ascii_letters + string.punctuation + string.digits
file = open('youfool.exe', 'rb').read()
@ctnguyenvn
ctnguyenvn / blog-ransom.py
Created Sep 30, 2018
challenge ransomware file decode D-CTF
View blog-ransom.py
import string
from random import *
import itertools
def caesar_cipher(x, y):
y = y * (len(x) / len(y) + 1)
return ('').join((chr(ord(a) ^ ord(b)) for a, b in itertools.izip(x, y)))
@ctnguyenvn
ctnguyenvn / gist:56a6dba6f2bdb3dc11ec5018a0138d72
Created May 6, 2018 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup
View gist:56a6dba6f2bdb3dc11ec5018a0138d72

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
You can’t perform that action at this time.