Skip to content

Instantly share code, notes, and snippets.

@darkguy2008
darkguy2008 / gist:0b27a23ac40d863553f0b01ed7da9cfd
Last active July 24, 2021 12:25
Fix Linux font rendering in Ubuntu / KDE Neon
Ref: https://peter.quantr.hk/2012/12/how-to-change-fedoras-font-rendering-to-get-an-ubuntu-like-result/#page-content
1) xrdb -query | grep -i xft
Make sure it looks like this:
Xft.antialias: 1
Xft.hinting: 1
Xft.hintstyle: hintslight
Xft.lcdfilter: lcddefault
@DarkPark
DarkPark / tearing.md
Created February 8, 2020 16:53
how to fix radeon screen tearing

How to install MS Core fonts on Fedora

  • install dependencies
$ sudo dnf install -y rpm-build ttmkfdir
  • prep the work space
@crok
crok / Mido_memory_management.txt
Created May 28, 2019 13:26
Xiaomi Redmi Note 4X and memory management
TL;DR
First and foremost:
if you want some apps not to be killed/closed disable the battery optimization for them and|or lock them in the recents app list.
Ex. in Pie or Oreo: Settings / Apps and notifications / Special / Look for your app(s) / Battery opt -> disable
Pick an LMK profile according to your usage pattern (and fine-tune it if you want):
Heavy Gaming only:
Foreground Applications: 50MB
Visible Applications: 70MB
@zeljic
zeljic / build_sqlite3_lib.md
Last active June 6, 2024 08:03
Build SQLite3 .lib file on windows

How to build SQLite3 .lib file on Windows 10

  1. Download source from source

    For example: source https://www.sqlite.org/2023/sqlite-amalgamation-3430100.zip

  2. Download binary from binary

    For example: binary https://www.sqlite.org/2023/sqlite-dll-win64-x64-3430100.zip

  3. Extract both archives to the same directory

@richlander
richlander / instructions.md
Last active March 24, 2024 14:54
Installing .NET Core 3.0 on Linux ARM64

Installing .NET Core on Linux ARM64

The following intructions can be used to install .NET Core on Linux ARM64.

Pro tip: Check out .NET Core Docker files to determine the exact instructions for installing .NET Core builds, for example .NET Core 3.1 ARM32 SDK Dockerfile.

Installing .NET Core Globally

The following instructions install the latest .NET Core globally. It isn't required to do that, but it provides the best experience.

@Dhanvesh
Dhanvesh / Win10Activation.txt
Created June 5, 2018 17:37
Windows 10 Activation Batch File
@echo off
title Windows 10 ALL version activator&cls&echo ************************************&echo Supported products:&echo - Windows 10 Home&echo - Windows 10 Professional&echo - Windows 10 Enterprise, Enterprise LTSB&echo - Windows 10 Education&echo.&echo.&echo ************************************ &echo Windows 10 activation...
cscript //nologo c:\windows\system32\slmgr.vbs /ipk TX9XD-98N7V-6WMQ6-BX7FG-H8Q99 >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk 3KHY7-WNT83-DGQKR-F7HPR-844BM >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk PVMJN-6DFY6-9CCP6-7BKTT-D3WVR >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk MH37W-N47XK-V7XM9-C7227-GCQG9 >nul
cscript //nologo c:\windows\system32\slmgr.vbs /ipk NW6C2-QMPVW-D7KKK-3GKT6-VCFB2 >nul
@Iktwo
Iktwo / ExpandableListView.qml
Last active February 12, 2022 06:30
ExpandableListView
import QtQuick 2.0
// Use Item as root element to control what properties are exposed, without this the delegate could be overwritten and the list would not work as expected
Item {
id: root
// Expose ListView properties
property alias model: listView.model
property alias clip: listView.clip
@sparrc
sparrc / install-ffmpeg.sh
Last active November 14, 2023 13:24
Installs ffmpeg with libaom and libx265 enabled for av1 and hevc encoding (tested on Ubuntu 16.04)
#!/usr/bin/env bash
# Installs ffmpeg from source (HEAD) with libaom and libx265, as well as a few
# other common libraries
# binary will be at ~/bin/ffmpeg
sudo apt update && sudo apt upgrade -y
mkdir -p ~/ffmpeg_sources ~/bin
export PATH="$HOME/bin:$PATH"
@MWins
MWins / project-ideas01.md
Last active July 20, 2024 19:25
Back end Projects - list

Project Ideas

Ok. I'm going to list off some ideas for projects. You will have to determine if any particular idea is good enough to include in a portfolio. These aren't creative ideas. They likely already exist. Some are way too advanced while others are simplistic.

I will recommend to post any project you make to github and make a github project page for it. Explain in as much detail as possible how you made it, how it can be improved etc. Document it.

If you pick an advanced idea, setup a development roadmap and follow it. This will show some project management skills.

Another piece of advice for those who are design challenged. Use different front end frameworks and use different themes for those frameworks to provide appealing designs without looking like yet another bootstrap site.