Skip to content

Instantly share code, notes, and snippets.

View AndriyKalashnykov's full-sized avatar

Andriy Kalashnykov AndriyKalashnykov

View GitHub Profile
@robertkirkman
robertkirkman / README.md
Last active August 19, 2025 12:50 — forked from thalamus/ArchLinuxARM-M1
How to install Arch Linux ARM or Debian ARM in QEMU full system emulator
@irmorteza
irmorteza / struct-sample.go
Created July 24, 2021 11:18
go sample: how to convert Struct to map or json and vice versa
package main
import (
"encoding/json"
"fmt"
)
type MyStruct struct {
Id string `json:"id"`
Name string `json:"name"`
@troyfontaine
troyfontaine / 1-setup.md
Last active August 22, 2025 13:21
Signing your Git Commits on MacOS

Methods of Signing Git Commits on MacOS

Last updated March 13, 2024

This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.

Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment

@DinisCruz
DinisCruz / Version 1 (with static data).cs
Last active October 26, 2017 21:09
O2 Script - Send data to Google Analytics via get request (of Image)
//descriptions from http://www.lunametrics.com/blog/2011/10/04/utmgif-request-parameters/
var utmwv = "5.3.8"; // Tracking code version
var utms = "1"; // Session requests. Updates every time a __utm.gif request is made. Stops incrementing at 500 (max number of GIF requests per session).
var utmn = "1797201820"; // Unique ID generated for each GIF request to prevent caching of the GIF image
var utmhn = "teammentor-33-ci"; // Host name, which is a URL-encoded string
var utmcs = "ISO-8859-1"; // Language encoding for the browser. Some browsers don’t set this, in which case it is set to “-”
var utmsr = "1440x852"; // Screen resolution
var utmvp = "1440x751"; // Size of Viewing Pane
var utmsc = "32-bit"; // Screen color depth
var utmul = "en-us"; // Browser language
@brunoborges
brunoborges / module.xml
Created June 20, 2012 16:53
JBoss module for Spring
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="org.springframework.spring">
<resources>
<resource-root path="cglib-nodep-2.2.2.jar"/>
<resource-root path="aopalliance-1.0.0.jar"/>
<resource-root path="spring-aop-3.1.1.RELEASE.jar"/>
<resource-root path="spring-asm-3.1.1.RELEASE.jar"/>
<resource-root path="spring-beans-3.1.1.RELEASE.jar"/>
<resource-root path="spring-context-3.1.1.RELEASE.jar"/>
<resource-root path="spring-context-support-3.1.1.RELEASE.jar"/>
@pksunkara
pksunkara / config
Last active August 16, 2025 06:14
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
# vi: ft=dosini
[user]
name = Pavan Kumar Sunkara
email = [email protected]
username = pksunkara
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
[column]
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>SoundCloud OAuth 2 User Agent Authentication Flow Demo</title>
<script type="text/javascript" charset="utf-8" src="javascript/jquery-1.4.2.js"></script>
<script type="text/javascript" charset="utf-8">
$(function () {
var extractToken = function(hash) {