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
-- install xsel at first: `yay -S xsel` | |
-- add the bellow code in your config file | |
vim.opt.clipboard = vim.opt.clipboard + {'unnamed','unnamedplus'} | |
vim.cmd([[ | |
let g:clipboard = { | |
\ 'name': 'myClipboard', | |
\ 'copy': { | |
\ '+': ['xsel', '--nodetach', '-i', '-b'], | |
\ '*': ['xsel', '--nodetach', '-i', '-p'], | |
\ }, |
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
sudo apt-get -y update | |
sudo apt -y install software-properties-common | |
sudo add-apt-repository -y ppa:ondrej/php | |
sudo apt-get -y update | |
# install php | |
sudo apt -y install php7.4 | |
# install extensions | |
sudo apt-get install -y php7.4-{xml,bcmath,bz2,intl,gd,mbstring,mysql,zip,common} | |
sudo php --version |
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
server { | |
listen 80; | |
server_name center.u1ss.com; | |
underscores_in_headers on; | |
index index.php; | |
charset utf-8; |
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
sudo apt-get -y update | |
sudo apt-get -y install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg \ | |
lsb-release | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg |
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 | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
export PATH | |
#================================================= | |
# System Required: CentOS/Debian/Ubuntu | |
# Description: iptables Port forwarding | |
# Version: 1.1.1 | |
# Author: | |
# Blog: |
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
sudo yum install -y yum-utils \ | |
device-mapper-persistent-data \ | |
lvm2 | |
sudo yum-config-manager \ | |
--add-repo \ | |
https://download.docker.com/linux/centos/docker-ce.repo | |
sudo yum install -y docker-ce docker-ce-cli containerd.io |
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
using System; | |
using System.Diagnostics; | |
using System.Runtime.InteropServices; | |
namespace AppToFront | |
{ | |
class Program | |
{ | |
[DllImport("USER32.DLL")] | |
static extern bool SetWindowPlacement(IntPtr hWnd, [In] ref WINDOWPLACEMENT lpwndpl); |
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 greet() : Closure { | |
return function($name) { | |
return 'Hello ' . $name; | |
}; | |
} | |
function call(Closure $func) { | |
return function($name) use ($func) { |