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
# Functions | |
function enc() { gpg --output $1.e --encrypt --recipient [email protected] $1; } | |
function dec() { gpg --output $1 --decrypt $1.e; } |
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
<html lang="en"> | |
<body><noscript>You need to enable JavaScript to run this app.</noscript> | |
<div id="root"></div> | |
<script type="text/javascript" src="http://localhost/main.c9cd54b9.chunk.js"></script> | |
</body> | |
</html> |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<link rel="shortcut icon" href="/favicon.ico" /> | |
<meta name="viewport" content="width=device-width,initial-scale=1" /> | |
<meta name="theme-color" content="#000000" /> | |
<meta name="description" content="Web site created using create-react-app" /> | |
<link rel="apple-touch-icon" href="logo192.png" /> |
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
<html> | |
Hello World | |
</html> |
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
$ create-react-app hello-react |
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
# Remove foreman | |
yum remove foreman foreman-installer foreman-proxy | |
rm -rf /var/lib/foreman /usr/share/foreman /usr/share/foreman-proxy/logs | |
# Remove puppet | |
yum remove puppet puppetmaster puppet-common puppetmaster-common puppetlabs-release | |
rm -rf /usr/lib/ruby/vendor_ruby/puppet /usr/share/puppet /var/lib/puppet /etc/puppet |
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
FROM mcr.microsoft.com/powershell:6.2.1-nanoserver-1803 | |
COPY HelloWorld.ps1 / | |
CMD ["pwsh", "HelloWorld.ps1"] |
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
# In this exercise we are going through the Docker fundamental commands. | |
# After completing this lab, you are expected to know how to: | |
# | |
# a. find Docker images | |
# b. run containers | |
# c. stop containers | |
# d. delete containers | |
# | |
# Docker Intro Session Lab - James Attard (2019) |
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
import { | |
FETCHING_NOTES, | |
FETCH_NOTES, | |
FETCH_NEW_NOTE, | |
FETCH_UPDATED_NOTE, | |
FETCH_CLOSED_NOTE | |
} from "../actions/types"; | |
const initialState = { | |
list: [], |
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
setCoords = coords => { | |
this.setState({ | |
lat: coords.lat, | |
lng: coords.lng | |
}); | |
}; | |
componentDidMount() { | |
let geocoder = new window.google.maps.Geocoder(); | |
geocoder.geocode( |
NewerOlder