- Linux Operating System
- File Management Commands
- System Commands
- General Networking Commands
This file contains 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
-- Prerequisites | |
apt update | |
apt upgrade | |
-- Supervisor | |
apt install supervisor -y | |
supervisord --version |
This file contains 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/bash | |
# https://stackoverflow.com/q/13928116/2732184 | |
# https://stackoverflow.com/q/1405324/2732184 | |
SERVERS=("LOCAL", "REMOTE") | |
HOSTS=("127.0.0.1", "165.56.23.4") | |
PORTS=("22", "3409") | |
USERS=("root", "jdoe") | |
KEYS=("secret", "Ytrewq!123") |
This file contains 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
# https://stackoverflow.com/a/40190976/2732184 | |
# https://unix.stackexchange.com/a/50202/315380 | |
# https://askubuntu.com/a/222371/575565 | |
file="" | |
indent=" " | |
overwrite=0 | |
while [ $# -gt 0 ] | |
do |
This file contains 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
$.extend(true, $.fn.dataTable.defaults, { | |
initComplete: function(settings, json) { | |
var api = this.api(); | |
var dtFilter = $.fn.dataTable.settings[0].aanFeatures.f; | |
var dtFilterInput = $('input', dtFilter); | |
dtFilterInput.unbind(); | |
This file contains 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 | |
use Illuminate\Support\Facades\Route; | |
function matches($patterns, $subject) | |
{ | |
if(! is_array($patterns)) { | |
return preg_match($patterns, $subject); | |
} |
This file contains 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
<template> | |
<div id="checkout"> | |
<div class="row mt-3"> | |
<slot></slot> | |
<div class="col-12 form-group"> | |
<label class="text-small text-uppercase required" for="payment_gateway">Payment Method</label> | |
<select id="payment_gateway" name="payment_gateway" class="form-control" | |
v-on:change="chooseGateway($event)" v-model="selected"> | |
<option v-for="_gateway in gateways" | |
v-bind:value="_gateway.value" |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>jQuery Single vs Multiple Selection</title> | |
<style> | |
.items { | |
padding: 0; | |
margin: 0; | |
list-style: none; | |
display: -webkit-box; |
This file contains 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
"use strict"; | |
var users = [ | |
{ | |
id: 1, | |
alias: "jdoe", | |
name: "John Doe" | |
}, | |
{ | |
id: 2, |