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
cut -d ' ' -f1 ~/.bash_history | sort | uniq -c | sort -r | head -n 10 |
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 | |
function my_customize_rest_cors() { | |
remove_filter( 'rest_pre_serve_request', 'rest_send_cors_headers' ); | |
add_filter( 'rest_pre_serve_request', function( $value ) { | |
header( 'Access-Control-Allow-Origin: *' ); | |
header( 'Access-Control-Allow-Methods: GET' ); | |
header( 'Access-Control-Allow-Credentials: true' ); | |
header( 'Access-Control-Expose-Headers: Link', false ); |
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 | |
/* | |
Plugin Name: Switch Locale | |
Author: Takayuki Miyauchi | |
Plugin URI: http://firegoby.theta.ne.jp/wp/switch-locale | |
Description: Set selected langs for your site. | |
Author: Takayuki Miyauchi | |
Version: 0.1.0 | |
Author URI: http://firegoby.theta.ne.jp/ | |
Domain Path: /languages |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/usr/bin/env bash | |
set -ex | |
sudo apt update | |
sudo apt upgrade -y | |
sudo apt purge wolfram-engine scratch nuscratch sonic-pi idle3 -y | |
sudo apt purge smartsim java-common libreoffice* -y |
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
# | |
# A virtual host using WordPress | |
# /etc/nginx/conf.d/example.com.conf | |
# | |
server | |
{ | |
listen 8080; | |
client_max_body_size 10m; | |
server_name .example.com; |
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
#!/usr/bin/env bash | |
set -ex | |
sudo raspi-config nonint do_change_locale ja_JP.UTF-8 | |
sudo apt update | |
sudo apt upgrade -y | |
sudo apt purge wolfram-engine scratch nuscratch sonic-pi idle3 smartsim java-common libreoffice* -y |
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
{ | |
"version": 8, | |
"name": "Geolonia Basic", | |
"metadata": {}, | |
"sources": { | |
"natural-earth": { | |
"type": "vector", | |
"maxzoom": 6, | |
"url": "https://cdn.geolonia.com/tiles/natural-earth.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
<?php | |
if (!class_exists('WP_AddPage')): | |
class WP_AddPage { | |
private $rule = null; | |
private $title = null; | |
private $callback = null; | |
private $template = null; | |
private $filter = false; |
NewerOlder