Skip to content

Instantly share code, notes, and snippets.

@jesugmz
jesugmz / display-raw-images-from-google-drive.md
Last active March 8, 2024 20:47
Display raw images from Google Drive

Display raw images from Google Drive

https://drive.google.com/uc?export=view&id={fileId} where file ID is the unique hash Google Drive gives when the shared link is created.

@leodutra
leodutra / -setup-windows-wsl-devenv.md
Last active June 30, 2024 12:43
Install and Setup Windows Subsystem 2 for Linux, Hyper, ZSH + Oh My Zsh + Powerlevel9k + plugins, FNM + VSCode (+ext) and Nerd Font

Setup Windows Subsystem 2 for Linux

Windows Subsystem 2 for Linux, Hyper, ZSH + Oh My Zsh + Powerlevel9k + plugins, FNM + VSCode (+ext) and Nerd Font

To setup native Linux, see this gist

Preview

Requirements

@acip
acip / configuration.md
Created May 21, 2018 08:01
Optimze Laravel speed in Docker for Windows/MacOS using opcache.

Add to your Dockerfile:

RUN docker-php-ext-configure opcache --enable-opcache \
    && docker-php-ext-install opcache
ADD php-config/opcache.ini /usr/local/etc/php/conf.d/opcache.ini
ADD php-config/opcache-blacklist.txt /usr/local/etc/opcache-blacklist.txt

Create php-config/opcache.ini with this content:

opcache.memory_consumption=128
@mcxiaoke
mcxiaoke / wine-retina.md
Last active June 8, 2024 06:07
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:

@keithmorris
keithmorris / drive-format-ubuntu.md
Last active July 4, 2024 09:06
Partition, format, and mount a drive on Ubuntu
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"