Skip to content

Instantly share code, notes, and snippets.

View pexeixv's full-sized avatar
🖖

Gavin Pereira pexeixv

🖖
View GitHub Profile
ssh -L 3399:localhost:3389 -N -f pex@gavn.tk
@pexeixv
pexeixv / windowsTerminal.json
Created October 27, 2021 15:24
Windows Terminal Config FIle
{
"$schema": "https://aka.ms/terminal-profiles-schema",
// Add custom actions and keybindings to this array.
// To unbind a key combination from your defaults.json, set the command to "unbound".
// To learn more about actions and keybindings, visit https://aka.ms/terminal-keybindings
"actions":
[
// Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json.
// These two lines additionally bind them to Ctrl+C and Ctrl+V.
// To learn more about selection, visit https://aka.ms/terminal-selection
var $ = (sel, con) => (con || document).querySelector(sel)
var $$ = (sel, con) => (con || document).querySelectorAll(sel)
@pexeixv
pexeixv / addUser.sh
Last active February 8, 2022 13:14
Linux
sudo useradd pex
sudo mkdir /home/pex
sudo chown pex:pex /home/pex/
sudo chmod 750 /home/pex/
sudo chsh -s /bin/bash pex
usermod -aG sudo pex
sudo passwd pex # set password for pex
sudo nano /etc/ssh/sshd_config # set PasswordAuthentication yes
sudo /etc/init.d/ssh force-reload
@pexeixv
pexeixv / vsCode.json
Last active October 27, 2021 15:23
Setting Config Files
{
"editor.mouseWheelZoom": true,
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"editor.minimap.enabled": false,
"git.enabled": true,
"git.enableSmartCommit": true,
"git.autofetch": true,
"workbench.activityBar.visible": true,
"C_Cpp.updateChannel": "Insiders",
"workbench.iconTheme": "material-icon-theme",
@pexeixv
pexeixv / Microsoft.PowerShell_profile.ps1
Last active August 26, 2021 02:45
Microsoft.PowerShell_profile.ps1
# "$Env:username@$env:computername > "
function prompt {"pex@Asus >"}
cls;
cls;
# Chocolatey profile
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
if (Test-Path($ChocolateyProfile)) {Import-Module "$ChocolateyProfile"}
@pexeixv
pexeixv / autoHotKey.ahk
Last active January 18, 2022 11:33
My AHK script
; (hash) # Windows logo key
; (exclamation mark) ! ALT
; (caret) ^ CTRL
; (plus) + Shift
::\g0::pexeixv@gmail.com
Return
::\g1::gav002@chowgules.ac.in
@pexeixv
pexeixv / sheetsToApi.js
Created July 4, 2021 07:25
Google Sheets as JSON API
var url = 'https://spreadsheets.google.com/feeds/cells/1b_bKNp7pQkwF99wg8OhFD9OGf0zyNm9NVoRUu3GenwY/1/public/full?alt=json'
function googleSheetsApi(url, noOfColumns) {
var string = ''
fetch(url)
.then(res => res.json())
.then(data => {
var { feed } = data
var { entry } = feed
var keysArray = []