sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get autoremove
sudo reboot
| extern "C" { | |
| #include <libavcodec/avcodec.h> | |
| #include <libavformat/avformat.h> | |
| #include <libswscale/swscale.h> | |
| } | |
| #include <SDL2/SDL.h> | |
| #include <stdio.h> | |
| #include <iostream> |
| gem 'lograge' # more readable logs | |
| gem 'logstash-event' # for logstash json format | |
| gem 'mono_logger' # threadsafe logging |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| require "socket" | |
| socket = TCPSocket.open("www.theonion.com", "80") | |
| TCPSocket.open("www.theonion.com", 80) do |socket| | |
| socket.puts "GET / HTTP/1.0\n\n" | |
| puts socket.read | |
| end |
| # These modules should be loaded by default: proxy_module, proxy_balancer_module, rewrite_module | |
| Listen *:80 | |
| # You may want to keep the VirtualHost config under extra/*.conf | |
| # Start your thin | |
| <VirtualHost *:80> | |
| ServerName wwww.yourawesomeapp.dev |
| #!/usr/bin/env ruby | |
| # Full Contol on Ethnet, IP & TCP headers. Play with it ;) | |
| # to test it: nc -lvp 4444 | |
| # as root: tcpdump -nvvvv 'tcp port 4444' -i wlan0 # change wlan0 to your interface | |
| # or use packetfu to monitor as tcpdump | |
| ## cap = PacketFu::Capture.new(:iface => 'wlan0' , :promisc=> true) | |
| ## cap.show_live(:filter => 'tcp and port 4444') | |
| # libpcap should be installed | |
| # gem install pcaprub packetfu |
You have your Rails Apps with specific Gemsets in RVM.
The following commands creates a wrapped unicorn_rails bin. Be sure to replace the variables and that you have unicorn in your bundle.
rvmsudo rvm wrapper [RUBY VERSION]@[GEMSET] [GEMSET] unicorn_rails
Now you have a /usr/local/rvm/bin/[GEMSET]_unicorn_rails I will refer to [GEMSET]_unicorn_rails as [WRAPPED_NAME]