Skip to content

Instantly share code, notes, and snippets.

View untillnesss's full-sized avatar
🐒
JANGAN MUDAH PUAS DAN JANGAN PATAH SEMANGAT

Muhammad Abdullah Sa'id untillnesss

🐒
JANGAN MUDAH PUAS DAN JANGAN PATAH SEMANGAT
View GitHub Profile
$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));
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;
@untillnesss
untillnesss / .bash_aliases
Last active February 16, 2021 05:42
Bash aliases ku
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 langkah2@139.99.62.99"
alias sshyasa="ssh sangpeme@101.50.1.80"
alias startmongo="sudo systemctl start mongod"
@untillnesss
untillnesss / cloudSettings
Last active July 18, 2021 07:40
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-07-18T07:40:00.368Z","extensionVersion":"v3.4.3"}
@untillnesss
untillnesss / helm-cheatsheet.md
Created February 21, 2022 04:31 — forked from etheleon/helm-cheatsheet.md
#Helm #Kubernetes #cheatsheet, happy helming!
void main(){
ExampleReq exampleReq = ExampleReq(
items: [
Item(
idProduct: 1,
isWholesaler: 1,
quantity: 12,
variants: [1,2,3],
),
// 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
@untillnesss
untillnesss / Appx-Uninstaller.ps1
Created August 9, 2023 00:22 — forked from ThioJoe/Appx-Uninstaller.ps1
A basic script for uninstalling a list of app packages in Windows 10/11, including those pre-installed with Windows
# 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
// 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.
@untillnesss
untillnesss / AOMEI Backupper Professional Licence Key 2020.txt
Created August 31, 2020 04:36
AOMEI Backupper Professional Key:
AMPR-90QU8-I7537-Q110J
AMPR-1G8VY-FYX88-749I6
AMPR-T8T3G-R9539-VXTZ2
AMPR-P5S2W-E4M79-8YS86