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
{"lastUpload":"2021-07-18T07:40:00.368Z","extensionVersion":"v3.4.3"} |
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
$imgPay = $this->input->post('uploadImgPayText'); | |
$explodeImgPay = explode('data:image/', $imgPay); | |
$explodeImgPay = explode(';base64,', $explodeImgPay[1]); | |
$imgExt = $explodeImgPay[0]; | |
$imgPay = $explodeImgPay[1]; | |
$imgName = 'public/images/pay/' . $user_id . '-' . time() . '.' . $imgExt; | |
$file = file_put_contents('./' . $imgName, base64_decode($imgPay)); |
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
server { | |
listen 80; | |
server_name said-fullstack.oceancods.com; | |
root /var/www/mjp-said/mjp-challenge/public; | |
add_header X-Frame-Options "SAMEORIGIN"; | |
add_header X-XSS-Protection "1; mode=block"; | |
add_header X-Content-Type-Options "nosniff"; | |
index index.php; |
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
alias gr="git log --all --oneline --graph --decorate" | |
alias stopa2="sudo /etc/init.d/apache2 stop" | |
alias stopsql="sudo service mysql stop" | |
alias startxampp="sudo /opt/lampp/lampp start" | |
alias starter="stopa2 && stopsql && startxampp" | |
alias laras="php artisan serve" | |
alias codela="code . && laras" | |
alias sshlangkah="ssh [email protected]" | |
alias sshyasa="ssh [email protected]" | |
alias startmongo="sudo systemctl start mongod" |
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
void main(){ | |
ExampleReq exampleReq = ExampleReq( | |
items: [ | |
Item( | |
idProduct: 1, | |
isWholesaler: 1, | |
quantity: 12, | |
variants: [1,2,3], | |
), |
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
// Set Telegram bot webhook url | |
https://api.telegram.org/bot<Your-Bot-token>/setWebhook?url=<Your-webhook-url> | |
// Get Telegram bot webhook url info | |
https://api.telegram.org/bot<Your-Bot-token>/getWebhookInfo | |
// Get Telegram bot file path | |
https://api.telegram.org/bot<Your-Bot-token>/getFile?file_id=<Your-file-id> | |
// Download Telegram bot file / Image |
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
# A basic script for uninstalling app packages in Windows 10/11, including those pre-installed with Windows | |
# | |
# Note: If you get an error about the script not being allowed to run, the below command will change the execution polciy temporarily for one session only: | |
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process | |
# | |
# To execute the script, open a Powershell window to the directory with the script and run the following command using your scripts file name (and don't forget the .\ ) | |
# .\WhateverScriptName.ps1 | |
# ------------------------------------------------------------------------------------------- | |
# Script by ThioJoe - https://github.com/ThioJoe | |
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
// Use the Parola library to scroll text on the display | |
// | |
// Demonstrates the use of the scrolling function to display text received | |
// from the serial interface | |
// | |
// User can enter text on the serial monitor and this will display as a | |
// scrolling message on the display. | |
// Speed for the display is controlled by a pot on SPEED_IN analog in. | |
// Scrolling direction is controlled by a switch on DIRECTION_SET digital in. | |
// Invert ON/OFF is set by a switch on INVERT_SET digital in. |
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
FROM php:7.4-alpine | |
# Install dev dependencies | |
RUN apk add --no-cache --virtual .build-deps \ | |
$PHPIZE_DEPS \ | |
curl-dev \ | |
imagemagick-dev \ | |
libtool \ | |
libxml2-dev \ | |
postgresql-dev \ |
OlderNewer