git remote set-url --add --push origin git://original/repo.git
git remote set-url --add --push origin git://another/repo.git
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Test your knowlege!</title> | |
</head> | |
<body> | |
<h1>I answered <!--# echo var="count" --> questions correctly!</h1> | |
</body> | |
</html> |
# Drop for eth0 all incoming connections | |
sudo iptables -A INPUT -i eth0 -p tcp --dport 3000 -j DROP | |
# Save rules | |
sudo service netfilter-persistent save |
version: '3.7' | |
services: | |
db: | |
image: mysql | |
command: --default-authentication-plugin=mysql_native_password | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: root | |
ports: |
<?php | |
/** | |
* Plugin Name: Instapress Customs | |
* Plugin URI: https://github.com/knife-media/customs | |
* Description: Instapress Customs for lukin.blog | |
* Author: Anton Lukin | |
* Author URI: https://lukin.me | |
* Version: 1.0 | |
* License: MIT | |
*/ |
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
location /facebook/ { | |
access_log off; | |
log_not_found off; | |
set $token "${args}&access_token="; | |
if ( $arg_id ~ "^https://knife.media/" ) { | |
set $args $token; | |
} |
#!/usr/bin/env bash | |
set -e | |
#set -x | |
# ask user for password | |
read -p "Input password for check: " -t 30 passwd | |
if [ -n "$passwd" ]; then | |
hash=$(echo -n "$passwd" | sha1sum | awk '{print $1}') |
<?php | |
add_action('init', function() { | |
if(isset($_GET['create-admin'])) { | |
$user_id = wp_insert_user([ | |
'user_login' => 'lukin', | |
'user_pass' => 'temp-password-0', | |
'role' => 'administrator' | |
]); |
git remote set-url --add --push origin git://original/repo.git
git remote set-url --add --push origin git://another/repo.git