Skip to content

Instantly share code, notes, and snippets.

Avatar

Samir Seth skseth

View GitHub Profile
@skseth
skseth / profiles-and-base-setup.md
Last active Aug 29, 2015
setting up profiles, terminal, virtualbox, docker, sublime text, github, go etc.
View profiles-and-base-setup.md
@skseth
skseth / findingstuff.md
Last active Aug 29, 2015
finding stuff
View findingstuff.md
#all files changed today
find . -mtime 0

#all files in directory, or subdirectories whose names match a pattern
find . -name '*.go' 

#all files in directory whose names match a pattern and which have specific content
@skseth
skseth / finders.md
Last active Aug 29, 2015
finding stuff
View finders.md

##find ignored files in directory

git clean -n -X

##... delete them

git clean -X
@skseth
skseth / programming101.md
Last active Aug 29, 2015
What Every Programmer Must Know
View programming101.md
View local_cloud.md
@skseth
skseth / fuzeinv
Created Nov 12, 2015
fuzemeeting note
View fuzeinv
This is a Fuze Meeting. For the optimal Fuze experience, we suggest you download Fuze ( https://www.fuze.com/download ) before your meeting.
Meeting ID: <ID>
Join Online Meeting: http://fuze.me/<ID>
Join by phone:
Dial phone number and enter the Meeting ID when prompted
- US Toll: +1 201-479-4595
- India Toll Free : 0008004420042
View gist:477d46a0bf835692a35979ccaaa3a785
#!/bin/bash
SVN_HOST="https://svn/path/to/repo"
git checkout master
git pull --rebase
git config --local svn-remote.svn.url "${SVN_HOST}"
git config --local svn-remote.svn.fetch ":refs/remotes/git-svn"
git config --local svn.rmdir true
@skseth
skseth / PropMain.java
Created Mar 9, 2019
Java CompositeConfiguration usage
View PropMain.java
package test;
import org.apache.commons.configuration.CompositeConfiguration;
import org.apache.commons.configuration.Configuration;
import org.apache.commons.configuration.PropertiesConfiguration;
import org.apache.commons.configuration.BaseConfiguration;
import java.util.Iterator;
class PropMain {
View lock.go
package main
import (
"bufio"
"fmt"
"io"
"os"
"syscall"
)
You can’t perform that action at this time.