Skip to content

Instantly share code, notes, and snippets.

View cecil's full-sized avatar
💭
🤠

cecil cecil

💭
🤠
View GitHub Profile
@pvdb
pvdb / list_targets.sh
Last active November 8, 2023 08:18
List all targets (sometimes incorrectly referred to as "goals") in a GNU Makefile
#
# this gist can be used to list all targets, or - more correctly - rules,
# that are defined in a Makefile (and possibly other included Makefiles)
# and is inspired by Jack Kelly's reply to a StackOverflow question:
#
# http://stackoverflow.com/questions/3063507/list-goals-targets-in-gnu-make/3632592#3632592
#
# I also found this script - http://www.shelldorado.com/scripts/cmds/targets - which does
# something similar using awk, but it extracts targets from the "static" rules from a single
# Makefile, meaning it ignores any included Makefiles, as well as targets from "dynamic" rules
@weakish
weakish / busyroot.sh
Created April 19, 2011 11:06
#sh script to set up a #chroot #busybox #ssh environment
#!/bin/sh
# by Jakukyo Friel <weakish@gmail.com> under GPL v2.
### Set up a chroot busybox SSH environment
## requires
# wget -- to download pubkey and busybox
# sharutils -- to generate random password
## Config
@ticean
ticean / SVN_Git_Mirror.md
Created January 3, 2012 21:14
SVN Git Mirror

Create Git Mirror from SVN Repository

This guide will demonstrate how to mirror an SVN into a Git repo. You're the target audience if you're an SVN user, just getting started with Git and need to coax your project team over to Git.

The branching scenario has been simplified for clarity.

References

@piyushbansal
piyushbansal / ValidateSSH.py
Last active October 6, 2023 14:15
A simple script to validate SSH keys.
#! /bin/bash/python
# Author : Piyush Bansal
# To check if a key is valid ssh key (rsa)
# REQUIREMENTS : give input a file , that has one ssh-key in it.
# RESULT : valid/not valid ssh-key
# NOTE : initial devel. phase, needs to to tweaked to make it suitable for our use here.
import base64,struct,sys,binascii
@niksumeiko
niksumeiko / git.migrate
Last active July 19, 2024 21:32
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.
@ninetwentyfour
ninetwentyfour / tipbot.coffee
Last active August 29, 2015 13:56
Tipbot - Dogecoin tipping for hubot
# Description:
# Tip people with dogecoins!
# You or someone you know needs to setup and run https://github.com/ninetwentyfour/tipbot
# Only works with hipchat
# ░░░░░░░░░▄░░░░░░░░░░░░░░▄░░░░
# ░░░░░░░░▌▒█░░░░░░░░░░░▄▀▒▌░░░
# ░░░░░░░░▌▒▒█░░░░░░░░▄▀▒▒▒▐░░░
# ░░░░░░░▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐░░░
# ░░░░░▄▄▀▒░▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐░░░
# ░░░▄▀▒▒▒░░░▒▒▒░░░▒▒▒▀██▀▒▌░░░
@joshuar
joshuar / Three-Node-LustreFS-Cluster-Quickstart.md
Last active July 22, 2020 09:52
Quick three-node Lustre set-up on CentOS 6
@darcyparker
darcyparker / installNeovim.sh
Last active July 22, 2024 13:24
Build and install neovim for Debian
#!/usr/bin/env bash
#Build and install neovim for Debian
#See: https://neovim.io/
#See: https://github.com/neovim/neovim/wiki/Building-Neovim#quick-start
#See: https://gist.github.com/darcyparker/153124662b05c679c417
#Save current dir
pushd . > /dev/null || exit
@fo-fo
fo-fo / nes-hardware-sprite-visualizer.lua
Created September 15, 2015 14:44
Lua script for NES hardware sprite visualization in BizHawk
-- NES Hardware Sprite Visualizer (for BizHawk)
-- v01
-- by thefox <thefox@aspekt.fi> 2015-09-15
-- NOTE: Requires NesHawk core
-------------------------------------------------------------------------------
-- Memory domains on NES:
-- WRAM, CHR, CIRAM (nametables), PRG ROM, PALRAM, OAM, System Bus, RAM
@mslinn
mslinn / instructions.txt
Created November 13, 2015 21:53
Create a PPA repository on S3
$ # see https://github.com/krobertson/deb-s3
$ sudo apt-get install ruby2.1-dev
$ sudo gem install deb-s3
$ cd ~/pound
$ aws s3api create-bucket --bucket mslinn-ppa --acl public-read
{
"Location": "/mslinn-ppa"
}
$ deb-s3 upload --bucket mslinn-ppa pound_2.7f-0ubuntu1_amd64.deb
$ deb-s3 verify -b mslinn-ppa