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
# 1. First of all of course get Manjaro: | |
https://manjaro.org/get-manjaro/ | |
# I recommend using Etcher to copy the image to your USB: | |
https://etcher.io/ | |
# 2. Before installing make sure: | |
# - Secure boot is disabled in BIOS | |
# - Your SSD, HDD or NVME drive is set to AHCI instead of RAID | |
# - Fastboot should be on Auto or minimal, but this shouldn't matter to much |
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
SELECT | |
SYSDATE, | |
TRUNC (SYSDATE) as truncated, -- truncate to 12:00AM | |
TRUNC (SYSDATE) + 17/24 as t_5PM, -- 5PM | |
SYSDATE + (60 * 5) / 1440 AS t_5h, -- Plus 5 hours in the current time | |
NEXT_DAY(TRUNC(SYSDATE),'FRIDAY') "NEXT DAY" -- Next friday 12AM | |
FROM DUAL; |
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
abstract class Alert { | |
abstract show = (): string => ""; | |
} | |
class AlertIOS extends Alert { | |
show = (): string => "[Alert IOS]"; | |
} | |
class AlertLinux extends Alert { | |
show = (): string => "[Alert Linux]"; | |
} |
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
abstract class Beverega { | |
abstract cost(): Number; | |
} | |
abstract class AddonDecorator extends Beverega { | |
public abstract cost(): Number; | |
} | |
class Expresso extends Beverega { | |
public cost(): Number { |
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
interface IObserver { | |
update(): void; | |
} | |
interface IObservable { | |
add(observer: IObserver): void; | |
remove(Obsever: IObserver): void; | |
notify(): void; | |
} |
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
To change the environmental variable "permanently" you'll need to consider at least these situations: | |
Login/Non-login shell | |
Interactive/Non-interactive shell | |
bash | |
Bash as login shell will load /etc/profile, ~/.bash_profile, ~/.bash_login, ~/.profile in the order | |
Bash as non-login interactive shell will load ~/.bashrc | |
Bash as non-login non-interactive shell will load the configuration specified in environment variable $BASH_ENV | |
$EDITOR ~/.bashrc |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |