This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /home/pi | |
echo "Initializing Raspberry Pi setup..." | |
#sudo apt-get update > setup_pi.log | |
sudo unlink /etc/localtime | |
sudo ln -s /usr/share/zoneinfo/Asia/Kolkata /etc/localtime | |
# Install git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" _ | |
" __ _(_)_ __ ___ _ __ ___ | |
" \ \ / / | '_ ` _ \| '__/ __| | |
" \ V /| | | | | | | | | (__ | |
" \_/ |_|_| |_| |_|_| \___| | |
" | |
" Created by Gokul Srinivas <gokusrinivas@gmail.com> | |
" https://github.com/GokulSrinivas | |
" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
choice=1 | |
filename="10-new-webcam.rules" | |
touch $filename | |
read -p "Create new rules file or modify the existing one? (0/1) : " ch | |
if [ $ch -eq 1 ]; then | |
sudo cp /etc/udev/rules.d/10-webcam.rules $filename | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################ system aliases ########################################### | |
alias install="sudo apt-get install" | |
alias update="sudo apt-get update" | |
alias uninstall="sudo apt-get remove --purge" | |
alias upgrade="sudo apt-get upgrade" | |
alias pys="python -m SimpleHTTPServer" | |
alias lhost="cd /var/www/html" | |
alias showlog="tail -f /var/log/syslog" | |
alias batstats="upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep -E 'state|time\ to\ empty|time\ to\ full|percentage|capacity'" | |
alias ls="ls -l" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"math" | |
"sort" | |
"sync" | |
) | |
type triplet struct { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"math" | |
"sort" | |
"sync" | |
) | |
type quad struct { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout some time, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see http://i3wm.org/docs/userguide.html for a complete reference! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# _ | |
# | | | | |
# | |___ ___ ___ | ___ _ ___ ___ | |
# | _ \ / __\ / \ |/ \ |/ \ / \ | |
# | |_| | / | \___ | | | | | |
# |____/ \__/\ ___\ | |_ | \____/ | |
# | |
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.MODEL SMALL | |
.DATA | |
STR1 DB 5 DUP(' '),'$' | |
NL DB 0DH,0AH,'$' | |
PRINTPAL DB 0DH,0AH,"PALINDROME$" | |
PRINTNOTPAL DB 0DH,0AH,"NOT PALINDROME$" | |
OKAY DB 0DH,0AH,"MATCH FOUND$" | |
.CODE | |
MAIN PROC | |
MOV AX,@DATA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.MODEL SMALL | |
.DATA | |
STR1 DB 5 DUP(' '),'$' | |
STR2 DB 5 DUP(' '),'$' | |
NL DB 0DH,0AH,'$' | |
.CODE | |
MAIN PROC | |
MOV AX,@DATA | |
MOV DS,AX |
OlderNewer