Skip to content

Instantly share code, notes, and snippets.

View yqshao's full-sized avatar
🦕
Last Dinosaur

Yunqi Shao yqshao

🦕
Last Dinosaur
  • Göteborg, Sweden
  • 16:22 (UTC +02:00)
View GitHub Profile
@yqshao
yqshao / ase-gui_for_windows.md
Last active January 20, 2024 01:04
ASE-Gui for windows

Intro

ase-gui is the most handy model editor I've used to setup my VASP calculations.

It supports VASP POSCAR/CONTCAR files perfectly and a variety of other formats. The editting features (moving/rotating) are handy for adjusting surface adsorption structues.

Yet, it's a little tricky to get a nice ase-gui on windows mechaines.

  • Old versions require pyGTK which is hardly available for windows, I remember attempting with miniconda and official build http://www.pygtk.org/downloads.html, but the process is tedious.
  • Newer versions use tk, however the interface is ugly and some functions are not available (Ctrl+R for rotation, and zooming is buggy right now).
  • VASP configuration files don't have extentions, meaning it's hard to associate them using the windows options
@cryzed
cryzed / fix-infinality.md
Last active June 24, 2024 02:24
A set of instructions on how to fix the harfbuzz + Infinality issue and restoring good-looking, Infinality-like font rendering.

Disclaimer: Please follow this guide being aware of the fact that I'm not an expert regarding the things outlined below, however I made my best attempt. A few people in IRC confirmed it worked for them and the results looked acceptable.

Attention: After following all the steps run gdk-pixbuf-query-loaders --update-cache as root, this prevents various gdk-related bugs that have been reported in the last few hours. Symptoms are varied, and for Cinnamon the DE fails to start entirely while for XFCE the icon theme seemingly can't be changed anymore etc.

Check the gist's comments for any further tips and instructions, especially if you are running into problems!

Screenshots

Results after following the guide as of 11.01.2017 13:08:

@kyokley
kyokley / dock.md
Last active June 13, 2024 20:32
Docking/Undocking a Lenovo laptop running xmonad

Docking/Undocking a Lenovo laptop running xmonad

Introduction

I ran into this issue while at work and came up with this solution. This gist is mostly just documentation for myself so I can remember what I did 6 months from now. I am in no way saying that this is the right way to fix things but I'll be thrilled if this is in any way helpful to others. That being said, I make no guarantees that bad things will not happen to your machine if you follow these directions. Proceed at your own risk.

Although, I mention using the following setup to resolve an issue I was having using xmonad as my windows manager, I don't think there's anything special about it. It should be possible to use the following steps with any windows manager.

Problem

Setting up multiple monitors in xmonad requires defining the screen configuration using xrandr. The problem is that xmonad does not respond to a laptop being placed or removed from a docking station. Obviously, the solution is to update the monitor configuration on the

Config {
font = "xft:inconsolata:size=10:antialias=true"
, fgColor = "#EFEFEF"
, bgColor = "#333333"
, position = Static { xpos = 0, ypos = 1050, width = 1920, height = 30 }
, lowerOnStart = True
, commands = [
Run Battery ["-t", "<left>"] 100
, Run MultiCpu ["-t","<total0>"] 30
, Run Date "%_d %#B %Y <fc=#AEB898>|</fc> %H:%M" "date" 600