Skip to content

Instantly share code, notes, and snippets.

This is a collection of Ubuntu fixes for Lenovo Legion 5i

Tested on: Lenovo Legion 5i with below specs:
AMD® Ryzen 7 4800h with radeon graphics × 16
NVIDIA Corporation / NVIDIA GeForce RTX 2060/PCIe/SSE2

1. GPU ISSUES for RTX 2060:

nvidia-driver-470 - HDMI doesn't have to work from the beginning
nvidia-driver-495 - HDMI works from the beginning, unstable (random reboots)\

@zhuowei
zhuowei / Ensemble.plist
Last active September 18, 2023 06:26
Put this file as /Library/Preferences/FeatureFlags/Domain/Ensemble.plist and reboot to (hopefully) turn on Universal Control on macOS 12
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- not sure which one it is, so set both -->
<key>Ensemble</key>
<dict>
<key>Enabled</key>
<true/>
</dict>
@zero734kr
zero734kr / README.md
Last active May 11, 2021 15:53
Web/HTTP Frameworks in Node.js, Python and Deno Benchmark

Test Environment:

Executed command: hey -cpus 12 -c 100 -n 10000000 http://localhost:4500

  • CPU: AMD Ryzen 5600X (6 Cores 12 Threads)
  • OS: Linux Mint 20.1
  • Query Response: Hello World
  • Number of threads for parallel request: 12
  • Request Concurrency: 100
  • Total number of requests: 10000000
@yuchand017
yuchand017 / DiscordEmojiInfo.js
Last active May 4, 2021 01:50
Discord emoji information generator
var findModule = (item) => Object.values(webpackJsonp.push([[],{['']:(_,e,r)=>{e.cache=r.c}}, [['']]]).cache).find(m=>m.exports&&m.exports.default&&m.exports.default[item]!==void 0).exports.default;
findModule('sendMessage').sendMessage = (sendMessage => async(id, message, ...params) => {
if (message['content'].startsWith("getinfo <:") || message['content'].startsWith("getinfo <a:")) {
let arr = []
message.validNonShortcutEmojis.forEach(emoji => {
var emojiuse = message['content'].replace('getinfo ', '')
arr.push(` ${emojiuse}\n`)
arr.push(`Emoji \`${emoji.name}\` (${emoji.id})\n`)
arr.push(`Emoji Animated \`${emoji.animated}\` \n`)
arr.push(`Emoji Available \`${emoji.available}\` \n`)
@LukeZGD
LukeZGD / ios-downgrade-dualboot.md
Last active May 21, 2024 04:10
Downgrade and dualboot status of almost all iOS devices

Downgrade and dualboot status of almost all iOS devices

UPDATED: 2024-05-19

@crcdng
crcdng / leap_macos.md
Last active March 31, 2024 15:33
Set up Leap Motion for Python development on macOS 11 Big Sur

NOTE this tutorial was written Dec 2020 and I don't use Leap on Mac since then. Use at your own risk. It still seems to work for some people, but I cannot support it further or answer questions unless I get a project with Leap / Mac again.

The Leap Motion Controller (https://www.ultraleap.com/product/leap-motion-controller/) has been a favourite input device for user interface designers and hackers alike. It allows to create touchless user interfaces that track hand movement and recognize gestures (not bad in the current situation).

Unfortunately the company who made it has decided to go big and bold on VR and Windows only and stopped supporting development on a Mac. There are still options available, for example getting the Leap Motion data via node.js. Yet Python can be the right choice, especially if you want to feed the data into a machine learning pipeline or use any of the numerous libraries that the Python ecosystem offers.

Getting this to work on macOS requires a few steps (tested on macOS 11

@minibox24
minibox24 / kiki_face.base64
Created October 18, 2020 00:45
키키의 얼굴
This file has been truncated, but you can view the full file.
RDZGUVFBRjdSV0ZWNkFYN0RTT05XNVZESEFJRUs3WUpRSEVXVVA0R0RDQTNDRUtCNUFCSFVBNkVCSkRBRUU0MzNDTUs3SDdTSFRHUEoyWE9PUUdGRVZNNVhXNDJKV1VTSkJGNkUySUhRVjQyU0NJTldIRFRRRE82WDRYWlFPR1YzQ1dMSURIRzVaQUhCMldOQU9GNk5ENks1TkJURDVWV1kzNlFHN1ZOQkpRUjJHUDJPRTVHVEZNMkQ2WFE1RjI3T0dZSVREVVRDN09YNEhWNEhSNUkzRzMyR1NCTjZHM1M1T1NFQlhQVTZOVU8zNUtXTE9RVFFFWlhaVk4zT08zUUVTWTVWR0dUMjdLTVdYSVJDTEVXRU8zWEkzQ04yUU5JMllJSFc0VEkzVkZHWE9OQVk3MktBQllSNTIzUFVJQU9HVE9BN05OVFEzVTZET0dXUUtDRExVNUU2SEVMR00yRVVVVUhZVk1URlVOTEdWVk5STzc2VVVMN0pHSlRYNU9VQjdHUkFIRExURTRBMlUyVE00MkdFVTM3RTNETFlXRTRaQ0ozV1ZaWktMUlBKV1RERUZUTlM0U1NUVU9MSVVKUjM1Sk80NzVKRUZFU0pJNUZUQllGQklKRU5NT1dDNDZUVU1KVkVWTERJVkFSQlhQU1pVNkNSSlJXUDc2WEhLTlJLTUxDNFdBTTdHQjRUNVZKWlM3Uk9OWktOV09IVEtRSFJUSlhDWFlVNkI0WkxWQzdWR1NCNklXQ1dBN0pSVjZZVExPTExKNFRIT0g1SVUyRUJONk5HWTdQVkdHMzU1QkJRSDJST1ZRSkhQWVhCM01MVEJXQVlFSkY0SlBETkxSSU9NTDRQTk9RS1RDS0RWNE9IS1NCWDRQS1dFSFVJTkg3MldEVjUyVU40SjNOWTcySkpSTTdWV1gzSElTSkRQWDRQT08zTUhYV0NPVlpHUzI2N0dVUFdPVkVKUU9CRkVZNUtUTzRLUUs2VU1QS1hDUFNGUkZCQUhQM1ZRWTY2UEpC
@tdcosta100
tdcosta100 / WSL2GUIXvnc-en.md
Last active May 21, 2024 20:05
A tutorial to use GUI in WSL2 replacing original XServer by Xvnc, allowing WSL to work like native Linux, including login screen

WSL2 with GUI using Xvnc

In this tutorial, we will setup GUI in WSL2, and access it using VNC. No additional software outside WSL (like VcXsrv) is required, except, of course, a VNC Viewer (RealVNC, TightVNC, TigerVNC, UVNC, etc, all of them might work flawlessly).

The key component we need to install is tigervnc-standalone-server.

For this setup, I will use Ubuntu 20.04 LTS (Focal Fossa, unfortunately 22.04 does not work), and install GNOME Desktop. Since the key components aren't bound to Ubuntu or GNOME, you can use your favorite distro and GUI. Check the Sample screenshots section for examples.

So let's go. First, we need a working WSL2 installation.

@Siguza
Siguza / pallas.sh
Last active May 21, 2024 13:35
newstyle OTA
#!/usr/bin/env zsh
set -e;
set +m; # Job control would've been nice, but manual round robin it is, sigh.
if [ -z "${ZSH_VERSION+x}" ]; then
echo 'Try again with zsh.';
exit 1;
fi;

맛집 리스트 (전부 모아서 다시 업로드)

; 제목별로 검색하면 빠르다.

  1. 평양냉면
  2. 메밀국수 (소바)
  3. 막국수
  4. 콩국수
  5. 국밥, 해장국
  6. 설렁탕
  7. 감자탕