Skip to content

Instantly share code, notes, and snippets.

View arlm's full-sized avatar

Alexandre Rocha Lima e Marcondes arlm

View GitHub Profile
@findmory
findmory / README.md
Last active October 3, 2024 06:36
Send Trackpad gestures over Barrier/Synergy using BetterTouchTool

Problem: Controlling a remote Mac desktop using a tool like Barrier or Synergy doesn't allow for trackpad gestures to be sent to the client machine.

Solution: Use Better Touch Tool on host machine to handle the gestures and send a remote command to the client machine.

Steps to setup:

[1] On the CLIENT machine in BTT setup these Named triggers:

@mbleigh
mbleigh / README.md
Last active May 20, 2025 05:20
Firebase Hosting Fetch All Files

Fetch All Files from Firebase Hosting

This script fetches all of the files from the currently deployed version of a Firebase Hosting site. You must be signed in via the Firebase CLI and have "Site Viewer" permission on the site in question to be able to properly run the script.

Running via NPX

npx https://gist.github.com/mbleigh/9c8680cf319ace2f506f57380da66e7d <site_name>
@fnky
fnky / ANSI.md
Last active June 23, 2025 10:00
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 / 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() {
@binho
binho / caixa_modulo_seguranca_macOS.md
Last active April 16, 2025 10:48
Como instalar/reinstalar o módulo de segurança da Caixa no macOS

Bom vou falar um pouco da minha luta com o Internet Banking da Caixa.

No meu caso tive problemas após migrar o meu macbook para um novo e não conseguia instalar o módulo de segurança no novo macbook e assim sem poder usar o Internet Banking no computador.

Primeiro rodei o script sudo /usr/local/bin/warsaw/uninstall.sh do warsaw como root pra tentar começar tudo do zero mas ainda assim após tentar reinstalar não tive sucesso.

Ao analisar o script postinstall dentro do pkg notei que varios arquivos de inicialização são criados e que alguns dados ainda continuaram no meu computador como certificados e arquivos de inicialização, então tenha certeza que estes arquivos abaixo tenham sido removidos:

rm -f ~/Library/LaunchAgents/com.diebold.warsaw.user.plist
@xoofx
xoofx / ProgramInlineAsm.cs
Created May 25, 2016 03:08
Shows how to use the prototype inline IL ASM with Roslyn
using System;
using System.IO;
using System.Runtime.CompilerServices;
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Method)]
internal class CompilerIntrinsicAttribute : Attribute { }
}
@CarolEidt
CarolEidt / RyuJIT-Tutorial.md
Last active January 12, 2023 09:04
RyuJIT Tutorial

RyuJIT

The Open Source Just in Time Compiler for .NET

WHEN & WHERE

This tutorial was given at PLDI 2016. The content is available here.

ABSTRACT

This tutorial will present an introduction to RyuJIT (rē-yü-jit), an industry leading, high performance Just-in-Time compiler that supports the Microsoft .NET ecosystem. RyuJIT is also used to deliver world class performance on in house 1st party services like Office 365, Bing, and Exchange through innovative design and focus on business results. RyuJIT is shipping in the .NET 4.6 product and is now open source as part of CoreCLR.

An overview of the architecture of RyuJIT will be presented, including the internal representation (IR) and compilation phases with a focus on key design and imple

@kuhlenh
kuhlenh / RoslynExternalContributions.md
Last active April 28, 2016 15:23
List of non-Microsoft pull-requests to the dotnet/roslyn repo

Roslyn Contributions (EXTERNAL)

The purpose of this gist is to allow people to more easily see non-Microsoft merged pull-requests. We appreciate all contributions and want to thank our code contributors below and our issue-loggers for their awesome work!

Note: This list only contains contributions on GitHub (the CodePlex PRs are not in this list). Data is from 2/10/2016 9:15AM PST.

Title Login Merge Date SHA
Use MyGet V3 API maartenba 2/2/2016 3:53:39 PM +00:00 db3f7c26