Skip to content

Instantly share code, notes, and snippets.

@nayanseth
nayanseth / 01 - Comments
Last active January 14, 2025 01:11
Basics of AppleScript
(*
Script - Comments
@author - Nayan Seth
© Tech Barrack Solutions Pvt Ltd
*)
--This is a single line comment
#This is a comment too but still single line
(*
@bf4
bf4 / README.md
Last active May 26, 2023 06:27
clone_all repos

Clone all repos

Install as follows

\curl -sSL https://gist.github.com/bf4/c19f041bb0887476dfaa/download | \
  tar xzvf - --include '*setup' -O | bash

optionally first set PROJECT_DIR and PROJECT_CLONE_URL in your ~/.profile

@prashanthrajagopal
prashanthrajagopal / desktop_restrictions.reg
Last active June 22, 2026 19:19
Desktop restrictions for windows - very minimal access to users
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop]
"NoChangingWallPaper"=dword:00000001
"NoAddingComponents"=dword:00000001
"NoClosingComponents"=dword:00000001
"NoDeletingComponents"=dword:00000001
"NoEditingComponents"=dword:00000001
@jrnewell
jrnewell / bash.sh
Last active November 16, 2022 12:20
Bash functions
# list path env variable
function list-path() {
echo $PATH | tr ':' '\n'
}
# find text in files
function search() {
find . -type f -print0 | xargs -0 grep "$1"
}
@yunga
yunga / SublimeText Pkgs.md
Last active March 5, 2023 09:52
A few notes to help me get started with Sublime Text.
@tokida
tokida / bootstrap4Ubuntu.sh
Last active December 21, 2022 13:34
Provisioning Script
#=======================================================================
# bootstrap4Ubuntu.sh on SoftLayer
#=======================================================================
sudo apt-get update
sudo apt-get upgrade
# Install Util
sudo apt-get install git curl -y
# Install SoftLayer Command line Interface
@renzok
renzok / bash-template
Last active November 17, 2024 21:30
A template bash script based on google style guide with some little improvements
#!/bin/bash
# Here short description of this script
# This is just a template to be used for writing new bash scripts
###
# Based on Google Style Guide: https://google.github.io/styleguide/shell.xml
# General remarks
# * Executables should have no extension (strongly preferred) or a .sh extension.
# * Libraries must have a .sh extension and should not be executable
@wdullaer
wdullaer / install.sh
Last active March 11, 2026 09:02
Install Latest Docker and Docker-compose on Ubuntu
# Ask for the user password
# Script only works if sudo caches the password for a few minutes
sudo true
# Install kernel extra's to enable docker aufs support
# sudo apt-get -y install linux-image-extra-$(uname -r)
# Add Docker PPA and install latest version
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
@trentmswanson
trentmswanson / autopart.sh
Last active December 3, 2022 08:22
Linux bash script to partition and format all data disks in azure
#!/bin/bash
# An set of disks to ignore from partitioning and formatting
BLACKLIST="/dev/sda|/dev/sdb"
# Base directory to hold the data* files
DATA_BASE="/media"
usage() {
echo "Usage: $(basename $0) <new disk>"
}
@LeCoupa
LeCoupa / bash-cheatsheet.sh
Last active July 10, 2026 13:41
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