Skip to content

Instantly share code, notes, and snippets.

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

Hoang Bui bmhoang

🏠
Working from home
  • The Moon
View GitHub Profile
@bmhoang
bmhoang / X11-Firefox-Dockerfile
Last active March 5, 2020 04:13 — forked from udkyo/Dockerfile
Basic container for X11 forwarding goodness
FROM ubuntu
RUN apt update \
&& apt install -y firefox \
openssh-server \
xauth \
&& mkdir /var/run/sshd \
&& mkdir /root/.ssh \
&& chmod 700 /root/.ssh \
&& ssh-keygen -A \
&& sed -i "s/^.*PasswordAuthentication.*$/PasswordAuthentication no/" /etc/ssh/sshd_config \
@bmhoang
bmhoang / test.c
Created June 10, 2019 03:37
test
int test(int x, int* py, int** ppz){
**ppz += 1;
int z = **ppz;
*py += 2;
int y = *py;
x += 3;
return x + y + z;
}
void main(){
int c = 4;
@bmhoang
bmhoang / UDPer.cs
Created May 31, 2017 09:05 — forked from zmilojko/UDPer.cs
C# sends and receives UDP broadcasts
using System;
using System.Net.Sockets;
using System.Net;
using System.Text;
using System.Threading;
namespace UDPer
{
class UDPer
{