Skip to content

Instantly share code, notes, and snippets.

View ziishaned's full-sized avatar
:octocat:

Zeeshan Ahmad ziishaned

:octocat:
View GitHub Profile
@ziishaned
ziishaned / README.md
Last active January 27, 2023 07:51
Raspberry Pi

WiFi

touch wpa_supplicant.conf

country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
@ziishaned
ziishaned / README.md
Created September 8, 2022 08:43
Set the iTerm tab title to the current directory
  1. Open your ~/.zshrc file and put following inside of it:
    DISABLE_AUTO_TITLE="true"
    echo -ne "\e]1;\a"
  2. Then open the settings for iTerm2 and select PWD from the title dropdown: Screen Shot 2022-09-06 at 11 24 22 AM

Finally the tab title for iTerm2 will look something like below:

@ziishaned
ziishaned / vscode-italics.json
Created February 18, 2022 07:09 — forked from dev01d/vscode-italics.json
VSCode italics in (almost) any theme
{
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": [
"comment",
"keyword.control",
"keyword.operator.new",
"keyword.operator.assignment",
"keyword.operator.arithmetic",
@ziishaned
ziishaned / app-ads.txt
Created November 21, 2020 10:43
Manage Your Subscriptions
google.com, pub-3829457573832682, DIRECT, f08c47fec0942fa0
@ziishaned
ziishaned / android_instructions.md
Created December 19, 2019 21:55 — forked from patrickhammond/android_instructions.md
Easily setup an Android development environment on a Mac

Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.

Prerequisites (for Homebrew at a minimum, lots of other tools need these too):

  • XCode is installed (via the App Store)
  • XCode command line tools are installed (xcode-select --install will prompt up a dialog)
  • Java

Install Homebrew:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

@ziishaned
ziishaned / markdown.css
Created November 5, 2019 14:32
Intellij Markdown Github css
body {
font-family: "Operator Mono" !important;
font-size: 16px !important;
line-height: 1.5 !important;
}
h1 {
font-size: 2em !important;
margin: .67em 0 !important;
}
rm ~/Library/Preferences/com.bjango.istatmenus.plist
@ziishaned
ziishaned / isDateBetweenOrEqual.js
Created May 21, 2019 11:47
Check if provided date is equal or between two dates
const isDateBetweenOrEqual = (checkDate, fromDate, toDate) => {
const toMS = Date.parse(toDate);
const checkMS = Date.parse(check);
const fromMS = Date.parse(fromDate);
return checkMS >= fromMS && checkMS <= toMS;
},
@ziishaned
ziishaned / dark.css
Created March 10, 2019 20:22
Slack theme
body { background: #222; color: #e6e6e6; }
a { color: #949494; }
a:link, a:visited { color: #949494; }
a:hover, a:active, a:focus { color: #c7c7c7; }
hr { border-bottom: 1px solid #424242; border-top: 1px solid #222; }
@ziishaned
ziishaned / iterm_open_with_subl
Created January 27, 2019 11:41
Open file links in sublime from iTerm
#!/bin/sh
pwd=$1
file=$2
regex='https?://([a-z0-9A-Z]+(:[a-zA-Z0-9]+)?@)?[-a-z0-9A-Z\-]+(\.[-a-z0-9A-Z\-]+)*((:[0-9]+)?)(/[a-zA-Z0-9;:/\.\-_+%~?&amp;@=#\(\)]*)?'
perl -e "if ( \"$file\" =~ m|$regex|) { exit 0 } else { exit 1 }"
if [ $? -ne 0 ]; then
# if it's not a url, try splitting by ':'
arr=($(echo $2 | tr ':' "\n"))