$ vim /etc/profile.d/envvars.sh
export SCALA_ENV="prod"
export SPARK_HOME="/home/sparkuser/spark"
export PATH=$PATH:$SPARK_HOME
| package main | |
| import ( | |
| "log" | |
| "os" | |
| "os/user" | |
| "path/filepath" | |
| "strings" | |
| "time" | |
| ) |
$ vim /etc/profile.d/envvars.sh
export SCALA_ENV="prod"
export SPARK_HOME="/home/sparkuser/spark"
export PATH=$PATH:$SPARK_HOME
class Test(object):
one = 1
two = 2
print([k for k,v in Test.__dict__.items() if not k.startswith("__")])```
| from time import sleep | |
| from tqdm import trange | |
| for i in trange(remaining.seconds, leave=True): | |
| sleep(1) | |
| # time.sleep(remaining.seconds) |
| # Ignore everything in this directory | |
| * | |
| # Except this file | |
| !.gitignore |
Case1:
Define Base.init(self)
class Base(object):
def __init__(self):
self.anattribute = 23
class Derived(Base):
def __init__(self):
Base.__init__(self)
| 043448c231e45ef9424e9c9a01d34b54adb06e6c27a3b67401767f35b231776f527c8c09411b24bde5703f44bd3a20889f10df9f2713154d27b61dddfc373e0541 |
Check lsblk to confirm the correct usb device ann use the group for eg. if the device is /dev/sdd1
then use /dev/sdd as the group
sudo dd bs=4M if=/home/user/Downloads/Fedora-Workstation-Live-x86_64-27-1.6.iso of=/dev/sdd conv=fdatasync
| # Make a steemit out of it | |
| # Delete unwanted commits from your branch | |
| git reset --hard last_working_commit_you_want | |
| git push origin master/your-branch --force | |
| # Revert a commit to a previous version | |
| git revert --no-commit b6ce5d5 |