My collection of notes and code snippets
Notes
November 14, 2024
Install arch linux in dell laptop
https://github.com/kifbv/arch-linux-dell
November 14, 2024
Fix nextcloud config permissions
sudo chown -R www-data:www-data nextcloud
November 13, 2024
Need to setup
November 9, 2024
Google Oauth
Use prompt=consent&access_type=offline
to get refresh token
November 8, 2024
Leetcode
Starter code for custom judge
import sys
from typing import List, Type
class Solution:
@staticmethod
def twoSum(nums: List[int], target: int) -> List[int]:
print(nums)
return nums
str = sys.stdin.readline().strip('\n')
tmp = str.split()
Solution.twoSum(tmp[0], tmp[1])
# input -> [2,3] 4