####Lecture 1####
Compiler
: Pre-processes the code -> executable + data -> run
Interpreter
: data + code -> run
Fortran => Formula Translation -> First high level successful language
Modern compilers still preserve the outline of Fortran.
[Unit] | |
Description=Service that restarts my spread_goodness.service every two hours. | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/bin/systemctl try-restart spread_goodness.service |
################################################################# | |
# = This script transfers bash history to zsh history | |
# = Change bash and zsh history files, if you don't use defaults | |
# | |
# = Usage: ruby bash_to_zsh_history.rb | |
# | |
# = Author: Ankit Goyal | |
################################################################# | |
# change if you don't use default values |
import typing | |
from flytekit import task, workflow, get_reference_entity, kwtypes | |
from flytekit.models.core.identifier import ResourceType | |
from typing import Dict# noqa: E402 | |
@task | |
def say_hello() -> str: | |
return "hello world" |
####Lecture 1####
Compiler
: Pre-processes the code -> executable + data -> run
Interpreter
: data + code -> run
Fortran => Formula Translation -> First high level successful language
Modern compilers still preserve the outline of Fortran.
# Copyright 2019, The TensorFlow Federated Authors. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
Docker cheatsheet.
To get the list of commands:
$ docker
To search for images in docker index:
$ docker search tutorial
1) Filter Table
Filter is default table for iptables. So, if you don’t define you own table, you’ll be using filter table. Iptables’s filter table has the following built-in chains.
#!/usr/bin/perl | |
# Copyright Ben Maurer | |
# you can distribute this under the MIT/X11 License | |
my $pid=shift @ARGV; | |
unless ($pid) { | |
print "./smem.pl <pid>\n"; | |
exit 1; | |
} |
{ | |
"ociVersion": "1.0.0", | |
"process": { | |
"terminal": false, | |
"user": { | |
"uid": 0, | |
"gid": 0 | |
}, | |
"args": [ | |
"sh" |