Skip to content

Instantly share code, notes, and snippets.

View vivekascoder's full-sized avatar
💭
Learning

Vivek vivekascoder

💭
Learning
View GitHub Profile

How to modify time and timezone in Linux

@Author: vivekascoder

@Date: 2/07/2020

Hey, 😄 let's modify/fix the time

  • Let's see the current settings:
    • root@kali#~ date
    • `Wed 01 Jul 2020 12:22:27 AM IST
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions
import time
import random
import string
gmail_url = """https://accounts.google.com/signup/v2/webcreateaccount?service=mail&continue=https%3A%2F%2Fmail.google.com%2Fmail%2F&ltmpl=default&flowName=GlifWebSignIn&flowEntry=SignUp"""
function Avatar(props) {
return (
<div className="Avatar">
<img src={props.url} alt={props.name} />
</div>
);
}
function Button(props){
return (
<div>
import ReactDOM from 'react-dom';
import React from 'react';
import Gist from 'react-gist';
import './style.css';
const root = document.getElementById('root');
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DotDes</title>
</head>
<body>
<div class="Body" id="first">
<div class="nav" style="padding: 1rem;">
import React from "react";
import ReactDOM from "react-dom";
import "./styles.css";
const root = document.getElementById("root");
const ThemeContext = React.createContext("light");
function Toolbar(props) {
return (
<div>
// InputRef.js
import React from 'react'
class InputRef extends React.Component{
constructor(props){
super(props)
this.inputRef = React.createRef()
}
clickHandler = () =>{
this.inputRef.current.focus()
// index.js
import ReactDOM from 'react-dom';
import React from 'react';
import './style.css';
import InputRef from './InputRefP'
const root = document.getElementById('root');
ReactDOM.render(<InputRef />, root);
/*
// index.js
import ReactDOM from 'react-dom';
import React from 'react';
import './style.css';
import InputRef from './InputRefP'
import Portals from './Portals'
const root = document.getElementById('root');
ReactDOM.render(<Portals />, root);
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Fira+Sans+Condensed:wght@500&display=swap" rel="stylesheet">
<title>Chat Application</title>
</head>