start new:
tmux
start new with session name:
tmux new -s myname
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
use Symfony\Component\Finder\Finder; | |
class DuskunitCommand extends Command | |
{ | |
protected $signature = 'duskunit {--down}'; |
let mix = require('laravel-mix'); | |
let build = require('./tasks/build.js'); | |
let tailwindcss = require('tailwindcss'); | |
let glob = require("glob-all"); | |
let PurgecssPlugin = require("purgecss-webpack-plugin"); | |
const CopyWebpackPlugin = require('copy-webpack-plugin'); | |
const ImageminPlugin = require('imagemin-webpack-plugin').default; | |
const imageminMozjpeg = require('imagemin-mozjpeg'); | |
class TailwindExtractor { |
<?php | |
require __DIR__.'/vendor/autoload.php'; | |
use Vector\Lib\Arrays; | |
use Vector\Lib\Math; | |
use Vector\Lib\Lambda; | |
use Vector\Core\Module; | |
$input = [148454, 118001, 98851.....]; |
<?php | |
function inject($elem, $array) | |
{ | |
return array_map(function ($n) use ($elem) { | |
return array_merge((array) $elem, (array) $n); | |
}, $array); | |
} | |
function zip($array1, $array2) |
brew install [email protected] | |
brew doctor | |
echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.zshrc | |
pecl install xdebug | |
php -v |
#!/usr/bin/env python3 | |
# | |
# by Siddharth Dushantha (sdushantha) | |
# | |
# My very simple version of youtube-dl. | |
# | |
# Credits: https://git.io/JTPr9 | |
# | |
import re |
Although MeiliSearch offers steps to install via apt, there are some dependency libraries that are not installable on the server architecture we have availble on our Tighten Forge servers. However, the servers can run the program just fine with the binary. Here are the steps I took to make it work.
curl -L https://install.meilisearch.com | sh
chmod 755 meilisearch chown root:root meilisearch
This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.
Description | Syntax |
---|---|
Get a single character | ${VARNAME[index]} |
Get the string from a specific index | ${VARNAME[index,-1]} |