- Change file /etc/sysconfig/network
- Change file /etc/hostname
- Chnage file /etc/hosts
sudo vim /etc/sysconfig/network
#!/usr/bin/env python | |
""" | |
mocking requests calls | |
""" | |
import mock | |
import unittest | |
import requests | |
from requests.exceptions import HTTPError |
// 🔥 Node 7.6 has async/await! Here is a quick run down on how async/await works | |
const axios = require('axios'); // promised based requests - like fetch() | |
function getCoffee() { | |
return new Promise(resolve => { | |
setTimeout(() => resolve('☕'), 2000); // it takes 2 seconds to make coffee | |
}); | |
} |
# PROBLEM LINK : https://www.hackerrank.com/challenges/temperature-predictions | |
import numpy as np | |
from sklearn import ensemble | |
def isfloat(value): | |
try: | |
float(value) | |
return True |
cd %systemroot%\system32\drivers | |
sc query cldflt | |
sc config cldflt start=auto |
import boto3 | |
import json | |
import sys | |
encodedMessageStr = sys.argv[1] | |
client = boto3.client('sts') | |
response = client.decode_authorization_message( | |
EncodedMessage=encodedMessageStr | |
) |
Description: Create WebACL example | |
Parameters: | |
WebACLDefaultAction: | |
Type: String | |
AllowedValues: | |
- Allow | |
- Block | |
WebACLRuleAction: | |
Type: String |
[general] | |
pidfile="burrow.pid" | |
stdout-logfile="burrow.out" | |
[logging] | |
filename="/opt/burrow/logs/burrow.log" | |
level="info" | |
maxsize=100 | |
maxbackups=10 | |
maxage=10 |
I hereby claim:
To claim this, I am signing this object:
/* | |
* This is a simple HTTP data generator for testing. | |
* | |
*/ | |
var http = require('http'); | |
var counter = 0; | |
http.createServer(function (req, res) { | |
var start = new Date(); |