Skip to content

Instantly share code, notes, and snippets.

View moalex's full-sized avatar
πŸ«›
Farting

moalex moalex

πŸ«›
Farting
View GitHub Profile
@fernandoaleman
fernandoaleman / how-to-install-php-5.6-on-ubuntu-22.04.md
Last active May 5, 2025 15:50
How to install PHP 5.6 on Ubuntu 22.04

How To Install PHP 5.6 on Ubuntu 22.04

Add php apt repository

$ sudo add-apt-repository -y ppa:ondrej/php

Update repository index

@sivinnguyen
sivinnguyen / ubuntu_touch_redmi_9a.md
Last active May 22, 2026 14:20
How to install Ubuntu Touch on Xiaomi Redmi 9A/9C (Draft)
@opastorello
opastorello / gist:05f02f902339ebc27ea7f20c1838b066
Created November 4, 2021 06:43
Cracking Sublime Text Build (4121)
# Cracking Sublime Text ( Build 4121 ) Tutorial Analysis
---
Two main changes to be made for best experience. This can be done with script.
### License Key
While it is possible to deduce the format of the license key, there is available ones online to show. Analyse and see that it is still that same format. The main part is the verification of the hash values from the license key that we want to always be "correct". This is also the key that this tutorial will use.
```
@moalex
moalex / string-is-empty.sh
Created October 12, 2021 11:58
bash :: ΠŸΡƒΡΡ‚Π°Ρ Π»ΠΈ строка
#!/bin/bash
val1="testing"
val2=''
### НС пустая Π»ΠΈ строка
if [ -n $val1 ]; then
echo "Π‘Ρ‚Ρ€ΠΎΠΊΠ° '$val1' Π½Π΅ пустая"
else
echo "Π‘Ρ‚Ρ€ΠΎΠΊΠ° '$val1' пустая"
@opastorello
opastorello / sublime text 4143 license key
Last active May 25, 2026 21:28
sublime text 4143 license key
> * Go to [hexed.it](https://hexed.it/)
> * Click "Open File" and choose your sublime_text.exe **(DON'T FORGET TO BACKUP YOUR EXE FILE)**
> * Go to Search and in "Search for" put: 80 78 05 00 0F 94 C1
> * In Search Type select "Enable replace" and put: 80 78 05 00 0F 94 C1
> * Click "Find next" then "Replace"
> * Do the same thing with: C6 40 05 01 48 85 C9 => C6 40 05 01 48 85 C9
> * Click "Save as" then name it: sublime_text
> * Copy your modified sublime_text.exe to directory Sublime Text
@moalex
moalex / aria2c.md
Last active January 22, 2024 18:09
@OrionUnix
OrionUnix / Sublime Text 3.2.2 Build 3211 key licence
Last active May 23, 2026 12:36
Sublime Text 3.2.2 Build 3211 key licence
----- BEGIN LICENSE -----
Member J2TeaM
Single User License
EA7E-1011316
D7DA350E 1B8B0760 972F8B60 F3E64036
B9B4E234 F356F38F 0AD1E3B7 0E9C5FAD
FA0A2ABE 25F65BD8 D51458E5 3923CE80
87428428 79079A01 AA69F319 A1AF29A4
A684C2DC 0B1583D4 19CBD290 217618CD
@gchingon
gchingon / mediashot.sh
Created September 23, 2019 06:01
screenshot and mediainfo video files
#!/usr/local/bin/bash
#
# Written by ump721
# Based on and inspired by dsl420's original script
#
# Usage:
# mediashot video.mkv [destination_folder] [cap_name] [number_of_caps]
#
# Defaults:
# destination_folder same folder as input file
@atomicbird
atomicbird / logMilestone.swift
Last active August 22, 2023 03:41
Sometimes you just want to print a message that tells you a line of code was executed. Inspired by a tweet from Paige Sun: https://twitter.com/_PaigeSun/status/1161132108875796480
/// Log the current filename and function, with an optional extra message. Call this with no arguments to simply print the current file and function. Log messages will include an Emoji selected from a list in the function, based on the hash of the filename, to make it easier to see which file a message comes from.
/// - Parameter message: Optional message to include
/// - file: Don't use; Swift will fill in the file name
/// - function: Don't use, Swift will fill in the function name
/// - line: Don't use, Swift will fill in the line number
func logMilestone(_ message: String? = nil, file: String = #file, function: String = #function, line: Int = #line) -> Void {
#if DEBUG
// Feel free to change the list of Emojis, but don't make it shorter, because a longer list is better.
let logEmojis = ["πŸ˜€","😎","😱","😈","πŸ‘Ί","πŸ‘½","πŸ‘Ύ","πŸ€–","πŸŽƒ","πŸ‘","πŸ‘","🧠","πŸŽ’","🧀","🐢","🐱","🐭","🐹","🦊","🐻","🐨","🐡","πŸ¦„","πŸ¦‹","🌈","πŸ”₯","πŸ’₯","⭐️","πŸ‰","πŸ₯","🌽","πŸ”","🍿","🎹","🎁","❀️","🧑","πŸ’›","πŸ’š","πŸ’™","πŸ’œ","πŸ””"]
let logEmoji = logEmojis[abs(

git-flow completion requires git-completion to work. How exactly you go about installing git-completion varies wildly from system to system, so it's hard to give exact installation instructions.

OS X / macOS

By far the easiest way to install both Git and git-completion is via Homebrew, so you should pick that one.

Homebrew

  1. Install homebrew