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 find . -type f | xargs chmod -v 664 | |
sudo find . -type d | xargs chmod -v 775 | |
sudo chmod -R u=rwX,g=rwX,o=rX . | |
sudo chown -R ubuntu:www-data . |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Array.indexOf(searchElement, fromIndex) |
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
<?php | |
header("HTTP/1.0 404 Not Found"); | |
echo '<html> | |
<head> | |
<meta http-equiv="Refresh" content="0;url=http://www.mysite.com/index.php?code=404" /> | |
</head><body></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
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
cout << "Size of char: " << sizeof(char) << " byte" << endl; | |
cout << "Size of int: " << sizeof(int) << " bytes" << endl; | |
cout << "Size of float: " << sizeof(float) << " bytes" << endl; | |
cout << "Size of double: " << sizeof(double) << " bytes" << endl; |
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
# Web server default file location: | |
Nginx / Apache (Linux OS): /var/www/html | |
IIS (Windows OS): C:\inetpub\wwwroot | |
NodeJS: ??? |
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 the .exe |
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
# Replace os with shutil | |
import shutil | |
shutil.get_terminal_size() |
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
# importing libraries | |
import urllib.request | |
from PyQt5.QtWidgets import * | |
import sys | |
class GeeksforGeeks(QWidget): | |
def __init__(self): | |
super().__init__() | |
OlderNewer