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
// How to use esbuild with Projen to output an ESM library. | |
const { bundleTask, outfile } = project.bundler.addBundle("./src/handler.mts", { | |
target: "node18", | |
platform: "node", | |
watchTask: false, | |
}); | |
const [{ exec: bundleCommand = "" }] = bundleTask.steps; |
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
import { typescript, javascript } from "projen"; | |
const project = new typescript.TypeScriptProject({ | |
name: "template-typescript-esm", | |
defaultReleaseBranch: "main", | |
projenrcTs: true, | |
devDeps: ["@jest/globals"], | |
minNodeVersion: "18.0.0", |
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
import { Construct } from "constructs"; | |
import { Stack, StackProps, CfnOutput } from "aws-cdk-lib"; | |
import { | |
IRole, | |
Role, | |
PolicyStatement, | |
AnyPrincipal, | |
ManagedPolicy, | |
Effect, | |
PrincipalWithConditions, |
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
diff --git a/wp-content/plugins/search-everything/search-everything.php b/wp-content/plugins/search-everything/search-everything.php | |
index d39281c5..a3fa4d63 100644 | |
--- a/wp-content/plugins/search-everything/search-everything.php | |
+++ b/wp-content/plugins/search-everything/search-everything.php | |
@@ -275,7 +275,8 @@ class SearchEverything { | |
$searchQuery .= $this->se_search_authors(); | |
} | |
- if ( $searchQuery != '' ) { | |
+ $searchQuery = trim($searchQuery); |
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/sh | |
EXPECTED_SIGNATURE=$(wget https://composer.github.io/installer.sig -O - -q) | |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
ACTUAL_SIGNATURE=$(php -r "echo hash_file('SHA384', 'composer-setup.php');") | |
if [ "$EXPECTED_SIGNATURE" = "$ACTUAL_SIGNATURE" ] | |
then | |
php composer-setup.php --quiet | |
RESULT=$? |
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
## This configuration file expects certain environment variables to be available. | |
## You can add them to /etc/default/td-agent: | |
## AWS_REGION | |
## AWS_VPC_ID | |
## AWS_INSTANCE_ID | |
<source> | |
@type syslog | |
port 42185 | |
bind 127.0.0.1 | |
tag rsyslog |
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] | |
engine = On | |
short_open_tag = Off | |
zlib.output_compression = Off | |
max_execution_time = 120 | |
max_input_time = 120 | |
memory_limit = -1 | |
default_charset = "UTF-8" | |
error_reporting = E_ALL | |
display_errors = On |
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] | |
engine = On | |
short_open_tag = Off | |
output_buffering = Off | |
zlib.output_compression = Off | |
default_charset = "UTF-8" | |
disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority | |
zend.enable_gc = On | |
max_execution_time = 240 | |
memory_limit = 128M |
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/sh | |
if [ -n "$(command -v yum)" ]; then | |
sudo yum -y install git | |
elif [ -n "$(command -v apt-get)" ]; then | |
sudo apt-get update | |
sudo apt-get install -y git stow | |
fi | |
pwd=$(pwd) | |
git clone https://github.com/doublecompile/dotfiles.git ~/dotfiles | |
rm ~/.bashrc |
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 | |
# Rotate wallpapers on GNOME or OSX | |
# (OSX users need to install coreutils) | |
set -e | |
WALLPAPERS="$HOME/wallpaper" | |
if [[ -n "$(command -v gsettings)" ]]; then | |
paper=`find $WALLPAPERS -type f | shuf -n 1` | |
PID=$(pgrep gnome-session) |
NewerOlder