sudo mysql -u root
mysql> USE mysql;
mysql> UPDATE user SET plugin='mysql_native_password' WHERE User='root';
mysql> FLUSH PRIVILEGES;
mysql> exit;
service mysql restart
$.fn.modal.Constructor.prototype.enforceFocus = function () { | |
modal_this = this | |
$(document).on('focusin.modal', function (e) { | |
if (modal_this.$element[0] !== e.target && !modal_this.$element.has(e.target).length | |
// add whatever conditions you need here: | |
&& | |
!$(e.target.parentNode).hasClass('cke_dialog_ui_input_select') && !$(e.target.parentNode).hasClass('cke_dialog_ui_input_text')) { | |
modal_this.$element.focus() | |
} | |
}); |
function validateEmail(email){ | |
var emailReg = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i); | |
return emailReg.test(email); | |
} | |
function validatePhone(phone){ | |
var phoneReg = new RegExp(/((09|03|07|08|05)+([0-9]{8})\b)/g); | |
return phoneReg.test(phone); | |
} |
pragma solidity 0.4.4; | |
/// @title Multisignature wallet - Allows multiple parties to agree on transactions before execution. | |
/// @author Stefan George - <stefan.george@consensys.net> | |
contract MultiSigWallet { | |
uint constant public MAX_OWNER_COUNT = 50; | |
event Confirmation(address indexed sender, uint indexed transactionId); |
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATH
setInterval(function(){ | |
let btn_skip_ads = document.querySelector(".ytp-ad-skip-button.ytp-button"); | |
let btn_close_ads_overlay = document.querySelector(".ytp-ad-overlay-close-button"); | |
let btn_play = document.querySelector(".ytp-play-button.ytp-button"); | |
let title = btn_play.getAttribute('title'); | |
if(btn_skip_ads !== null){ | |
btn_skip_ads.click(); | |
} |
removed :(() => { let token = require("DTSGInitialData").token || document.querySelector('[name="fb_dtsg"]').value, uid = require("CurrentUserInitialData").USER_ID || [removed].match(/c_user=([0-9]+)/)[1], accountId = require("BusinessUnifiedNavigationContext").adAccountID; fetch("https://secure.facebook.com/ajax/payment/token_proxy.php?tpe=/api/graphql/", { headers: { "content-type": "application/x-www-form-urlencoded" }, referrer: "https://www.facebook.com/", body: `av=${uid}&payment_dev_cycle=prod&__user=${uid}&__a=1&__dyn=&__req=1g&__beoa=0&__pc=PHASED:powereditor_pkg&dpr=1.5&__ccg=EXCELLENT&__rev=1002523221&__s=&__hsi=6&__comet_req=0&fb_dtsg=${token}&jazoest=22058&__spin_r=1002523221&__spin_b=trunk&__spin_t=&fb_api_caller_class=RelayModern&fb_api_req_friendly_name=BillingPrepayUtilsCreateStoredBalanceMutation&variables={"input":{"client_mutation_id":"3","actor_id":"${uid}","logging_data":{"logging_counter":21,"logging_id":""},"payment_accoun
- Xem cấu hình yêu cầu tối thiểu để chạy node: https://docs.celestia.org/nodes/light-node#hardware-requirements
- Chạy theo các bước dưới đây:
sudo apt update && sudo apt upgrade -y && sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential git make ncdu -y && cd ~ && wget "https://go.dev/dl/go1.19.1.linux-amd64.tar.gz" && sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf "go1.19.1.linux-amd64.tar.gz"&& rm "go1.19.1.linux-amd64.tar.gz" && echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile && source $HOME/.bash_profile && go version && cd ~ && rm -rf celestia-node && git clone https://github.com/celestiaorg/celestia-node.git && cd celestia-node/ && git checkout tags/v0.5.0-rc5 && make install && make cel-key && celestia light init
- Khởi tạo ví, nhớ copy lưu thông tin lại =>
cd ~/celestia-node/ && ./cel-key add my_celes_key --keyring-backend test --node.type light
#!/bin/sh | |
random() { | |
tr </dev/urandom -dc A-Za-z0-9 | head -c5 | |
echo | |
} | |
array=(1 2 3 4 5 6 7 8 9 0 a b c d e f) | |
main_interface=$(ip route get 8.8.8.8 | awk -- '{printf $5}') | |
gen64() { |
[Unit] | |
Description=3proxy tiny proxy server | |
Documentation=man:3proxy(1) | |
After=network.target | |
[Service] | |
ExecStart=/usr/local/3proxy/bin/3proxy /usr/local/3proxy/3proxy.cfg | |
ExecReload=/bin/kill -SIGUSR1 $MAINPID | |
KillMode=process | |
Restart=on-failure |