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
sshfs ubuntu@ip:/home/ubuntu/des /home/yusuf/Documents/des1 -oIdentityFile=/home/yusuf/Desktop/ohio.pem |
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
-------- ----------- | |
- User - - Phone - | |
-------- ----------- | |
- - - user_id - | |
-------- ----------- | |
user->hasOne(phone) | |
phone->belongsTo(user) |
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
sudo su -l www-data -s /bin/bash |
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
https://gitlab.com/Remmina/Remmina/-/issues/1584 | |
Resolution: Custom 1280x960 | |
Color depth: High Color(16 bpp) |
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
https://medium.com/internshala-tech/adding-self-trusted-ssl-certificate-for-localhost-on-ubuntu-nginx-c66d70b22e4b |
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
lsof -i :8000 |
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
f := "apple" | |
//is same as | |
var f = "apple" | |
//is same as | |
var f string = "apple" | |
operators : &&, || | |
Closure | |
func intSeq() func() int { |
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
sudo systemctl is-enabled apache2 | |
sudo systemctl is-active apache2 | |
sudo systemctl enable apache2 | |
sudo systemctl disable apache2 |
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
changes stage changes files should be careful | |
1. reset --soft нет нет нет | |
2. reset [--mixed] да нет нет | |
3. reset --hard да да да |
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
edit /usr/share/phppgadmin/classes/database/Postgres.php | |
comment this on line 1045: | |
$sql = "SELECT relhasoids FROM pg_catalog.pg_class WHERE relname='{$table}' | |
AND relnamespace = (SELECT oid FROM pg_catalog.pg_namespace WHERE nspname='{$c_schema}')"; | |
$rs = $this->selectSet($sql); | |
if ($rs->recordCount() != 1) return null; | |
else { |