sudo pacman -S linux-headers
sudo pacman -S broadcom-wl
nmcli device wifi list
nmcli device wifi connect SSID password PASSWORD
if group_id:
group_path = getGroupPathById(file_path, group_id)
new_tab = newTab(new_group_name)
new_group = newGroup(new_group_name)
exec(f"{group_path}['sub_fields'].append({new_tab})")
exec(f"{group_path}['sub_fields'].append({new_group})")
newData = json.dumps(data, indent=4)
alias wp_py="/home/serii/Documents/python/python-wp-files/wp.py"
#! /bin/bash
if [ ! -f requirements.txt ]; then
echo "requirements.txt not found"
exit 1
fi
COLUMNS=1
select action in "Init" "Install Package" "Install all" "Uninstall" "Freeze" "Exit"; do
case $action in
"Init")
#getcurrentdir
current_dir=$(pwd)
current_dir_name="venv-"$(basename $current_dir)
python3 -m venv $current_dir_name
source "${current_dir_name}/bin/activate"
touch requirements.txt
pip freeze
pip install -r requirements.txt
;;
"Install Package")
read -p "Enter the package name: " package_name
pip install $package_name
pip freeze > requirements.txt
;;
"Install all")
pip install -r requirements.txt
;;
"Uninstall")
read -p "Enter the package name: " package_name
pip uninstall $package_name
pip freeze > requirements.txt
;;
"Freeze")
pip freeze > requirements.txt
;;
"Exit")
exit 0
;;
*)
echo "Invalid option"
;;
esac
done
read -p "Enter the package name: " package_name
docker-compose down
docker images
docker rmi image_id
# Use root/example as user/password credentials
version: '3.1'
services:
nginx:
container_name: nginx_laravel9
build:
context: .
dockerfile: docker/nginx.docker
volumes:
- ./:/var/www
# - ./docker/nginx/ssl:/etc/nginx/ssl
ports:
- "8088:80"
links:
- php-fpm
php-fpm:
container_name: php_laravel9
build:
context: .
dockerfile: docker/php/Dockerfile
restart: unless-stopped
tty: true
working_dir: /var/www
volumes:
- ./:/var/www
- ./docker/php/local.ini:/usr/local/etc/php/conf.d/local.ini
links:
- mysql
mysql:
container_name: mysql_laravel9
image: mysql:8.3.0
restart: always
environment:
# MYSQL_ROOT_USER: root
# MYSQL_ROOT_PASSWORD: root
MYSQL_PASSWORD: root
volumes:
- "./docker/mysql:/var/lib/mysql"
ports:
- "33062:3306"
command: --authentication_policy=mysql_native_password
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin_laravel9
restart: always
ports:
- '8084:80'
environment:
MAX_EXECUTION_TIME: 600
UPLOAD_LIMIT: 800M
PMA_HOST: mysql
PMA_PORT: 3306
PMA_ARBITRARY: 1
depends_on:
- mysql
@font-face {
font-family: Inter;
font-display: swap;
src: url("/wp-content/themes/bs-base-vite/assets/fonts/Inter-Bold.woff2") format("woff2"),
url("/wp-content/themes/bs-base-vite/assets/fonts/Inter-Bold.woff") format("woff");
font-weight: 700;
font-style: normal;
}
exec_always --no-startup-id lxpolkit
exec_always --no-startup-id /usr/bin/skypeforlinux;
exec_always --no-startup-id /usr/bin/google-chrome;
exec_always --no-startup-id /usr/bin/copyq;
exec_always --no-startup-id /usr/bin/local;
exec_always --no-startup-id /home/serii/.local/share/JetBrains/Toolbox/scripts/phpstorm;
assign [class="bomi" instance="bomi"] → 1
assign [class="figma-linux" instance="figma-linux"] → 1
assign [class="Code"] → 2
assign [class="jetbrains-phpstorm"] → 2
# assign [class="Google-chrome"] → 1
assign [class="Skype"] → 4
assign [class="Slack"] → 5
assign [class="firefox"] → 5
assign [class="Local" instance="local"] 6
assign [class="TelegramDesktop" instance="telegram-desktop"] → 7
assign [class="qBittorrent" instance="qbittorrent"] → 8
assign [class="Audacious" instance="audacious"] → 9
assign [class="Gimp" instance="gimp"] → 10
workspace 1 output VGA-1
workspace 2 output DP-2
workspace 4 output DP-2
workspace 6 output DP-2
# for_window [class="figma-linux"] focus
for_window [class="Skype"] focus
# for_window [class="Slack"] focus
# for_window [class="firefox"] focus
for_window [class="jetbrains-phpstorm"] focus
# for_window [class="Code"] focus
const path = require('path');
const miniCss = require('mini-css-extract-plugin');
const BrowserSyncPlugin = require('browser-sync-webpack-plugin');
const url = "http://bsbase.local/";
module.exports = {
mode: 'development',
// mode: 'production',
entry: './assets/src/js/main.js',
output: {
path: path.resolve(__dirname, 'assets/js'),
filename: 'webpack.js'
},
devtool: 'source-map',
module: {
rules: [
{
test: /\.(scss|css)$/,
use: [
miniCss.loader,
{
loader: 'css-loader',
options: {
url: false,
sourceMap: true
},
},
{
loader: "sass-loader",
options: {
sourceMap: true,
},
},
],
},
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader',
}
],
},
plugins: [
new miniCss({
filename: '../css/my.css',
}),
new BrowserSyncPlugin(
// BrowserSync options
{
// browse to http://localhost:3000/ during development
host: 'localhost',
port: 3000,
// proxy the Webpack Dev Server endpoint
// (which should be serving on http://localhost:3100/)
// through BrowserSync
proxy: url,
open: false,
notify: true,
reloadDelay: 500,
injectChanges: true,
files: [
{
match: [
'**/*.php',
'**/*.js',
'**/*.css',
],
fn: function (event, file) {
if (event === "change") {
const bs = require('browser-sync').get('bs-webpack-plugin');
bs.reload();
}
}
}
]
},
// plugin options
{
// prevent BrowserSync from reloading the page
// and let Webpack Dev Server take care of this
reload: false
}
)
]
};
$date_now = date('Y-m-d');
$volantino = new WP_Query([
'post_type' => 'cataloghi',
'posts_per_page' => -1,
'post_status' => array('publish'),
'meta_query' => array(
array(
'key' => 'data_fine_pubblicazione',
'value' => $date_now,
'type' => 'date',
'compare' => '>='
)
),
'tax_query' => [
[
'taxonomy' => 'categoria_volantino',
'field' => 'term_id',
'terms' => $term_id,
],
],
]);
Plug 'nvim-telescope/telescope.nvim', { 'tag': '0.1.0' }
lua << EOF
require('telescope').load_extension('projects')
EOF
" require'alpha'.setup(require'alpha.themes.dashboard'.config)
lua << EOF
local alpha = require'alpha'
local dashboard = require'alpha.themes.dashboard'
dashboard.section.header.val = 'foo'
dashboard.section.buttons.val = {
dashboard.button("f", " Find file", ":Telescope find_files <CR>"),
dashboard.button("p", " Find project", ":Telescope projects <CR>"),
dashboard.button("r", " Recently used files", ":Telescope oldfiles <CR>"),
dashboard.button("c", " Configuration", ":e ~/.config/nvim/init.vim <CR>"),
dashboard.button("q", " Quit Neovim", ":qa<CR>"),
}
alpha.setup(dashboard.opts)
EOF
Plug 'ahmedkhalf/project.nvim'
lua << EOF
require("project_nvim").setup {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
}
EOF
onSubmit() {
let form = new FormData();
for (let key in this.form) {
form.append(key, this.form[key]);
}
form.append('_method', 'PUT');
axios
.post("/api/auth/employee/" + this.$route.params.id, form)
.then((res) => {
console.log(res.data, "res");
// this.$router.push({ name: "admin.employee" });
})
.catch((error) => {
this.errors = error.response.data.errors;
// this.form_submitting = false;
});
},
// Home
Breadcrumbs::for('home', function (BreadcrumbTrail $trail) {
$trail->push('Home', route('home'));
});
Breadcrumbs::for('login', function (BreadcrumbTrail $trail) {
$trail->parent('home');
$trail->push('Login', route('login'));
});
Breadcrumbs::for('register', function (BreadcrumbTrail $trail) {
$trail->parent('home');
$trail->push('Register', route('register'));
});
// Home > Blog
Breadcrumbs::for('contact', function (BreadcrumbTrail $trail) {
$trail->parent('home');
$trail->push('Contacts', route('contact'));
});
Breadcrumbs::for('admin.index', function ($trail) {
$trail->push('Admin', route('admin.index'));
});
Breadcrumbs::for('admin.users.index', function (BreadcrumbTrail $trail) {
$trail->parent('admin.index');
$trail->push('Users', route('admin.users.index'));
});
Breadcrumbs::for('admin.users.create', function (BreadcrumbTrail $trail) {
$trail->parent('admin.users.index');
$trail->push('Create', route('admin.users.create'));
});
Breadcrumbs::for('admin.users.show', function (BreadcrumbTrail $trail, User $user) {
$trail->parent('admin.users.index');
$trail->push($user->name, route('admin.users.show', $user));
});
Breadcrumbs::for('admin.users.edit', function ($trail, User $user) {
$trail->push('Edit', route('admin.users.edit', $user));
});
Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.3.33. in /var/www/vendor/composer/platform_check.php on line 24