Skip to content

Instantly share code, notes, and snippets.

Sergey Kruk lonelyelk

Block or report user

Report or block lonelyelk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Leayal
Leayal / InstallSocksServer.md
Last active Aug 13, 2018
Install SOCKs server for Debian/Ubuntu machine. (http://www.inet.no/dante/download.html)
View InstallSocksServer.md

Installation

0. Requirements:

  • make
  • gcc
  • g++

To install those two, you can run apt-get update && apt-get install make gcc g++.

(Alternatively, you can install the package build-essential)

1. Download Danted

@chrissimpkins
chrissimpkins / gist:5bf5686bae86b8129bee
Created Jul 13, 2015
Atom Editor Cheat Sheet (Sweetmeat)
View gist:5bf5686bae86b8129bee

Use these rapid keyboard shortcuts to control the GitHub Atom text editor on Mac OSX.

Key to the Keys

  • ⌘ : Command key
  • ⌃ : Control key
  • ⌫ : Delete key
  • ← : Left arrow key
  • → : Right arrow key
  • ↑ : Up arrow key
@airblade
airblade / gist:2988937
Created Jun 25, 2012
Monkey-patch enabling Rails 2.3 to use SMTP over SSL
View gist:2988937
# config/initializers/email.rb
# Monkey-patch to enable ActionMailer to send STMP email over SSL.
# Necessitated by Fastmail mandating SSL by 30 June 2012.
module ActionMailer
class Base
def perform_delivery_smtp(mail)
destinations = mail.destinations
mail.ready_to_send
@coldnebo
coldnebo / Default (OSX).sublime-keymap -- User
Created Feb 3, 2012
Sublime Text 2 fix for OSX home/end keys
View Default (OSX).sublime-keymap -- User
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} },
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} }
@remvee
remvee / ignore_unknown_http_method.rb
Created Sep 28, 2010
silence ActionController::UnknownHttpMethod exceptions
View ignore_unknown_http_method.rb
# Avoid annoying ActionController::UnknownHttpMethod exceptions like:
#
# ActionController::UnknownHttpMethod) "CONNECT, accepted HTTP methods are get, head, put, post, delete, and options"
#
# Install this file in app/metal and these requests will receive a 405
# "Method Not Allowed" status and will be logged under `info'.
class IgnoreUnknownHttpMethod
def self.call(env)
[
if ActionController::Request::HTTP_METHODS.include?(env["REQUEST_METHOD"].downcase)
You can’t perform that action at this time.