Skip to content

Instantly share code, notes, and snippets.

View perminder-klair's full-sized avatar
🎯
Focusing

Parminder Klair perminder-klair

🎯
Focusing
View GitHub Profile
#!/data/data/com.termux/files/usr/bin/bash
set -e
yes | pkg update && yes | pkg upgrade
pkg install -y git curl wget openssh rsync \
build-essential clang cmake python python-pip nodejs-lts \
ripgrep fd fzf bat eza zoxide jq tmux neovim htop \
zsh starship zsh-autosuggestions zsh-syntax-highlighting \
termux-api
chsh -s zsh
termux-setup-storage
#!/data/data/com.termux/files/usr/bin/bash
set -e
yes | pkg update && yes | pkg upgrade
pkg install -y git curl wget openssh rsync \
build-essential clang cmake python python-pip nodejs-lts \
ripgrep fd fzf bat eza zoxide jq tmux neovim htop \
zsh starship zsh-autosuggestions zsh-syntax-highlighting \
termux-api
chsh -s zsh
termux-setup-storage
@perminder-klair
perminder-klair / termux-setup.sh
Last active February 17, 2026 17:17
Termux + Ubuntu (proot) Setup Script
#!/data/data/com.termux/files/usr/bin/bash
# ============================================
# Termux + Ubuntu (proot) Setup Script
# ============================================
# Run this in Termux (not inside proot)
# Usage: bash termux-setup.sh
# ============================================
set -e
@perminder-klair
perminder-klair / extenctions.txt
Last active September 21, 2020 08:51
VS Code Parminder
code --install-extension abusaidm.html-snippets
code --install-extension alefragnani.Bookmarks
code --install-extension alexdima.copy-relative-path
code --install-extension alexkrechik.cucumberautocomplete
code --install-extension apollographql.vscode-apollo
code --install-extension buster.ndjson-colorizer
code --install-extension christian-kohler.npm-intellisense
code --install-extension christian-kohler.path-intellisense
code --install-extension codezombiech.gitignore
code --install-extension DavidAnson.vscode-markdownlint
code --install-extension IBM.output-colorizer
code --install-extension Sophisticode.php-formatter
code --install-extension abusaidm.html-snippets
code --install-extension alefragnani.Bookmarks
code --install-extension alexdima.copy-relative-path
code --install-extension alexkrechik.cucumberautocomplete
code --install-extension apollographql.vscode-apollo
code --install-extension christian-kohler.npm-intellisense
code --install-extension christian-kohler.path-intellisense
code --install-extension codezombiech.gitignore
@perminder-klair
perminder-klair / .bash_profile
Created June 6, 2017 06:12
Bash profile setup
# Configuring Our Prompt
# ======================
# if you install git via homebrew, or install the bash autocompletion via homebrew, you get __git_ps1 which you can use in the PS1
# to display the git branch. it's supposedly a bit faster and cleaner than manually parsing through sed. i dont' know if you care
# enough to change it
# This function is called in your prompt to output your active git branch.
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
@perminder-klair
perminder-klair / google-maps-polygen.html
Created December 4, 2015 10:42
Create google maps polygen
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title>Draggable Polygons</title>
<style>
html, body {
height: 100%;
margin: 0;
@perminder-klair
perminder-klair / https_redirect
Created July 23, 2015 14:02
Http to Https redirect
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# User for local dev
FROM app/base
RUN npm install -g orion-cli
# This forces package-catalog update. Should speed up further runs
RUN meteor show meteor-platform
@perminder-klair
perminder-klair / index.html
Created February 27, 2015 15:59
AngularJs Ng Repeat Filter
<!DOCTYPE html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js"></script>
<script>
angular.module('ngAnimate', [])
.controller('MyCtrl', ['$scope', function ($scope) {
console.log('works');
$scope.friends = [