Skip to content

Instantly share code, notes, and snippets.

View mschnitzer's full-sized avatar
🤸‍♂️
Mostly working on private repositories. (Ruby on Rails)

Manuel Schnitzer mschnitzer

🤸‍♂️
Mostly working on private repositories. (Ruby on Rails)
View GitHub Profile
@m-rey
m-rey / blacklist_pcspkr.sh
Last active July 30, 2020 21:15
removes annoying beeps from pc speaker on openSUSE
sudo modprobe -r pcspkr
echo "blacklist pcspkr" | sudo tee /etc/modprobe.d/nobeep.conf > /dev/null
@spaghetti-
spaghetti- / server.cpp
Created March 25, 2017 08:19
Boost asio tcp server example, C++11
#include <iostream>
#include <memory>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
//thanks kalven for tips/debugging
using boost::asio::ip::tcp;
class Session : public std::enable_shared_from_this<Session>
@gokulkrishh
gokulkrishh / media-query.css
Last active June 17, 2024 06:00
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */
@jefftrull
jefftrull / main.cpp
Created January 9, 2012 09:53
Example of producer-consumer for Ruby interpreter with separate thread in C++
// Example of running Ruby in a separate thread
// 2012-01-08 by Jeff Trull <jetrull@sbcglobal.net>
#include <iostream>
#include <queue>
#include <string>
#include <set>
#include <boost/thread.hpp>
#include <boost/thread/mutex.hpp>