Skip to content

Instantly share code, notes, and snippets.

View pungoyal's full-sized avatar

Puneet Goyal pungoyal

View GitHub Profile
Market Capitalization > 1000 AND
Debt to equity < 1 AND
Profit growth 5Years > 10% AND
Promoter holding > 30% AND
ROCE3yr avg > 20% AND
Return on capital employed > 20% AND
Average return on equity 3Years > 10% AND
Sales growth 5Years > 8% AND
Sales growth 3Years > Sales growth 5Years AND
Return over 10years > 10% AND
@pungoyal
pungoyal / setup.sh
Last active September 29, 2026 13:24
Setup from scratch
xcode-select --install
sudo xcodebuild -license
# pick a name you want
sudo scutil --set HostName macbook-m2
sudo scutil --set ComputerName macbook-m2
sudo scutil --set LocalHostName macbook-m2
dscacheutil -flushcache
mkdir -p ~/.config/mise/
@pungoyal
pungoyal / aoe.sh
Last active October 7, 2018 10:48
AoE on Mac
brew cask install xquartz
brew install winetricks --with-wine
WINEPREFIX="$HOME/.wine32" WINEARCH=win32 winetricks directplay
WINEPREFIX="$HOME/.wine32" WINEARCH=win32 winetricks d3dx9_36
# from inside the AoE/AoC folder
WINEPREFIX="$HOME/.wine32" WINEARCH=win32 wine age2_x1/age2_X1
@pungoyal
pungoyal / dpld.sh
Last active November 28, 2016 10:34
cloud-config for a new server
#cloud-config
apt_update: true
packages:
- vim
- curl
- htop
- screen
- aptitude
users:
- name: puneet
@pungoyal
pungoyal / rancher.sh
Last active October 22, 2016 05:34
Install the rancher server
sudo apt-get install -y lxc wget bsdtar curl htop screen
sudo apt-get install -y linux-image-extra-$(uname -r)
sudo modprobe aufs
screen -
curl -sSL https://get.docker.com/ | sh
sudo usermod -aG docker ubuntu
sudo reboot
@pungoyal
pungoyal / dotfiles
Last active August 29, 2015 14:04
mac setup
.gemrc
.gitconfig
.gitignore_global
.htoprc
.pip/
.python_history
.ssh/
.vagrant.d/
.vim/
.viminfo
@pungoyal
pungoyal / adhearsion.log
Created January 7, 2014 14:25
freeswitch log
[2014-01-07 19:51:37] DEBUG Adhearsion::OutboundCall: 015cb21e-77a7-11e3-9592-33f9d38e2b57@172.17.0.3: Receiving message: #<Punchblock::Event::Answered target_call_id="015cb21e-77a7-11e3-9592-33f9d38e2b57", target_mixer_name=nil, component_id=nil, source_uri="xmpp:015cb21e-77a7-11e3-9592-33f9d38e2b57@172.17.0.3", domain="172.17.0.3", transport="xmpp", headers={}>
[2014-01-07 19:51:37] INFO Adhearsion::OutboundCall: 015cb21e-77a7-11e3-9592-33f9d38e2b57@172.17.0.3: Executing controller #<ConferenceController call=015cb21e-77a7-11e3-9592-33f9d38e2b57, metadata={:mixer_name=>"user/userb-1389104491", :organizer=>"user/userb", :participants=>["user/userc"]}>
[2014-01-07 19:51:37] INFO Adhearsion::OutboundCall: 015cb21e-77a7-11e3-9592-33f9d38e2b57@172.17.0.3: Joining to {:mixer_name=>"user/userb-1389104491"}
[2014-01-07 19:51:37] DEBUG Adhearsion::OutboundCall: 015cb21e-77a7-11e3-9592-33f9d38e2b57@172.17.0.3: Executing command #<Punchblock::Command::Join target_call_id=nil, target_mixer_name=nil, component_id=nil,
@pungoyal
pungoyal / delhi.rb
Last active December 30, 2015 16:29
delhi elections
require 'nokogiri'
require 'open-uri'
require 'pry'
def get_party(full_name)
parties = {
'Aam Aadmi Party' => 'AAP',
'Bharatiya Janata Party' => 'BJP',
'Indian National Congress' => 'INC',
'Bahujan Samaj Party' => 'BSP'
@pungoyal
pungoyal / Berksfile
Last active December 28, 2015 07:29
notes for devops days
site :opscode
cookbook 'vim'
cookbook 'ntp'
@pungoyal
pungoyal / 01 - ubuntu.sh
Last active November 28, 2016 09:48
Minimal dev box setup scripts
echo "export LANG=\"en_US\"" | tee -a ~/.bash_profile
echo "export LC_ALL=$LANG.UTF-8" | tee -a ~/.bash_profile
apt-get install vim curl git htop screen aptitude -y
aptitude update
aptitude upgrade -y # optional
# reboot, perhaps?
# add a non-root user
adduser puneet # fill the details