Skip to content

Instantly share code, notes, and snippets.

🐵
Busy

Rohit Yadav rhtyd

🐵
Busy
Block or report user

Report or block rhtyd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rhtyd
rhtyd / mp4-to-mp3
Created Oct 18, 2010
Converts Mp4 in a dir to mp3
View mp4-to-mp3
#! /bin/bash
#
# Converts all MP4 files in the current directory to MP3s.
#
# Uncomment to remove whitespaces in mp4 files
for video in *.MP4; do
#f=`echo $video | tr ' ' '_'`
#mv "$video" $f
@oraccha
oraccha / linux-0.01-rm-3.5-rt20110112a.patch
Created Jan 12, 2011
Linux 0.01: fix compile errors with gcc 4.4.5
View linux-0.01-rm-3.5-rt20110112a.patch
diff -rc linux-0.01-rm-3.5.orig/fs/Makefile linux-0.01-rm-3.5/fs/Makefile
*** linux-0.01-rm-3.5.orig/fs/Makefile 2008-01-14 05:58:48.000000000 +0900
--- linux-0.01-rm-3.5/fs/Makefile 2011-01-12 18:23:37.336449408 +0900
***************
*** 3,9 ****
CC =gcc
LD =ld
CFLAGS =-Wall -O -fstrength-reduce -fomit-frame-pointer \
! -fno-stack-protector -nostdinc -I../include
CPP =gcc -E -nostdinc -I../include
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active Nov 12, 2019
A badass list of frontend development resources I collected over time.
View frontendDevlopmentBookmarks.md
@debasishg
debasishg / gist:8172796
Last active Nov 4, 2019
A collection of links for streaming algorithms and data structures
View gist:8172796
  1. General Background and Overview
@jvns
jvns / interview-questions.md
Last active Nov 13, 2019
A list of questions you could ask while interviewing
View interview-questions.md

A lot of these are outright stolen from Edward O'Campo-Gooding's list of questions. I really like his list.

I'm having some trouble paring this down to a manageable list of questions -- I realistically want to know all of these things before starting to work at a company, but it's a lot to ask all at once. My current game plan is to pick 6 before an interview and ask those.

I'd love comments and suggestions about any of these.

I've found questions like "do you have smart people? Can I learn a lot at your company?" to be basically totally useless -- everybody will say "yeah, definitely!" and it's hard to learn anything from them. So I'm trying to make all of these questions pretty concrete -- if a team doesn't have an issue tracker, they don't have an issue tracker.

I'm also mostly not asking about principles, but the way things are -- not "do you think code review is important?", but "Does all code get reviewed?".

@idosela
idosela / http-response-interceptor.js
Last active Jul 18, 2018
Sample code for ng-conf 2014
View http-response-interceptor.js
angular.module('myMdl', []).config(['$httpProvider', function($httpProvider) {
$httpProvider.responseInterceptors.push([
'$q', '$templateCache', 'activeProfile',
function($q, $templateCache, activeProfile) {
// Keep track which HTML templates have already been modified.
var modifiedTemplates = {};
// Tests if there are any keep/omit attributes.
var HAS_FLAGS_EXP = /data-(keep|omit)/;
@chiradeep
chiradeep / postinstall_lxc.sh
Created Apr 29, 2014
post-install for a debian wheezy lxc container that installs stuff necessary for a systemvm
View postinstall_lxc.sh
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@chiradeep
chiradeep / create-lxc-systemvm.sh
Last active Oct 23, 2019
LXC script to initiate build of CloudStack LXC systemvm
View create-lxc-systemvm.sh
#!/bin/bash
# tested on Ubuntu 14.04
#set -x
sudo lxc-create --template=debian --name=systemvm -- --release=wheezy
sudo lxc-start -n systemvm -d
sleep 2
ip=$(sudo lxc-info -n systemvm -i | awk '{print $2}')
#start provisioning using ssh
@chiradeep
chiradeep / provision.rb
Created Apr 29, 2014
Ruby script to ssh into base wheezy template and install stuff necessary for systemvm
View provision.rb
#!/usr/bin/env ruby
require 'rubygems'
require 'net/ssh'
host = ''
user = 'root'
pass = 'root'
options = {}
opt_parser = OptionParser.new do |opts|
opts.banner = "Usage: provision.rb IP [options]"
@staltz
staltz / introrx.md
Last active Nov 17, 2019
The introduction to Reactive Programming you've been missing
View introrx.md
You can’t perform that action at this time.