Skip to content

Instantly share code, notes, and snippets.

@rxaviers
rxaviers / gist:7360908
Last active May 7, 2024 22:35
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@wojteklu
wojteklu / clean_code.md
Last active May 7, 2024 22:33
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@itnet7
itnet7 / gist:ab9b320a7f126a2b484575433a122f90
Created September 30, 2022 23:15
How To: Installing and Running Ansible Navigator on RHEL 9
On RHEL 9 Ensure the following Repo is enabled if you are wanting to install ansible-navigator.
ansible-automation-platform-2.2-for-rhel-9-x86_64-source-rpms
Enable it by running:
[root@<some_random_host> ~]# subscription-manager repos --enable ansible-automation-platform-2.2-for-rhel-9-x86_64-rpms
Then install by doing the following:
dnf install ansible-navigator
@dusta
dusta / bitbucket-pipelines.yml
Created February 11, 2020 14:35
bitbucket-pipelines deploy tag zip ftp
# This is a sample build configuration for PHP.
# Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: php:7.3
pipelines:
tags: # add the 'tags' section
v*: # specify the tag
@ChristopherA
ChristopherA / Debian-apt-get-contrib-non-free.md
Last active May 7, 2024 22:21
How to enable contrib and non-free repos in Debian

As root you need to edit /etc/apt/sources.lst

Then add contrib and non-free at the end of each line that begins with deb and deb-src just like the example:

deb http://http.us.debian.org/debian jessie main contrib non-free

deb http://security.debian.org jessie/updates main contrib non-free
@mikeananev
mikeananev / scratch_2.txt
Created May 3, 2021 07:50
MacOS mc Midnight commander open jar file
# jar
shell/i/.jar
Open=%cd %p/uzip://
View=%view{ascii} /usr/local/Cellar/midnight-commander/4.8.26/libexec/mc/ext.d/archive.sh view zip
# jar
type/i/^jar\ archive
Open=%cd %p/uzip://
View=%view{ascii} /usr/local/Cellar/midnight-commander/4.8.26/libexec/mc/ext.d/archive.sh view zip
@debasishg
debasishg / gist:8172796
Last active May 7, 2024 22:18
A collection of links for streaming algorithms and data structures

General Background and Overview

  1. Probabilistic Data Structures for Web Analytics and Data Mining : A great overview of the space of probabilistic data structures and how they are used in approximation algorithm implementation.
  2. Models and Issues in Data Stream Systems
  3. Philippe Flajolet’s contribution to streaming algorithms : A presentation by JΓ©rΓ©mie Lumbroso that visits some of the hostorical perspectives and how it all began with Flajolet
  4. Approximate Frequency Counts over Data Streams by Gurmeet Singh Manku & Rajeev Motwani : One of the early papers on the subject.
  5. [Methods for Finding Frequent Items in Data Streams](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.187.9800&amp;rep=rep1&amp;t
@lukehedger
lukehedger / ffmpeg-compress-mp4
Last active May 7, 2024 22:16
Compress mp4 using FFMPEG
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4
@manuelmorales
manuelmorales / backup-existent-images.sh
Last active May 7, 2024 22:14
Backing up and flashing an MK808B with Finless ROM 1.5
# Read the CMDLINE
sudo ./rkflashtool r 0x0000 0x2000 > cmdline.txt
# RESULT:
# PARMWFIRMWARE_VER:4.0.4
# MACHINE_MODEL:MID
# MACHINE_ID:007
# MANUFACTURER:RK30SDK
# MAGIC: 0x5041524B
# ATAG: 0x60000800