Skip to content

Instantly share code, notes, and snippets.

View arlm's full-sized avatar

Alexandre Rocha Lima e Marcondes arlm

View GitHub Profile
Main view
Logged out
login -> Logged in
Please log in
Logged in
logout -> Logged out
home -> Welcome
Welcome
next -> Second page
Second page
@arlm
arlm / zsh-keyboard-shortucts.md
Created November 26, 2021 16:10 — forked from mkfares/zsh-keyboard-shortucts.md
Common zsh Keyboard Shortcuts on macOS Catalina

Common zsh Keyboard Shortcuts on macOS Catalina

Navigation

CTRL + A : Move the cursor to the beginning of the line
CTRL + E : Move the cursor to the end of the line
OPTION + Left Arrow : Move the cursor one word backward
OPTION + Right arrow : Move the cursor one word forward
Left Arrow : Move the cursor one character backward
Right Arrow : Move the cursor one character forward

@arlm
arlm / ANSI.md
Created September 9, 2021 09:23 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1b
  • Decimal: 27
@arlm
arlm / GORILLA.BAS
Created September 5, 2018 13:49 — forked from caffo/GORILLA.BAS
QBasic Gorillas
' Q B a s i c G o r i l l a s
'
' Copyright (C) IBM Corporation 1991
'
' Your mission is to hit your opponent with the exploding banana
@arlm
arlm / makeNES
Created July 6, 2018 20:56 — forked from openback/makeNES
Bash script to compile and assemble an NES ROM using loopy's asm6 and create files appropriate for burning to chips
#!/bin/bash
#===============================================================================
#
# FILE: makeNES
#
# USAGE: ./makeNES [options] [ASM [CHR [NES]]]
#
# DESCRIPTION: Bash script to compile and assemble an NES ROM using loopy's
# asm6 and create files appropriate for burning to chips
#
@arlm
arlm / vd_pause.xml
Created May 18, 2018 14:01 — forked from alexjlockwood/vd_pause.xml
VectorDrawable definitions for play, pause, and record icons with additional group transformations
<vector
xmlns:android="http://schemas.android.com/apk/res/android"
android:width="48dp"
android:height="48dp"
android:viewportHeight="12"
android:viewportWidth="12">
<!-- Rotate the canvas, then translate, then scale, then draw the pause icon. -->
<group android:scaleX="1.5" android:pivotX="6" android:pivotY="6">
<group
@arlm
arlm / gh-pages.md
Created May 15, 2018 12:04 — forked from ramnathv/gh-pages.md
Creating a clean gh-pages branch

Creating a clean gh-pages branch

This is the sequence of steps to follow to create a root gh-pages branch. It is based on a question at [SO]

cd /path/to/repo-name
git symbolic-ref HEAD refs/heads/gh-pages
rm .git/index
git clean -fdx
echo "My GitHub Page" &gt; index.html
@arlm
arlm / AdbCommands.md
Last active April 17, 2022 21:33 — forked from Pulimet/AdbCommands
Adb useful commands list

General ADB Commands

ADB Server

  • Ensures that there is an ADB server running: adb start-server
  • Kills the ADB server if it is running: adb kill-server

Device Rebooting

@arlm
arlm / android-screen-to-gif.sh
Created March 19, 2018 16:08 — forked from lorenzos/android-screen-to-gif.sh
Captures screen from Android device via ADB and makes a 180x320 GIF
#!/bin/bash
# How to install:
# exo-open "http://developer.android.com/sdk/index.html#Other"
# sudo apt-get install libav-tools imagemagick
# wget https://gist.githubusercontent.com/lorenzos/e8a97c1992cddf9c1142/raw/android-screen-to-gif.sh
# chmod a+x android-screen-to-gif.sh
# Help message
function usage() {
@arlm
arlm / ByteArrayBuilder.cs
Created March 1, 2018 09:57 — forked from jmcd/ByteArrayBuilder.cs
Byte-array builder
public class ByteArrayBuilder
{
private byte[] _buffer;
public int Length { get; set; }
public ByteArrayBuilder()
{
_buffer = new byte[4096];
Length = 0;
}