Skip to content

Instantly share code, notes, and snippets.

@MehmetKursat
MehmetKursat / Sublime Text 3 Crack Tutorial.md
Last active March 31, 2021 11:23
Sublime Text 3 Crack Tutorial - 3112 3111 3110 3148

Win x64

Version Offset Offset Change
3093 Win x64 0xF0A8B 85 -> 3B
3094 Win x64 0xF0A8B 85 -> 3B
3095 Win x64 0xF0BDF 85 -> 3B
3100 Win x64 0xE888D F8 -> E0
3101 Win x64 0xE7721 F8 -> E0
3102 Win x64 0xE849D F8 -> E0
@application2000
application2000 / how-to-install-latest-gcc-on-ubuntu-lts.txt
Last active January 13, 2025 03:52
How to install latest gcc on Ubuntu LTS (12.04, 14.04, 16.04)
These commands are based on a askubuntu answer http://askubuntu.com/a/581497
To install gcc-6 (gcc-6.1.1), I had to do more stuff as shown below.
USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING.
ABSOLUTELY NO WARRANTY.
If you are still reading let's carry on with the code.
sudo apt-get update && \
sudo apt-get install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
@Brainiarc7
Brainiarc7 / VAAPI-hwaccel-encode-Linux-Ffmpeg&Libav-setup.md
Last active May 18, 2025 15:48
This gist contains instructions on setting up FFmpeg and Libav to use VAAPI-based hardware accelerated encoding (on supported platforms) for H.264 (and H.265 on supported hardware) video formats.

Using VAAPI's hardware accelerated video encoding on Linux with Intel's hardware on FFmpeg and libav

Hello, brethren :-)

As it turns out, the current version of FFmpeg (version 3.1 released earlier today) and libav (master branch) supports full H.264 and HEVC encode in VAAPI on supported hardware that works reliably well to be termed "production-ready".

Just some notes and references for myself.

  • In bash, you can access your C:\ drive via /mnt/c/
  • ~ = C:\Users\MLM\AppData\Local\lxss\home\mlm and is different from your Windows user directory C:\Users\MLM

How to google things

@zr-tex8r
zr-tex8r / test-directunicode-full.tex
Created April 8, 2017 07:21
LaTeX: pLaTeX+pxchfonで源のアレしてみる件
% upLaTeX文書, 文字コードはUTF-8
\documentclass[uplatex,a4paper]{jsarticle}
% 源ノアレはアレなので 'directunicode*' が必要
\usepackage[directunicode*,noalphabet]{pxchfon}[2017/04/08]% v0.9
\usepackage[english]{babel}
\usepackage[main=japanese]{pxbabel}
% TTC版の源ノアレを使う
\setminchofont [0]{SourceHanSerif-Regular.ttc}
\setkoreanminchofont [1]{SourceHanSerif-Regular.ttc}
\setschineseminchofont[2]{SourceHanSerif-Regular.ttc}
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 19, 2025 05:23
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

anonymous
anonymous / firewall.user
Created May 29, 2017 18:22
OpenWrt map-e (JPNE v6plus) において、割当ポート240個をちゃんと使わせるための設定。
## /etc/firewall.user
# This file is interpreted as shell script.
# Put your custom iptables rules here, they will
# be executed with each firewall (re-)start.
# Internal uci firewall chains are flushed and recreated on reload, so
# put custom rules into the root chains e.g. INPUT or FORWARD or into the
# special user chains, e.g. input_wan_rule or postrouting_lan_rule.
@mcxiaoke
mcxiaoke / wine-retina.md
Last active March 21, 2025 13:27
Wine and CrossOver Retine Support on macOS. from http://ielk.blogspot.com/2017/02/wine-20-on-macos-10122.html

Blurry font issue with Wine 2.0 on macOS 10.12.2

After installing the latest Wine release, which currently is 2.0 (I chose the development branch) on XQuartz 2.7.11, I was having problems with blurry text in both winecfg, regedit and other programs launched through Wine. After trying to enable font smoothing and font replacements (source) with only slight changes I found someone trying to solve the same issues (source), albeit compiling everything from scratch which I don't want to do. It turns out that the Retina display on my MacBook Pro was causing the issues with blurry fonts because Wine was not using the "real" resolution, only the reported "lower resolution".

To enable Retina support in Wine open the registry editor via a terminal, preferably through Wine Devel.app installed with Wine:
$ wine regedit

Then find the folder/key:

sudo apt-get update
sudo apt-get install -y git cmake
git clone https://github.com/Kitware/CMake.git
cd CMake
Make sure you are on a supported release
git checkout tags/v3.9.0
mkdir out
cd out
@ad8e
ad8e / glfw_ship.cpp
Last active April 29, 2025 08:32
instructions to use skia and glfw together. (download, installation, first program). as of Sept 2023, Windows is broken but this is still sadly the best starting resource for skia on Windows too.
/* Note: this Google copyright notice only applies to the original file, which has large sections copy-pasted here. my changes are under CC0 (public domain).
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/*
The official instructions don't work well. These alternative instructions are intended to be the shortest path to get a minimal setup running.