npm init -y
Create a folder called src and add an empty index.js file. The code that webpack compiles goes in here including any Javascript modules and the main Tailwind file.
#!/bin/bash | |
# Copyright 2021 "Holloway" Chew, Kean Ho <[email protected]> | |
# Copyright 2020 Benny Powers (https://forum.gitlab.com/u/bennyp/summary) | |
# Copyright 2017 Adam Boseley (https://forum.gitlab.com/u/adam.boseley/summary) | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 |
- name: Gather facts from 'all' hosts in inventory | |
hosts: all | |
vars: | |
ansible_host_key_checking: false | |
ansible_ssh_extra_args: '-o UserKnownHostsFile=/dev/null' | |
tasks: | |
- setup: | |
gather_subset: network | |
- name: Add public keys to known_hosts file |
#!/bin/bash | |
#### Dirty/Fake PHP Interpreter to trick PHPStorm into using PHPDBG for running tests with/without code coverage | |
## For Mac/Linux only, Window's ubuntu subsystem theoretically would work too | |
## | |
## JETBRAINS IMPLEMENTED THE FEATURE REQUEST. No need to use this script anymore. | |
## | |
## | |
## Related JetBrain's issues/feature requests | |
## https://youtrack.jetbrains.com/issue/WI-21414 |
# Place this file in ~/.config/systemd/user/ssh-auth-sock.service | |
# $ systemctl --user daemon-reload | |
# $ systemctl --user enable --now ssh-auth-sock.service | |
# Add 'echo UPDATESTARTUPTTY | gpg-connect-agent >/dev/null' in your ~/.bashrc. | |
# Logout or reboot. | |
[Unit] | |
Description=Set SSH_AUTH_SOCK to GnuPG agent | |
[Service] |
Use case : Imagine we have just created a project with composer create-project awesone-project
(currently V0.2).
2 weeks later, there is a new release (V0.3). How to update your project ?
Since composer update
only updates the project dependencies, it is not what we are looking for.
Composer doesn't know about awesome-project since it's not in our composer.json.
After trying many git solutions, I've come to this :
git archive --output=changes.zip HEAD $(git diff --name-only SHA1 SHA2 --diff-filter=ACMRTUXB)
This command will check for changes between the two commits and ignore deleted files.
1 - install GPG tools : https://gpgtools.org/
2 - Create new key for your github email
3 - Add key to git on your local machine: git config --global user.signingkey YOURKEY
4 - configure git to sign all commits: git config --global commit.gpgsign true
5 - add to the bottom of ~/.gnupg/gpg.conf
: (create the file if it not exists)
<?php | |
require_once __DIR__.'/vendor/autoload.php'; | |
use Aws\Lambda\LambdaClient; | |
$client = LambdaClient::factory([ | |
'version' => 'latest', | |
// The region where you have created your Lambda | |
'region' => 'eu-west-1', |
select.form-control + .chosen-container.chosen-container-single .chosen-single { | |
display: block; | |
width: 100%; | |
height: 34px; | |
padding: 6px 12px; | |
font-size: 14px; | |
line-height: 1.428571429; | |
color: #555; | |
vertical-align: middle; | |
background-color: #fff; |
<?php | |
if (isset($_GET['ajax'])) { | |
session_start(); | |
$handle = fopen('/private/var/log/system.log', 'r'); | |
if (isset($_SESSION['offset'])) { | |
$data = stream_get_contents($handle, -1, $_SESSION['offset']); | |
echo nl2br($data); | |
} else { | |
fseek($handle, 0, SEEK_END); | |
$_SESSION['offset'] = ftell($handle); |