Skip to content

Instantly share code, notes, and snippets.

View orleika's full-sized avatar
🏠
Working from home

Koki Yasuda orleika

🏠
Working from home
View GitHub Profile
@orleika
orleika / LICENSE
Created June 25, 2018 12:14
This license applies to all public gists https://gist.github.com/orleika
All public gists https://gist.github.com/orleika
COPYRIGHT (c) 2018 orleika
MIT License
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@orleika
orleika / Makefile
Created April 25, 2018 06:31
some description
all: clean receiver sender
receiver:
clang -Os -o receiver receiver.c
strip --strip-all receiver
gzip -c receiver | base64 > receiver.dump
sender:
clang -Os -o sender sender.c
strip --strip-all sender
gzip -c sender | base64 > sender.dump
.PHONY: clean
@orleika
orleika / ychat
Created April 25, 2018 05:55
some description
#!/bin/bash
#
# ychat
# simple multicast chat tools on the shell (only supported bash)
# copyrights: koki yasuda aka orleika <[email protected]>
# Licensed under MIT
#
# Usage:
# ychat
#
@orleika
orleika / quine.S
Last active November 9, 2018 01:55
x86-64 Quine
mov $m, %rsi
mov $280, %rdx
mov $1, %rdi
mov $1, %rax
syscall
push $34
mov %rsp, %rsi
mov $1, %rdx
mov $1, %rax
syscall
@orleika
orleika / receiver.c
Created April 20, 2018 01:58
some description
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
struct sockaddr_in localSock;
@orleika
orleika / sender.c
Created April 20, 2018 01:57
some description
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct in_addr localInterface;
struct sockaddr_in groupSock;
@orleika
orleika / ychat
Created April 19, 2018 09:39
some description
#!/bin/bash
#
# ychat
# simple multicast chat tools on the shell (only supported bash)
# copyrights: koki yasuda aka orleika <[email protected]>
# Licensed under MIT
#
# Usage:
# ychat
#
@orleika
orleika / Dockerfile
Created February 25, 2018 05:48
jupyter_datascience-notebook-parallel
FROM jupyter/datascience-notebook
USER root
RUN apt-get update \
&& apt-get install mpich -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
USER $NB_USER
@orleika
orleika / Dockerfile
Last active February 25, 2018 05:50
For selenium and tor browser
FROM python:3
RUN apt update \
&& apt upgrade -y \
&& apt install -y libdbus-glib-1-2 libgtk2.0-0 libX11-xcb-dev xvfb\
&& rm -rf /var/lib/apt/lists/* \
&& echo 'export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"' >> ~/.bash_profile \
&& . ~/.bash_profile \
&& cd /tmp \
&& wget -q https://github.com/mozilla/geckodriver/releases/download/v0.17.0/geckodriver-v0.17.0-linux64.tar.gz \