Skip to content

Instantly share code, notes, and snippets.

@tomexsans
tomexsans / .env
Created April 12, 2024 06:56
LARAVEL + REVERB + NGINX on GCP
REVERB_APP_ID=*****
REVERB_APP_KEY=*****
REVERB_APP_SECRET=*****
REVERB_HOST=your-domain-here.com
REVERB_PORT=44444
REVERB_SCHEME=https
VITE_REVERB_APP_KEY="${REVERB_APP_KEY}"
VITE_REVERB_HOST="${REVERB_HOST}"
VITE_REVERB_PORT="${REVERB_PORT}"
@tomexsans
tomexsans / .htaccess
Created June 12, 2018 07:22 — forked from keithmorris/.htaccess
CodeIgniter .htaccess file
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
function _curl($url,$fields)
{
$fields_string = '';
//url-ify the data for the POST
foreach($fields as $key=>$value) {
$fields_string .= $key.'='.$value.'&';
}
rtrim($fields_string, '&');
//open connection
@tomexsans
tomexsans / main.rs
Created March 18, 2018 05:30
Fibonacci Rust, rust-lang fibonacci
//practice
fn main(){
println!("-------------------");
println!("{}",fibo(45));
println!("-------------------");
}
fn fibo(n : i32) -> i32 {