This file contains hidden or 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
| apiVersion: v1 | |
| kind: Namespace | |
| metadata: | |
| name: timemachine | |
| # --- | |
| # apiVersion: storage.k8s.io/v1 | |
| # kind: StorageClass | |
| # metadata: | |
| # name: local-path-retain | |
| # provisioner: rancher.io/local-path |
This file contains hidden or 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
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDvxsysuuz7Myf0F5yrVlc9mYS77Av6YxVGP8cVqQCntblIFsOuO24c2Y5QUo11zDtqtOQcuK1H/M4xKvMc7n+v9cAmQjbnwmECKfTYAxzxFmG42jhioHpw5Oh/jxzoujbVRsgDoygFnyCIbuySrfJ71gaNhYqFyoSPbyxjFU9hSeDkkFBb4xhqHUcOSxfCkCbSAYrYaJ4o/cGYHPsdCX1LvKY71g4Iz/xlGv1h5trps1CwbNw7lh4nCcI3NnAHfDN8KdyhOvzOs9N5Xg+A782gFlH4Fz/ht1h5EX+/qIOWQjxqWzdGPiFW8ALcAfCrdOXaXIsKX2rbE0zvwJy11YR admin@DESKTOP-C2HER9B |
This file contains hidden or 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
| MEDIA_ROOT = os.environ.get('FILER_MEDIA_ROOT', os.path.join(BASE_DIR, 'media')) | |
| MEDIA_URL = '/home/mywebsite/media/' |
This file contains hidden or 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
| from time import sleep | |
| import logging | |
| logging.basicConfig(filename='logging.log', level=logging.DEBUG, | |
| format='%(asctime)s - %(levelname)s - %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p') | |
| for i in range(5): | |
| logging.info("here is someting") | |
| logging.warning('%s before you %s', 'Look', 'leap!') |
This file contains hidden or 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
| version: '3' | |
| services: | |
| db: | |
| image: mysql:5.7 | |
| volumes: | |
| - db_data:/var/lib/mysql | |
| restart: always | |
| environment: | |
| MYSQL_ROOT_PASSWORD: somewordpress |
This file contains hidden or 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
| sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10 |
This file contains hidden or 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
| React.useEffect(() => { | |
| let script = document.createElement("script"); | |
| script.src = "path/to/3rd-party/js/main.js"; | |
| document.getElementsByTagName("head")[0].appendChild(script); | |
| }, []); |
This file contains hidden or 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
| import * as React from 'react'; | |
| import { LaunchProfileQuery } from '../../generated/graphql'; | |
| import './LaunchProfileComponentStyle.css'; | |
| interface Props { | |
| data: LaunchProfileQuery; | |
| } | |
| const className = 'LaunchProfile'; | |
| const LaunchProfile: React.FC<Props> = ({ data }) => { | |
| if (!data.launch) { | |
| return <div>No launch available</div>; |
This file contains hidden or 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
| import React from "react"; | |
| import ReactDOM from "react-dom"; | |
| import "./index.css"; | |
| import App from "./Components/App"; | |
| import * as serviceWorker from "./serviceWorker"; | |
| // Apollo | |
| import ApolloClient from "apollo-boost"; | |
| import { ApolloProvider } from "react-apollo"; |
This file contains hidden or 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
| { | |
| "React FC": { | |
| "prefix": "myfc", | |
| "body": [ | |
| "import React from \"react\";", | |
| "", | |
| "interface I${1:$TM_FILENAME_BASE}State {}", | |
| "const ${1:$TM_FILENAME_BASE}: React.FC<I${1:$TM_FILENAME_BASE}State> = props => {", | |
| " const {} = props;", | |
| " return (", |
NewerOlder