Skip to content

Instantly share code, notes, and snippets.

View revell29's full-sized avatar
⌨️
Keep learning...

Apsyadira revell29

⌨️
Keep learning...
View GitHub Profile
@revell29
revell29 / deep-link-from-browser.js
Created April 18, 2022 18:20 — forked from diachedelic/deep-link-from-browser.js
Deep link to a native app from a browser, with a fallback
@revell29
revell29 / BCA_API.php
Created August 14, 2019 10:23 — forked from dertajora/BCA_API.php
This is my code when learn to use BCA API for my office. This code only works on Sandbox environment and there is no confidential information here. FYI, based on my experience if you want to implement this code using real environment of BCA API, you need to do some UAT with BCA side.
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class BCAAPI extends MY_Controller {
function __construct(){
$this->api_key = "YOUR API KEY";
$this->api_secret = "YOUR API SECRET";
$this->client_id = "YOUR CLIENT ID";
@revell29
revell29 / nginx-tuning.md
Created April 29, 2019 07:09 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

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.

# Connection
mpd_host = "127.0.0.1"
mpd_port = "6600"
mpd_music_dir = "~/Music"
mpd_connection_timeout = "5"
mpd_crossfade_time = "1"
# Visualizer
visualizer_fifo_path = "/tmp/mpd.fifo"
visualizer_output_name = "FIFO"
@revell29
revell29 / gist:21115a32d4a6f94c5d8774f178c5ef98
Created October 26, 2016 12:58
tint2_config_flatdesign
# Tint2 config file
# Generated by tintwizard (http://code.google.com/p/tintwizard/)
# For information on manually configuring tint2 see http://code.google.com/p/tint2/wiki/Configure
# To use this as default tint2 config: save as $HOME/.config/tint2/tint2rc
# Background definitions
# ID 1
rounded = 0
border_width = 0
@revell29
revell29 / .Xresources
Created June 13, 2016 06:05
Urxvt config with Powerline
!- Font Render
Xft.dpi:96
Xft.antialiasing:false
Xft.rgba:rgb
Xft.hinting:true
Xft.lcdfilter:lcddefault
*.cursorColor: #ebac54
URxvt.foreground: #2940FF