View stack.ts
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, |
View search-everything.patch
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); |
View install-composer.sh
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=$? |
View td-agent.conf
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 |
View php.ini
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 |
View php.ini
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 |
View setup.sh
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 |
View rotate-wallpaper.sh
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) |
View countries.php
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 | |
$countries = [ | |
'AF' => 'Afghanistan', | |
'AX' => 'Åland Islands', | |
'AL' => 'Albania', | |
'DZ' => 'Algeria', | |
'AS' => 'American Samoa', | |
'AD' => 'Andorra', | |
'AO' => 'Angola', | |
'AI' => 'Anguilla', |
View countries.json
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
{ | |
"countries": [ | |
{ | |
"code": "AD", | |
"name": "Andorra" | |
}, | |
{ | |
"code": "AE", | |
"name": "United Arab Emirates" | |
}, |
NewerOlder