Skip to content

Instantly share code, notes, and snippets.

View Fifirex's full-sized avatar
🎓
Uni got me like :/

Yash Saraswat Fifirex

🎓
Uni got me like :/
View GitHub Profile
@Fifirex
Fifirex / stfu.sh
Created November 18, 2021 01:17
play/pause Spotify from Terminal
# just stfu
# for that time u just wanna pause without getting out of the zone (who presses the pause button ugh)
# make it executable, add to PATH and use "stfu"
osascript -e 'tell application "Spotify" to playpause'
# that's my big SHELL script.
# kind of a let down.
# yeah I get it.
# sometimes you just expect the solution to be a lot more complicated.
@Fifirex
Fifirex / pre-commit
Last active June 24, 2021 12:21
Reminds you that a specific line should not be committed.
#!/bin/bash
#
# This hook will look for code comments marked '##no-commit'
# - case-insensitive
# - dash is optional
# - there may be a space after the ##
#
noCommitCount=$(git diff --no-ext-diff --cached | egrep -i --count "(@No|\#\#\s?no[ -]?)commit")
if [ "$noCommitCount" -ne "0" ]; then
echo "WARNING: You are attempting to commit changes which include a 'no-commit'."
@thealphadollar
thealphadollar / AutoConnectLinkedIn.js
Last active April 30, 2024 19:20
JS script to send connection requests to your LinkedIn search results with customisation options, accept all received connection requests, and withdraw pending sent connection requests.
// If the script does not work, you may need to allow same site scripting https://stackoverflow.com/a/50902950
Linkedin = {
config: {
scrollDelay: 3000,
actionDelay: 5000,
nextPageDelay: 5000,
// set to -1 for no limit
maxRequests: -1,
totalRequestsSent: 0,
// C++ includes used for precompiling -*- C++ -*-
// Copyright (C) 2003-2013 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your option)
// any later version.
@mbejda
mbejda / Indian-Male-Names.csv
Created November 3, 2015 14:27
Dataset of ~14,000 Indian male names for NLP training and analysis. The names have been retrieved from public records. (name,gender,race)
name gender race
barjraj m indian
ramdin verma m indian
sharat chandran m indian
birender mandal m indian
amit m indian
kushal m indian
kasid m indian
shiv prakash m indian
vikram singh m indian
@ellcom
ellcom / AppleScript.Spotify.PlayPause.scpt
Created August 2, 2014 17:02
Tell spotify to play/pause using AppleScript
using terms from application "Spotify"
if player state of application "Spotify" is paused then
tell application "Spotify" to play
else
tell application "Spotify" to pause
end if
end using terms from