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
wget https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb | |
sudo apt-get update -y && sudo apt-get upgrade -y | |
# below command is because of advice from remote desktop app when can not install | |
sudo apt-get install -y xvfb xbase-clients pipewire | |
sudo apt-get install --assume-yes ./chrome-remote-desktop_current_amd64.deb | |
sudo chmod 777 /home/<user>/chrome-remote-desktop_current_amd64.deb | |
sudo apt-get autoremove -y | |
sudo apt-get install ubuntu-desktop -y | |
sudo /etc/init.d/gdm3 start | |
sudo reboot |
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
# do not execute shell directly | |
# please use it line by line | |
vim ~/.customize_environment | |
# write below | |
# !/bin/sh | |
# apt-get update | |
# apt-get -y install zsh | |
# remember to do not set default shell here ! |
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
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: nginx-group | |
labels: | |
app: nginx-group | |
--- | |
kind: ConfigMap |
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
// 從頭安裝(須先確認已經解除安裝) | |
*建議在桌面開啟終端機完成 | |
下載程式碼: wget https://releases.wikimedia.org/mediawiki/1.38/mediawiki-1.38.4.tar.gz | |
解壓縮: tar xvzf mediawiki-1.38.4.tar.gz | |
移動至網頁伺服器: mv mediawiki-1.38.4 /usr/local/homemeeting/weboffice/web/mediawiki | |
*進入網頁網址進行設置 | |
網頁中選擇SQlite資料路徑: /usr/local/homemeeting/weboffice/web/mediawiki/data | |
*遇到無權限錯誤依照指引開啟權限 | |
ex: cd /usr/local/homemeeting/weboffice/web/mediawiki | |
mkdir data |
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
/* | |
* In the linker options (on the project right-click, linker, input) you need add wsock32.lib or ws2_32.lib to the list of input files. | |
*/ | |
#include <winsock2.h> | |
#include <ws2tcpip.h> | |
#include <direct.h> | |
#include <Windows.h> | |
#include <iostream> | |
#include <string> | |
#include <vector> |
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
#include <iostream> | |
#include <atomic> | |
#include <thread> | |
#define THREAD_N 100 | |
#define ELEMENT_N 1000 | |
using namespace std; | |
static atomic_int inserts = 0; | |
static atomic_int deletes = 0; |
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
#include <iostream> | |
#include <atomic> | |
#include <thread> | |
#include <mutex> | |
#define THREAD_N 100 | |
#define ELEMENT_N 1000 | |
using namespace std; | |
static atomic_int inserts = 0; | |
static atomic_int deletes = 0; |
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
#include <iostream> | |
#include <atomic> | |
#include <thread> | |
#define THREAD_N 1 | |
#define ELEMENT_N 10000 | |
using namespace std; | |
static atomic_int inserts = 0; | |
static atomic_int deletes = 0; |
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
#include <winsock2.h> | |
#include <ws2tcpip.h> | |
#include <direct.h> | |
#include <Windows.h> | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <thread> | |
#include <time.h> |