Skip to content

Instantly share code, notes, and snippets.

View tesuji's full-sized avatar
πŸ¦€
...

tesuji

πŸ¦€
...
  • D28DBB1A0E26FEDA
View GitHub Profile
@tesuji
tesuji / tmp.rst
Last active March 28, 2018 03:15

ppwn

Some python script for personal use

A lite version of pwntools_ of Gallopsled

External hyperlinks, like Python.

-- Logs begin at Sat 2018-04-28 00:00:30 +07, end at Sat 2018-04-28 12:38:43 +07. --
Apr 28 12:37:48 ubox kernel: mmc0: Unknown controller version (3). You may experience problems.
Apr 28 12:37:48 ubox kernel: radeon 0000:01:00.0: failed VCE resume (-110).
Apr 28 12:37:48 ubox systemd-rfkill[475]: Failed to open device rfkill0: No such device
Apr 28 12:37:48 ubox systemd-udevd[338]: Error calling EVIOCSKEYCODE on device node '/dev/input/event10' (scan code 0x100150, key code 
Apr 28 12:37:50 ubox wpa_supplicant[657]: dbus: wpa_dbus_get_object_properties: failed to get object properties: (none) none
Apr 28 12:37:50 ubox wpa_supplicant[657]: dbus: Failed to construct signal
Apr 28 12:37:52 ubox spice-vdagent[930]: Cannot access vdagent virtio channel /dev/virtio-ports/com.redhat.spice.0
Apr 28 12:38:11 ubox kernel: radeon 0000:01:00.0: failed VCE resume (-110).
@tesuji
tesuji / accessing-virtualbox.md
Created April 29, 2018 20:47
Accessing your Virtualbox Guest from your Host OS

Accessing your Virtualbox Guest from your Host OS

As a developer you want to ping and access the webserver on your virtual machine. This is a very simple solution to enable the bridge to the guest VM.

Requirements

  • VirtualBox (latest version)
  • A guest operation system (e.g. Ubuntu)
syntax = "proto3";
package main;
message SimpleMessage {
int32 id = 1; // Unique ID number for this message.
string mode = 2;
string email = 3;
enum MsgMode {
MESSAGE = 0;
@tesuji
tesuji / gist:642d350fc17e3296921726e11112a2e5
Created May 9, 2018 15:47 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

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:
@tesuji
tesuji / tmux-cheatsheet.markdown
Created May 9, 2018 18:00 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@tesuji
tesuji / compiling_building_c_cpp_notes.md
Created May 10, 2018 05:21 — forked from gubatron/compiling_building_c_cpp_notes.md
Things to remember when compiling and linking C/C++ programs

Things to remember when compiling/linking C/C++ software

by Angel Leon. March 17, 2015.

Include Paths

On the compilation phase, you will usually need to specify the different include paths so that the interfaces (.h, .hpp) which define structs, classes, constans, and functions can be found.

With gcc and llvm include paths are passed with -I/path/to/includes, you can pass as many -I as you need.

In Windows, cl.exe takes include paths with the following syntax: /I"c:\path\to\includes\ you can also pass as many as you need.

Linux kernel coding style

This is a short document describing the preferred coding style for the linux kernel. Coding style is very personal, and I won't force my views on anybody, but this is what goes for anything that I have to be able to maintain, and I'd prefer it for most other things too. Please at least consider the points made here.

@tesuji
tesuji / bobp-python.md
Created June 20, 2018 17:40 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@tesuji
tesuji / Makefile
Last active August 13, 2018 04:25
C tutorial code for unicorn
CFLAGS += -Wall -Werror -Wno-unused-function -g
LDLIBS += -lrt -pthread
LDLIBS += -lunicorn
TESTS = test1
all: $(TESTS)
clean: