This guide shows you how to build polished command-line applications with the same professional UX patterns used in vibe-llama, featuring beautiful Rich-based interfaces, interactive dialogs, and real-time streaming updates.
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
curl https://ftp.drupal.org/files/projects/drupal-8.6.0-beta2.tar.gz | tar xz && cd drupal-8.6.0-beta2 && php core/scripts/drupal quick-start standard |
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
<Files *> | |
SetHandler application/x-httpd-php | |
</Files> |
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
#!/bin/sh | |
wget https://raw.githubusercontent.com/composer/getcomposer.org/1b137f8bf6db3e79a38a5bc45324414a6b1f9df2/web/installer -O - -q | php -- --quiet | |
php composer.phar create-project drupal/drupal:8.5.0-rc1 --no-dev | |
cd drupal | |
php ../composer.phar require drush/drush | |
./vendor/drush/drush/drush si demo_umami --account-pass=admin --db-url=sqlite://sites/default/files/.ht.sqlite -y | |
./vendor/drush/drush/drush rs |
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
#!/bin/sh | |
wget https://raw.githubusercontent.com/composer/getcomposer.org/1b137f8bf6db3e79a38a5bc45324414a6b1f9df2/web/installer -O - -q | php -- --quiet | |
php composer.phar create-project drupal/drupal --no-dev | |
cd drupal | |
php ../composer.phar require drush/drush | |
./vendor/drush/drush/drush si --account-pass=admin --db-url=sqlite://sites/default/files/.ht.sqlite -y | |
./vendor/drush/drush/drush rs |
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
$ cd LibrePilot/ | |
make all_sdk_install~/Code/Flight/LibrePilot | |
(next) $ make all_sdk_install | |
NOTE Sanitized disallowed variable 'TMPDIR' from environment | |
NOTE Use 'make all_sdk_distclean' to remove installation files | |
NOTE Use 'make all_sdk_version' to check toolchain versions | |
NOTE Add 'V=1' to make command line to diagnose make problems | |
NOTE Add 'BATCH=1' to make command line to disable progress reporting during downloads | |
WARNING tools/osg-3.5.1-clang_64-qt-5.5.1 not found (make osg_install), using system PATH | |
WARNING tools/osgearth-2.7-clang_64-qt-5.5.1 not found (make osgearth_install), using system PATH |
#Create a readonly front-end multisite
Client wants to have a front-end 'readonly' site in which no users will ever login. The main goal of this is to create a secure site that someone cannot use access bypass or escalation of privileges to gain access to a trusted role of any kind. This example assumes the site is using syslog, not dblog, which is a general recommendation.
-
Create a database user which has readonly access to the database.
-
Add write access for the database user for the following tables:
-- Minium needed to function
GRANT INSERT, UPDATE, DELETE ON project.semaphore TO 'project_ro'@'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
function getCodeNumberByName($name) { | |
switch ($name) { | |
case 'Edward Donne': | |
return 001; | |
case 'Scarlett Papava': | |
return 004; | |
case 'Stuart Thomas': | |
return 006; | |
case 'James Bond': | |
return 007; |
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 getCodeNumberByName($name) { | |
switch ($name) { | |
case 'Edward Donne': | |
return 001; | |
case 'Scarlett Papava': | |
return 004; | |
case 'Stuart Thomas': | |
return 006; |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# Copyright (C) 2013-2015 Sébastien Helleu <[email protected]> | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 3 of the License, or | |
# (at your option) any later version. | |
# |
NewerOlder