Skip to content

Instantly share code, notes, and snippets.

View arlm's full-sized avatar

Alexandre Rocha Lima e Marcondes arlm

View GitHub Profile
@arlm
arlm / disable-fusion-log.ps1
Created February 1, 2018 08:59 — forked from teamaton/disable-fusion-log.ps1
FusionLog - enable and disable
Remove-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name ForceLog
Remove-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name LogFailures
Remove-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name LogResourceBinds
Remove-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name LogPath
@arlm
arlm / happy_git_on_osx.md
Last active February 1, 2018 13:08 — forked from trey/happy_git_on_osx.md
Creating a Happy Git Environment on OS X

Creating a Happy Git Environment on OS X

Step 1: Install Git

brew install git bash-completion bash-git-prompt

Configure things:

git config --global user.name "Your Name"

git config --global user.email "[email protected]"

@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;
}
@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 / 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 / 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" > index.html
@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 / 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 / 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 / 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