Skip to content

Instantly share code, notes, and snippets.

@zarzen
zarzen / create_git_repo.org
Last active September 10, 2025 12:04
Create a Git repo base on windows shared folder

Reference

http://elegantcode.com/2011/06/18/git-on-windows-creating-a-network-shared-central-repository/

Step 1: Go to the remote shared folder

using `pushd` command

pushd \\remoteServer\git\Share\Folder\Path

Step 2: Create a folder to store repository


@Tabea-K
Tabea-K / nr_of_common_lines_per_column.sh
Last active July 9, 2020 08:17
Prints the number of identical rows between different columns for two csv files. The first argument is the column number which should be used. For example, you can compare the IDs given in a csv file. Mainly a wrapper around the comm command.
#!/usr/bin/env bash
# Prints the number of identical rows between different columns for two
# csv files. The first argument is the column number which should be used.
# For example, you can compare the IDs given in a csv file.
cut -f $1 $2 | sort > .file1
cut -f $1 $3 | sort > .file2
# With no options, comm produces three-column output.
@nijjwal
nijjwal / Employee.java
Last active December 16, 2017 11:24
HashMap Code. i) Find an employee whose id is 300. ii) Display all the employee information to show that map does not preserve insertion order. iii) Override toString method
import java.util.Map;
import java.util.HashMap;
public class Employee{
Integer empId;
String name;
@Override
public String toString()
{
@leonkorteweg
leonkorteweg / mirror-remote-folder-lftp.md
Last active October 16, 2024 15:49
Mirror a remote folder from the command line
@xero
xero / irc.md
Last active January 9, 2026 01:20
irc cheat sheet
@salcode
salcode / .gitignore
Last active September 27, 2025 02:48
Please see https://salferrarello.com/wordpress-gitignore/ for the canonical version of this WordPress .gitignore file. Note: I do not receive notifications for comments here (because GitHub does not send notifications on Gists)
# -----------------------------------------------------------------
# .gitignore for WordPress @salcode
# ver 20180808
#
# From the root of your project run
# curl -O https://gist.githubusercontent.com/salcode/b515f520d3f8207ecd04/raw/.gitignore
# to download this file
#
# By default all files are ignored. You'll need to whitelist
# any mu-plugins, plugins, or themes you want to include in the repo.
@roachhd
roachhd / README.md
Created January 4, 2015 12:20
Command Prompt Tricks, Hacks & Codes

Command Prompt Tricks, Hacks & Codes

Command Prompt is one of the most powerful tools in Windows; but sadly, it is also the most ignored one. Things were not always like this; but with the advent of GUI based operating systems, people started feeling that computing through command based tools was boring. This ultimately lead the command prompt into obscurity.

However, the command prompt is not useless. In fact, it can be pretty useful. This article provides some excellent tricks, secrets and hacks that will make you realize that the Windows Command Prompt is not only useful but also a tool that you should definitely give more respect to.

![Ascii star wars command prompt][1]

1-Watch ASCII version of the Star Wars Episode IV movie
Surprised yet? You can watch an ASCII version of the full Star Wars Episode IV Movie right in your command prompt window. Just open command prompt, type a small code and the movie will start playing immediately. Read the [complete instructions here][2].

@roachhd
roachhd / README.md
Last active December 23, 2024 04:54
a quick-and-dirty guide to Vim.

a quick-and-dirty guide to Vim

![][1]

In the world of text editors, there's a plethora of options out there. If you've ever Googled "how to edit HTML sites" or some such, you know what we mean. Allow us, then, to introduce you to VIM, a free website editor that offers many of the same features as Adobe Dreamweaver, and runs on just about every desktop platform. Specifically, it comes by default on the vast majority of Linux distributions, OS X and commercial Unix systems. (It's available to install on Windows, too.) And did we mention it's free? That command line UI isn't necessarily self-explanatory, though, so join us after the break for a quick crash course to help you get started.

Getting started

If you're running OS X or Linux, start out by opening a terminal. Now type "vim" et voilà: you're using VIM and you didn't even install it. Using Windows? Head over [here][2] and grab the binaries for Windows. Double-click the installer and you'll have VIM on Windows in no time.

@roachhd
roachhd / README.md
Last active January 18, 2026 04:00
Basics of BrainFuck

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

BrainFuck Programming Tutorial by: Katie

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

INTRODUCTION

@LeCoupa
LeCoupa / bash-cheatsheet.sh
Last active January 16, 2026 15:14
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04