curl -XGET -H 'Referer: http://www.nettruyenco.com/' 'http://i551.ntcdntempv26.com/data/images/41411/833586/001.jpg?data=net' --output image.jpg
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
# >_ Gingteam 2022 | |
sudo apt-get update -y | |
wget https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb | |
sudo apt install --assume-yes ./chrome-remote-desktop_current_amd64.deb | |
sudo DEBIAN_FRONTEND=noninteractive \ | |
apt install --assume-yes gnome-session-flashback nautilus gnome-terminal firefox-esr |
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
# >_ Gingteam 2022 | |
sudo apt-get update -y | |
wget https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb | |
sudo apt install --assume-yes ./chrome-remote-desktop_current_amd64.deb | |
sudo DEBIAN_FRONTEND=noninteractive \ | |
apt install --assume-yes gnome-session-flashback nautilus gnome-terminal firefox |
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
<?php | |
require __DIR__.'/vendor/autoload.php'; | |
use Symfony\Component\HttpClient\HttpClient; | |
$client = HttpClient::create(); | |
$response = $client->request('GET', 'https://api.openweathermap.org/data/2.5/weather?lat=21.593700&lon=105.844513&appid=9180be2fb7b4e63ec3025dd22d8f0023'); | |
foreach ($response->toArray()['weather'] as $weather) { |
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
<?php | |
$objPHPExcel = new PHPExcel(); | |
$objPHPExcel->getProperties()->setCreator("Govinda") | |
->setLastModifiedBy("Govinda") | |
->setTitle("Office 2007 XLSX Test Document") | |
->setSubject("Office 2007 XLSX Test Document") | |
->setDescription("Test document for Office 2007 XLSX, generated using PHP classes.") | |
->setKeywords("office 2007 openxml php") | |
->setCategory("Test result file"); |
- Upload và giải nén code
- Vào App store, cài php 8.2
- Vào phần setting của php 8.2 trên appstore > configuration file, tìm dòng
disable_functions=...
xóa đi và lưu lại - Vào terminal của website chạy lệnh
composer update
- Vào conf của website:
- Chọn
site directory
, trỏsite directory
đến thư mụcpublic
của code > save, đồng thời tắtAnti-XSS attack (Base directory limit)(open_basedir)
trên góc. - Tại phần url rewrite thêm:
location / {
- Chọn
try_files $uri @rewriteapp;
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
s = input() | |
digits = {0: 6, 1: 2, 2: 5, 3: 5, 4: 4, 5: 5, 6: 6, 7: 3, 8: 7, 9: 6} | |
total = 0 | |
for num in s: | |
total += digits[int(num)] | |
def max_number(n: int, cost: int): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.