Skip to content

Instantly share code, notes, and snippets.

View AesSedai101's full-sized avatar
🐈

Elsabe Ros AesSedai101

🐈
View GitHub Profile
@AesSedai101
AesSedai101 / bitrise_stats.sh
Created October 9, 2019 14:54
Bitrise build results to csv
accessToken="<Bitrise token>"
file="bitrise_results.csv"
response=$(curl "https://api.bitrise.io/v0.1/builds?limit=50" -H "accept: application/json" -H "Authorization: $accessToken")
echo "Clearing out $file"
# These need to match the fields specified in the jq .data | map
echo "Triggered, Finished, Status, Slug, Workflow, Triggered by, Repo" > $file
@AesSedai101
AesSedai101 / prepare_commit_message
Last active April 23, 2022 05:42
A git hook to pre-populate a commit message with the ticket number in the branch
#!/bin/sh
MSG_FILE=$1
#Assumes branch names in the format type/ticket-number-description-of-ticket
TICKETNO=`git on | cut -d'/' -f 2 | cut -d'-' -f '-2'`
MSG=`cat $MSG_FILE`
TITLE=`head -n 1 $MSG_FILE`
if [[ $TITLE = *"$TICKETNO"* ]]; then
@AesSedai101
AesSedai101 / Readme.md
Last active October 19, 2016 09:12
Find unused Activity classes in an IntelliJ Android project

Find unused Android activities in IntelliJ IDEA / Android Studio

This script will look for unused android.app.Activity classes in an IntelliJ project. To use, open the IDE scripting console, paste in this script and then press Ctrl+A and then Ctrl+Enter.

This is a work in progress

  • The script does not yet cater for all usage types. Unknown types are tracked in the unknowns list and is printed just before potentially unused activities.
  • The script assumes that utlity intent creation methods is named getStartIntent
@AesSedai101
AesSedai101 / .gitconfig
Last active July 10, 2018 13:02
.gitconfig
# Import git_shared_config
[include]
path = <path_to_shared_config>
# Use Notepad++ as editor of choice
[core]
editor = notepad++ -multiInst -nosession
autocrlf = true
# Use intellij or kdiff3 as merge and difftool by setting tool = kdiff3 or tool = intellij
[mergetool "kdiff3"]
path = D:/Program Files (x86)/KDiff3/kdiff3.exe
#include <stdio.h>
#include <jpeglib.h>
#include <iostream>
using namespace std;
JBLOCKARRAY rowPtrs[MAX_COMPONENTS];
void read(jpeg_decompress_struct srcinfo, jvirt_barray_ptr * src_coef_arrays) {
//cout << "Started reading DCT" << endl;
@AesSedai101
AesSedai101 / switch_maven.cmd
Created April 28, 2014 10:11
Windows cmd script to switch maven versions
@echo off
rmdir maven
set version=apache-maven-%1
echo Setting maven version to %version%
mklink /D maven %version%