Skip to content

Instantly share code, notes, and snippets.

View masitings's full-sized avatar
🏠
Working from home

Rafi Bagaskara Halilintar masitings

🏠
Working from home
View GitHub Profile
@masitings
masitings / probability-bean-2760.tsv
Created May 4, 2023 09:44
Probability of winning the programmes of Bean #2760
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
"Total Ticket","Probability","Wallet Address"
"43","9.62%","0x3D3...74d46"
"40","8.95%","0x03c...9269e"
"27","6.04%","0xd78...f7697"
"16","3.58%","0x777...a1e57"
"15","3.36%","0xaC6...13cdd"
"13","2.91%","0x5b6...270EC"
"11","2.46%","0x781...68a67"
"9","2.01%","0x402...A2621"
"8","1.79%","0xdD6...9CEf6"
@masitings
masitings / probability-bean-2760.csv
Created May 4, 2023 09:42
Probability of winning the programmes of Bean #2760
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
"Total Ticket","Probability","Wallet Address"
"43","9.62%","0x3D3...74d46"
"40","8.95%","0x03c...9269e"
"27","6.04%","0xd78...f7697"
"16","3.58%","0x777...a1e57"
"15","3.36%","0xaC6...13cdd"
"13","2.91%","0x5b6...270EC"
"11","2.46%","0x781...68a67"
"9","2.01%","0x402...A2621"
"8","1.79%","0xdD6...9CEf6"
@masitings
masitings / probability-bean-2760.tsv
Created May 4, 2023 09:12
Probability of winning the programmes of Bean #2760
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
"Total Ticket","Probability","Wallet Address"
"43","9.62%","0x3D3...74d46"
"40","8.95%","0x03c...9269e"
"27","6.04%","0xd78...f7697"
"16","3.58%","0x777...a1e57"
"15","3.36%","0xaC6...13cdd"
"13","2.91%","0x5b6...270EC"
"11","2.46%","0x781...68a67"
"9","2.01%","0x402...A2621"
"8","1.79%","0xdD6...9CEf6"
@masitings
masitings / README.md
Created May 4, 2023 09:12
Probability of winning the programmes of Bean #2760

ADadeh

@masitings
masitings / laravel-socket-io.md
Created September 14, 2022 02:16 — forked from brainlagid/laravel-socket-io.md
Setup Laravel with Socket.io [Ubuntu 20.04]

Server Requirement

  • Redis sudo apt install redis-server
  • Composer here
  • npm sudo apt install nodejs npm
  • laravel-echo-server npm install -g laravel-echo-server

Laravel Dependencies Requirement

  • predis
  • laravel-echo
  • socket.io-client ^2.4.0 issue
@masitings
masitings / imagick3.4.4-PHP7.4-forge.sh
Created April 11, 2022 11:34 — forked from danielstgt/imagick3.4.4-PHP7.4-forge.sh
Install ImageMagick / Imagick 3.4.4 on PHP 7.4 server (Laravel Forge)
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
apt-get install pkg-config libmagickwand-dev -y
cd /tmp
wget https://pecl.php.net/get/imagick-3.4.4.tgz
tar xvzf imagick-3.4.4.tgz
{"lastUpload":"2020-08-31T19:50:52.147Z","extensionVersion":"v3.4.3"}
@masitings
masitings / nginx-tuning.md
Created April 9, 2020 17:34 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

@masitings
masitings / cloudSettings
Created March 28, 2020 03:14 — forked from sarthaksavvy/cloudSettings
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-01-29T09:00:59.907Z","extensionVersion":"v3.4.3"}
@masitings
masitings / Instructions.sh
Created February 9, 2020 15:19 — forked from GhazanfarMir/Instructions.sh
Install PHP7.2 NGINX and PHP7.2-FPM on Ubuntu 16.04
########## Install NGINX ##############
# Install software-properties-common package to give us add-apt-repository package
sudo apt-get install -y software-properties-common
# Install latest nginx version from community maintained ppa
sudo add-apt-repository ppa:nginx/stable
# Update packages after adding ppa