- ✅ Multi-tenant architecture
- ✅ Multi-database setup for tenant isolation
- ✅ Central user management system
- ✅ Tenant management and onboarding
- ✅ Role-based access control (RBAC)
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 pyarr.radarr import RadarrAPI | |
from datetime import datetime, timedelta | |
# Radarr API URL and API key | |
RADARR_URL = "http://radarr_url:port" | |
API_KEY = "your_api_key" | |
# Number of days to keep items before deletion | |
DAYS_TO_KEEP = 30 # Change this as needed |
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 pyarr.sonarr import SonarrAPI | |
from datetime import datetime, timedelta | |
# Sonarr API URL and API key | |
SONARR_URL = "http://sonarr_url:port" | |
API_KEY = "your_api_key" | |
# Number of days to keep items before deletion | |
DAYS_TO_KEEP = 30 # Change this as needed |
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
.dark { | |
.fi-body { | |
background: #111827 !important; | |
} | |
} | |
.dark { | |
.fi-wi-stats-overview-stat, .fi-ta-ctn, .fi-section, | |
& nav:not(.fi-sidebar-nav):not(.fi-breadcrumbs), .fi-sidebar-header, | |
.fi-dropdown-panel, .fi-modal-window, .tiptap-prosemirror-wrapper, |
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
<?php | |
namespace App\Providers; | |
use Laravel\Scout\Builder; | |
use Illuminate\Support\ServiceProvider; | |
class ScoutMacroServiceProvider extends ServiceProvider | |
{ | |
/** |
- You need to install python and pip. You can Google your way through that part of it.
- Next, open up terminal and clone the repository.
git clone https://github.com/memelyfe/pokemongo-api-demo.git
to your home directory. I assume you're terminal opens up there, but maybecd ~
if not. cd ~/pokemongo-api-demo
git checkout maps
pip install -r requirements.txt
- Now we need an api key for Google Maps Javascript Library. I'm not going to walk you through this whole process, but you start at https://console.developers.google.com/ by creating a new project. Then, enabling the API you need.
- Once you have the api key, back to terminal
nano ~/pokemongo-api-demo/config.json
and enter the api key where it tells you. cntrl+O to save; - Whew, next get your current coordinates from your choice, but here's one.
https://whereamirightnow.com/
. I prefer this over using a city/state, but you can also do that. - Be sure to have your Pokemon Trainer Club login handy. I don't think it works
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
//Great for validating twitter / telegra usernames ('telegram' => 'begins_with:@') | |
$this->app['validator']->extend('begins_with', function($attribute, $value, $parameters, $validator) use ($zipCode) { | |
return $value[0] == $parameters[0]; | |
}); |
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
<?php | |
function getTweets($hash_tag) { | |
$url = 'http://search.twitter.com/search.atom?q='.urlencode($hash_tag) ; | |
echo "<p>Connecting to <strong>$url</strong> ...</p>"; | |
$ch = curl_init($url); | |
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, TRUE); | |
$xml = curl_exec ($ch); | |
curl_close ($ch); |
None of this is production code, but me trying to figure out how to work multiple datasets into a Laravel project with chartjs. Here's my table schema
Schema::create('statistics', function (Blueprint $table) {
$table->increments('id')->unsigned();
$table->string('type');
$table->string('table');
$table->integer('count');
$table->timestamps();
});
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
# first you should try the NFS vagrant plugin (https://github.com/fideloper/Vaprobash/issues/146) | |
# Below is another option if that doesn't work. | |
# Use NFS for the shared folder | |
config.vm.synced_folder ".", "/vagrant", | |
id: "core", | |
:nfs => false, | |
:mount_options => ["dmode=777", "fmode=777"] |