#
# /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes, reload proftpd after modifications, if
# it runs in daemon mode. It is not required in inetd/xinetd mode.
#
# Includes DSO modules
Include /etc/proftpd/modules.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const SystemError = ({ error }) => { | |
console.warn(error.name) | |
console.warn(error.message) | |
return ( | |
<div> | |
<h3>Sorry!</h3> | |
<p>Something went wrong. Please try again later.</p> | |
</div> | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TaskIsNotDone extends React.Component { | |
submitButtonHandler = makeTaskDoneMutation => { | |
return () => { | |
makeTaskDoneMutation({ variables: { taskId: this.props.taskId } }) | |
} | |
} | |
onConpleted = data => { | |
this.props.taskIsDoneHandler() | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Task extends React.Component { | |
constructor(props) { | |
super(props) | |
this.state = { | |
taskIsDone: false | |
} | |
} | |
onCompletedHandler (data) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def donut(data, size, thickness, background='#fff') | |
cx = cy = size / 2 | |
radius = size / 2 - 2 | |
sum = data.values.inject(:+) | |
dx = 0 | |
dy = -radius | |
angle = -90 | |
paths = '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module TheApp | |
class Application < Rails::Application | |
def initializers | |
bootstrap = Bootstrap.initializers_for(self) | |
railties = super | |
finisher = Finisher.initializers_for(self) | |
if Rails.env.development? | |
print_initializers(bootstrap, "#BOOTSTRAP") | |
print_initializers(railties, "#RAILTIES") |
http://railsapps.github.io/openssl-certificate-verify-failed.html
Finally solve the problem:
brew install openssl
brew link openssl
cd /usr/local/etc/openssl/certs/
sudo curl -O https://curl.haxx.se/ca/cacert.pem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/amatsuda/kaminari/issues/804 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'digest/md5' | |
module ShopCartDigestGUID | |
private | |
def guid_generator | |
srand.to_s[1..12] | |
end | |
end |