Make these changes in the cassandra.yaml config file:
start_rpc: true
rpc_address: 0.0.0.0
broadcast_rpc_address: [node-ip]
listen_address: [node-ip]
Make these changes in the cassandra.yaml config file:
start_rpc: true
rpc_address: 0.0.0.0
broadcast_rpc_address: [node-ip]
listen_address: [node-ip]
| map $sent_http_content_type $expires { | |
| default off; | |
| text/html epoch; | |
| text/css max; | |
| application/javascript max; | |
| ~image/ max; | |
| } | |
| server { | |
| listen 443 ssl http2 default_server; |
| // Fixed an error with character replacement, removed a dependency, included imports, throw errors, and fixed global variables | |
| var crypto = require('crypto'); | |
| //remove a dependency on b64url | |
| function atob(str) { | |
| return new Buffer(str, 'base64').toString('binary'); | |
| } | |
| //this is not used here, but to leave it out would be like passing the salt without the pepper. | |
| function btoa(str) { |
| // Promise returning functions to execute | |
| function doFirstThing(){ return Promise.resolve(1); } | |
| function doSecondThing(res){ return Promise.resolve(res + 1); } | |
| function doThirdThing(res){ return Promise.resolve(res + 2); } | |
| function lastThing(res){ console.log("result:", res); } | |
| var fnlist = [ doFirstThing, doSecondThing, doThirdThing, lastThing]; | |
| // Execute a list of Promise return functions in series | |
| function pseries(list) { |
| # Set inotify watch limit high enough for IntelliJ IDEA (PhpStorm, PyCharm, RubyMine, WebStorm). | |
| # Create this file as /etc/sysctl.d/60-jetbrains.conf (Debian, Ubuntu), and | |
| # run `sudo service procps start` or reboot. | |
| # Source: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit | |
| # | |
| # More information resources: | |
| # -$ man inotify # manpage | |
| # -$ man sysctl.conf # manpage | |
| # -$ cat /proc/sys/fs/inotify/max_user_watches # print current value in use |
| import { Component } from "React"; | |
| export var Enhance = ComposedComponent => class extends Component { | |
| constructor() { | |
| this.state = { data: null }; | |
| } | |
| componentDidMount() { | |
| this.setState({ data: 'Hello' }); | |
| } | |
| render() { |
| #!/bin/bash | |
| function printit { | |
| echo "This is from an embedded function: $1" | |
| } | |
| function printthat { | |
| echo "This is the first line." | |
| $1 $2 | |
| echo "This is the third line." |
| <?php | |
| # Nginx don't have PATH_INFO | |
| if (!isset($_SERVER['PATH_INFO'])) { | |
| $_SERVER['PATH_INFO'] = substr($_SERVER["ORIG_SCRIPT_FILENAME"], strlen($_SERVER["SCRIPT_FILENAME"])); | |
| } | |
| $request = substr($_SERVER['PATH_INFO'], 1); | |
| $file = $request; | |
| $fp = @fopen($file, 'rb'); |
| CREATE TABLE IF NOT EXISTS `country` ( | |
| `id` int(11) NOT NULL AUTO_INCREMENT, | |
| `iso` char(2) NOT NULL, | |
| `name` varchar(80) NOT NULL, | |
| `nicename` varchar(80) NOT NULL, | |
| `iso3` char(3) DEFAULT NULL, | |
| `numcode` smallint(6) DEFAULT NULL, | |
| `phonecode` int(5) NOT NULL, | |
| PRIMARY KEY (`id`) | |
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; |