Skip to content

Instantly share code, notes, and snippets.

View linsinan1995's full-sized avatar
๐ŸŒ›
Have a good sleep

sinan linsinan1995

๐ŸŒ›
Have a good sleep
View GitHub Profile
@astrolox
astrolox / LICENSE
Last active April 5, 2024 03:08
Implementing Socket IO event handling via Blueprint in Flask-SocketIO - without using a single global socketio object.
Copyright 2020 Brian Wojtczak
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 permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included
@crsuarez
crsuarez / gist:5a066638a805e46b448acebd4f5fe8d1
Last active January 14, 2021 05:40 — forked from wacko/gist:5577187
SSH between Mac OS X host and Virtual Box guest

On Mac OS (host):

Shutdown your VM and do:
On a terminal:

VBoxManage hostonlyif create
VBoxManage hostonlyif ipconfig vboxnet0 --ip 192.168.56.1
VBoxManage dhcpserver add --ifname vboxnet0 --ip 192.168.56.1 --netmask 255.255.255.0 --lowerip 192.168.56.100 --upperip 192.168.56.200
VBoxManage dhcpserver modify --ifname vboxnet0 --enable
@dkorolev
dkorolev / variadic_visitor.cc
Created April 26, 2015 06:34
C++11 Visitor Pattern with Variadic Template
#include <cstdio>
#include <vector>
#include <utility>
// Library code.
template<typename>
struct Visitor {
};