Skip to content

Instantly share code, notes, and snippets.

View mrchnk's full-sized avatar
☮️
NO WAR, PLEASE!

Nikolay Sukharev mrchnk

☮️
NO WAR, PLEASE!
View GitHub Profile
@mrchnk
mrchnk / gist:d07c443985db918286b0e1725d59656d
Created March 21, 2018 21:51 — forked from haf/gist:2843680
Get SSH working on Vagrant/Windows/Git

If you are using vagrant, you probably-statistically are using git. Make sure you have its binary folder on your path, because that path contains 'ssh.exe'.

Now, modify C:\vagrant\vagrant\embedded\lib\ruby\gems\1.9.1\gems\vagrant-1.0.3\lib\vagrant\ssh.rb to comment out the faulty Windows check and add a real SSH check:

# if Util::Platform.windows?
  # raise Errors::SSHUnavailableWindows, :host => ssh_info[:host],
                                       # :port => ssh_info[:port],
                                       # :username => ssh_info[:username],
 # :key_path => ssh_info[:private_key_path]
@mrchnk
mrchnk / svn-to-git.md
Created March 19, 2018 10:20 — forked from barrysteyn/svn-to-git.md
Migrate From SVN To GIT
@mrchnk
mrchnk / aria2
Last active November 11, 2016 04:56 — forked from andrzejressel/aria2
init.d file for aria2c daemon (debian)
#!/bin/sh
### BEGIN INIT INFO
# Provides: aria2
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: aria2c init script.
import os
for root, dirs, files in os.walk(u"./perfum-graphics/"):
for name in files:
fixed_name = name.encode('cp1252').decode('cp1251')
print fixed_name
os.rename(os.path.join(root, name), os.path.join(root, fixed_name))
// Without timeout in onStage3DError
requestContext auto baselineExtended
onStage3DError:err [ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="Error #3702"]
requestContext auto baseline
requestContext:err ArgumentError: Error #3685
requestContext auto baselineConstrained
requestContext:err ArgumentError: Error #3685
requestContext software baseline
requestContext:err ArgumentError: Error #3685
requestContext software baselineConstrained