Skip to content

Instantly share code, notes, and snippets.

View LittleKey's full-sized avatar
💫
Lk@✨

LittleKey LittleKey

💫
Lk@✨
View GitHub Profile
@Integralist
Integralist / Replace macOS Terminal Emulator with GPU accelerated Alacritty.md
Created February 8, 2018 15:31
[Replace macOS Terminal Emulator with GPU accelerated Alacritty] #macOS #terminal #shell #alacritty

https://arslan.io/2018/02/05/gpu-accelerated-terminal-alacritty/

  • Install rust: curl https://sh.rustup.rs -sSf | sh
  • Make rust available: echo 'source "$HOME/.cargo/env"' >> ~/.bashrc
  • Set rust compiler: rustup override set stable
  • Update rust: rustup update stable
  • Get Alacritty: git clone https://github.com/jwilm/alacritty.git
  • Build Alacritty: cd alacritty && make app
  • Add Alacritty to your Applications directory: cp -r target/release/osx/Alacritty.app /Applications/
  • Create Alacritty config: mkdir -p ~/.config/alacritty && cp alacritty_macos.yml ~/.config/alacritty/alacritty.yml
@dreikanter
dreikanter / encrypt_openssl.md
Last active June 20, 2024 10:15 — forked from crazybyte/encrypt_openssl.txt
File encryption using OpenSSL

Symmetic encryption

For symmetic encryption, you can use the following:

To encrypt:

openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt

To decrypt:

@MoOx
MoOx / index.js
Last active February 9, 2024 22:44
Export/import github labels
// go on you labels pages
// eg https://github.com/cssnext/cssnext/labels
// paste this script in your console
// copy the output and now you can import it using https://github.com/popomore/github-labels !
var labels = [];
[].slice.call(document.querySelectorAll(".label-link"))
.forEach(function(element) {
labels.push({
name: element.textContent.trim(),
@lapastillaroja
lapastillaroja / DividerItemDecoration.java
Last active November 17, 2023 23:06 — forked from akmalxxx/DividerItemDecoration.java
DividerItemDecoration. RecyclerView.ItemDecoration simple implementation
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.View;
@staltz
staltz / introrx.md
Last active June 29, 2024 15:58
The introduction to Reactive Programming you've been missing
@ademar111190
ademar111190 / SearchViewFormatter.java
Last active March 16, 2023 10:44
An easy way to format SearchView's
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.text.Spannable;
import android.text.SpannableStringBuilder;
import android.text.style.ImageSpan;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.SearchView;
import android.widget.TextView;