This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 \ |
NewerOlder