Skip to content

Instantly share code, notes, and snippets.

View xlson's full-sized avatar

Leonard Gram xlson

View GitHub Profile
@meirbon
meirbon / Dell XPS 15 9560 Manjaro Setup instructions
Last active May 13, 2024 02:39
Small, quick guide to set up Manjaro on the XPS 15 9560
# 1. First of all of course get Manjaro:
https://manjaro.org/get-manjaro/
# I recommend using Etcher to copy the image to your USB:
https://etcher.io/
# 2. Before installing make sure:
# - Secure boot is disabled in BIOS
# - Your SSD, HDD or NVME drive is set to AHCI instead of RAID
# - Fastboot should be on Auto or minimal, but this shouldn't matter to much
@nikos
nikos / GradleTaskTimer.gradle
Created October 23, 2012 15:22
Measure time for the execution of each gradle task executed
class TaskTimerListener implements TaskExecutionListener {
private Clock clock
@Override
void beforeExecute(Task task) {
clock = new org.gradle.util.Clock()
}
@Override
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active November 15, 2024 09:51
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@matthewmccullough
matthewmccullough / .gitconfig.ini
Created December 31, 2011 18:16
Alternate URLs (insteadOfs) for GitHub Git repos
[url "git://github.com/"]
insteadOf = "ghg://"
pushInsteadOf = "ghg://"
# Example: git clone ghg://ntschutta/emacs
[url "git://github.com/matthewmccullough/"]
insteadOf = "ghgm://"
pushInsteadOf = "ghgm://"
# Example: git clone ghgm://hellogitworld
[url "[email protected]:"]
insteadOf = "ghs://"
@numan
numan / autoscaling_boto.py
Created July 17, 2011 00:42
Example of setting up AWS auto scaling using boto API
"""
The MIT License (MIT)
Copyright (c) 2011 Numan Sachwani
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
@kellyrob99
kellyrob99 / gist:1026097
Created June 14, 2011 22:31
Gradle rule to execute arbitrary groups of tests in isolation
/**
* Add a rule that supports executing tests based on a series of comma delimited patterns(ant glob patterns).
*/
tasks.addRule("Pattern: testMulti<Name>,<Name2> will test **/<Name>.class,**/<Name2>.class") {String taskName ->
if (taskName.startsWith("testMulti"))
{
tasks.add(taskName).dependsOn(test)
test.includes = taskName.substring(9).split(',').collect {"**/${it}.class"}
}
}
#!/bin/bash
# SPDX-License-Identifier: MIT
## Copyright (C) 2009 Przemyslaw Pawelczyk <[email protected]>
##
## This script is licensed under the terms of the MIT license.
## https://opensource.org/licenses/MIT
#
# Lockable script boilerplate
@vgrichina
vgrichina / grails
Created February 13, 2010 01:55
Script to launch appropriate Grails version for current application
#!/bin/bash
# Check if GRAILS_PREFIX is set
if [ -z $GRAILS_PREFIX ]; then
echo "You must define environment variable GRAILS_PREFIX before running Automatic Grails Version Selector"
exit 1
fi
# Define script params array
declare -a PARAMS