-
Install Laravel
composer create-project laravel/laravel example-app
-
Use in project folder
npm i bootstrap
-
Copy the css and js folders from the following locations
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
127.0.0.1 localhost | |
255.255.255.255 broadcasthost | |
::1 localhost | |
fe80::1%lo0 localhost |
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
[alias] | |
b = "!git for-each-ref --sort='-authordate' --format='%(authordate)%09%(objectname:short)%09%(refname)' r efs/heads | sed -e 's-refs/heads/--'" |
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
Log uploaded on Monday, October 7, 2024, 4:17:54 AM | |
Loaded mods: | |
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1) | |
Core(Ludeon.RimWorld): (no assemblies) | |
Royalty(Ludeon.RimWorld.Royalty): (no assemblies) | |
Ideology(Ludeon.RimWorld.Ideology): (no assemblies) | |
Biotech(Ludeon.RimWorld.Biotech): (no assemblies) | |
Anomaly(Ludeon.RimWorld.Anomaly): (no assemblies) | |
HugsLib(UnlimitedHugs.HugsLib)[ov:11.0.4]: 0Harmony(av:2.3.3,fv:1.2.0.1), HugsLib(av:1.0.0,fv:11.0.4) | |
(Dirty) Windows(ANumeric.dirtyWindows): OpenTheWindows(av:2.7.6,fv:2.7.6) |
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
ll will usually ls, but if you add any argument, it will run bat (fzf) (to view the file) | |
```bash | |
ll () { | |
if (( $# == 0 )); then | |
ls -alF | |
else | |
bat $(fzf) $1 | |
fi | |
} |
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
function uniqid(prefix = "", random = false) { | |
const sec = Date.now() * 1000 + Math.random() * 1000; | |
const id = sec.toString(16).replace(/\./g, "").padEnd(14, "0"); | |
return `${prefix}${id}${random ? `.${Math.trunc(Math.random() * 100000000)}`:""}`; | |
}; |
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
# Kill rails server and guard | |
bin/spring stop | |
brew services stop mysql | |
brew uninstall mysql | |
brew install [email protected] | |
brew link [email protected] --force | |
brew services start [email protected] | |
rbenv uninstall 2.3.3 | |
rbenv install 2.3.3 | |
gem install bundle |
For a lighter LaunchDarkly-style feature toggling service on AWS, you could focus on these essential features:
Feature Flag Management: Enable users to create, update, and delete feature flags, with options for boolean (on/off), multivariate (e.g., A/B tests), and gradual rollout.
Targeting Rules: Allow users to set rules based on attributes (e.g., user groups, environment, geographic location). This could involve assigning attributes to toggle specific users or cohorts.
Environment Support: Provide support for managing flags across multiple environments (e.g., development, staging, production), allowing easy promotion of configurations between them.
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
/** | |
* Mass (bulk) insert or update on duplicate for Laravel 4/5 | |
* | |
* insertOrUpdate([ | |
* ['id'=>1,'value'=>10], | |
* ['id'=>2,'value'=>60] | |
* ]); | |
* | |
* | |
* @param array $rows |