In Arch Linux
mkinitcpio -p linux
shows
Possibly missing firmware for module: aic94xx
Possibly missing firmware for module: wd719x
<?php | |
/** | |
* Returns max ID of the source wp_posts table. | |
* | |
* @return int | |
*/ | |
public function get_source_max_article_id() { | |
$in_source_post_statuses = [ 'publish', 'draft', 'pending', 'private', 'trash', 'inherit' ]; | |
$post_status_placeholders = implode( ', ', array_fill( 0, count( $in_source_post_statuses ), '%s' ) ); |
select u.user_login as login, u.user_email as email, u.display_name as fullname, c.meta_value as capability, (CASE WHEN (l.meta_value='1') THEN 'Yes' ELSE 'No' END ) as is_restricted from wp_users as u | |
INNER JOIN wp_usermeta as c ON c.user_id = u.ID | |
INNER JOIN wp_usermeta as l ON l.user_id = u.ID | |
WHERE c.meta_key = 'wp_capabilities' AND l.meta_key='is_login_restricted'; |
#!/usr/bin/env python | |
import requests, socket | |
username = "" | |
password = "" | |
hostname = "" # your domain name hosted in no-ip.com | |
# Gets the current public IP of the host machine. | |
myip = requests.get('http://api.ipify.org').text |
========================================== ========================================== | |
TMUX COMMAND WINDOW (TAB) | |
========================================== ========================================== | |
List tmux ls List ^b w | |
New -s <session> Create ^b c | |
Attach att -t <session> Rename ^b , <name> | |
Rename rename-session -t <old> <new> Last ^b l (lower-L) | |
Kill kill-session -t <session> Close ^b & |
<?php | |
// Alters post type labels. | |
add_action( 'registered_post_type', 'change_post_type_labels', 10, 2 ); | |
// Posts menu label change to articles. | |
add_action( 'admin_menu', 'rename_post_menu_item_label' ); | |
/** | |
* Replace Posts label to Articles in post edit admin page |
#!/bin/bash | |
# Delete all containers | |
docker rm $(docker ps -a -q) | |
# Delete all images | |
docker rmi $(docker images -q) |
<?php | |
/** | |
* Converts first char of array keys to lowercase | |
* | |
* @param $multd_array | |
* | |
* @return array | |
*/ | |
function maybe_convert_arraykeys_lcfirst( $multd_array ) { | |
$result = []; |
<?php | |
/** | |
* Decode a string with URL-safe Base64. | |
* | |
* @param string $input A Base64 encoded string | |
* | |
* @return string A decoded string | |
*/ | |
public static function urlsafeB64Decode( $input ) { | |
$remainder = strlen( $input ) % 4; |
#!/bin/sh | |
# Default path is root (/) | |
path="/" | |
# if string is not null | |
if [ -n "$1" ]; then | |
path="$1" | |
fi |