Skip to content

Instantly share code, notes, and snippets.

@davispuh
davispuh / steam_console_params.txt
Last active April 2, 2025 03:10
Steam client parameters, consoles commands and variables
-480p - Run tenfoot in 480p rather than 1080p
-720p - Run tenfoot in 720p rather than 1080p
-accesscode -
-all_languages - show longest loc string from any language
-batterytestmode - rapidly cycle battery percentages for testing
-bigpicture - Start in Steam Big Picture mode
-blefw -
-cafeapplaunch - Launch apps in a cyber cafe context
-candidates - Show libjingle candidates for local connection as they are processed
-ccsyntax - Spew details about the localized strings we load
@evgenyneu
evgenyneu / setup_cursor_ubuntu.md
Last active April 2, 2025 03:09
Install Cursor AI code editor on Ubuntu 24.04 LTS

Install Cursor AI editor on Ubuntu 24.04

  1. Use the Download button on www.cursor.com web site. It will download the NAME.AppImage file.

  2. Copy the .AppImage file to your Applications directory

cd ~/Downloads
mkdir -p ~/Applications
mv NAME.AppImage ~/Applications/cursor.AppImage
@yanqd0
yanqd0 / dl_requests_tqdm.py
Last active April 2, 2025 03:05
Python requests download file with a tqdm progress bar
import requests
from tqdm import tqdm
def download(url: str, fname: str, chunk_size=1024):
resp = requests.get(url, stream=True)
total = int(resp.headers.get('content-length', 0))
with open(fname, 'wb') as file, tqdm(
desc=fname,
total=total,
@cedrickchee
cedrickchee / gemini_25_pro_canvas_mode_prompt.md
Last active April 2, 2025 03:03
Gemini 2.5 Pro pairs well with Canvas mode

Starting yesteday, Gemini Advanced users can create with Canvas on Gemini 2.5 Pro (experimental).

Canvas mode make it easy to create prototypes quickly, like this game I made in under few hours with just 50 prompts.

I vibe coded this game while I'm on the move, taking bus and train.

Full prompts. Excluding the JS errors in Chrome Developer console, the total effective prompts are lower than 50.

1. Make a 3D flying plane game in browser with trees, sky, clouds
@888iee
888iee / virtualdisplay.md
Created August 29, 2024 15:19
How to create a virtual diplay on X11

This works only for nvidia cards running on x11!

I'm not responsible for any damage this might cause. Do at your own risk

Sometimes you will only have the console accessible, therefore open this document on another device. I tested this with the following versions.

|Software|Version|

@ChadFulton
ChadFulton / statespace_large_dynamic_factor_models.ipynb
Last active April 2, 2025 03:00
Large dynamic factor models, forecasting, and nowcasting in Statsmodels
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active April 2, 2025 02:59
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@qunash
qunash / grpo_qwen-0-5b_single_t4.ipynb
Last active April 2, 2025 02:49
grpo_qwen-0-5b_single_t4.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tabishiqbal
tabishiqbal / _form.html.erb
Last active April 2, 2025 02:48
Ruby on Rails simple multiple select using Tom-select
<%= form_with(model: product) do |form| %>
<div>
<%= form.label :name %>
<%= form.text_field :name, class: "input" %>
</div>
<div>
<%= form.label :categories %>
<%= form.collection_select :category_ids, Category.all, :id, :name, {}, {multiple: true, id: 'category-select', class: "dropdown"} %>
</div>