Skip to content

Instantly share code, notes, and snippets.

View ericoporto's full-sized avatar
🎮
making

Érico Porto ericoporto

🎮
making
View GitHub Profile
@ericoporto
ericoporto / copyalpha.sh
Last active August 9, 2017 01:21
Copy alpha from a png file and apply to all png images in a folder
#!/bin/bash
# Erico Porto 2017
# requires convert installed from image magick
# copies the alpha from one image and apply to all
# images in a folder
a=1
for i in *.png; do
new=$(printf "alpha_%s" "$i")
convert "$i" alpha/alpha.png -compose CopyOpacity -composite "${new}"
@ericoporto
ericoporto / Aseprite.desktop
Last active December 13, 2023 08:47
Desktop file for aseprite from Steam, make sure to replace USERNAME with your username. Place on /usr/share/applications/ or ~/.local/share/applications/
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Aseprite
GenericName=Sprite Editor
Comment=Animated sprite editor & pixel art tool
Icon=/home/USERNAME/.steam/steam/steamapps/common/Aseprite/data/icons/ase64.png
Categories=Graphics;2DGraphics;RasterGraphics;
Exec=/home/USERNAME/.steam/steam/steamapps/common/Aseprite/aseprite %U
TryExec=/home/USERNAME/.steam/steam/steamapps/common/Aseprite/aseprite
@ericoporto
ericoporto / Aseprite.xml
Last active June 4, 2022 15:45
This allows associating ase files to aseprite in freedesktop DEs (Unity, Gnome...). Add to /usr/share/mime or ~/.local/share/mime/ .
<?xml version='1.0' encoding='utf-8'?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="image/aseprite">
<comment>aseprite file</comment>
<glob pattern="*.ase"/>
</mime-type>
</mime-info>
@ericoporto
ericoporto / github-to-bitbucket
Created February 10, 2018 02:32 — forked from sangeeths/github-to-bitbucket
Forking a Github repo to Bitbucket
Go to Bitbucket and create a new repository (its better to have an empty repo)
git clone git@bitbucket.org:abc/myforkedrepo.git
cd myforkedrepo
Now add Github repo as a new remote in Bitbucket called "sync"
git remote add sync git@github.com:def/originalrepo.git
Verify what are the remotes currently being setup for "myforkedrepo". This following command should show "fetch" and "push" for two remotes i.e. "origin" and "sync"
git remote -v
@ericoporto
ericoporto / myGitDiffAGS.dif
Created February 14, 2018 02:16
git diff output between the ags folder (and current ags head)
diff --git a/Android/buildlibs/armeabi-v7a/ndkenv b/Android/buildlibs/armeabi-v7a/ndkenv
index cf9fdfb..6e3d130 100644
--- a/Android/buildlibs/armeabi-v7a/ndkenv
+++ b/Android/buildlibs/armeabi-v7a/ndkenv
@@ -5,7 +5,7 @@ get_abs_path() {
unset DEVROOT SDKROOT CFLAGS CC LD CPP CXX AR AS NM CXXCPP RANLIB LDFLAGS CPPFLAGS CXXFLAGS
-export NDK_PLATFORM_ROOT=/opt/android-ndk-r10e-standalone/android-9/arm
+export NDK_PLATFORM_ROOT=~/Android/Sdk/ndk-bundle/platforms/android-14/arm
//=============================================================================
//
// Adventure Game Studio (AGS)
//
// Copyright (C) 1999-2011 Chris Jones and 2011-20xx others
// The full list of copyright holders can be found in the Copyright.txt
// file, which is part of this source code distribution.
//
// The AGS source code is provided under the Artistic License 2.0.
// A copy of this license can be found in the file License.txt and at
@ericoporto
ericoporto / PrintToConsole.vba
Last active December 7, 2020 22:12
Easy generic print Dictionary to Excel Worksheet using VBA
'call using: Call PrintDict(data)
' Where data can be a number, a string, a dictionary or an Array,
' with any of these inside. (Ctrl+G for Excel Console)
'
' The MIT License
'
' Copyright (c) 2018 Érico Vieira Porto
'
' Permission is hereby granted, free of charge, to any person obtaining a copy
' of this software and associated documentation files (the "Software"), to deal
./ags
Adventure Game Studio v3.4 Interpreter
Copyright (c) 1999-2011 Chris Jones and 2011-2018 others
ACI version 3.4.1.12
Initializing allegro
DEBUG: al-main INFO: Allegro initialised (instance 1)
Reading configuration
Located game data file: /home/erico/git/sonneveld/agscommunity/Engine/memtrek.exe
@ericoporto
ericoporto / CMakeOutput.log
Created June 19, 2018 02:56
temp build ags-sdl2
The system is: Windows - 10.0.16299 - AMD64
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
Compiler:
Build flags:
Id flags:
The output was:
0
Microsoft (R) Build Engine version 15.7.179.6572 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

How do I clone a GitHub wiki?

Any GitHub wiki can be cloned by appending wiki.git to the repo url, so the clone url for the repo https://myorg/myrepo/ is: git@github.com/myorg/myrepo.wiki.git (for ssh) or https://github.com/my/myrepo.wiki.git (for https).

You make edits, and commit and push your changes, like any normal repo.

How do I add images to a wiki page?

You need to clone the wiki repo and edit it on your system.