This file contains 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
# Open terminal | |
shift + alt - return : /Applications/iTerm.app/Contents/MacOS/iTerm2 --single-instance -d "/Users/samundra" | |
# change size of window | |
shift + alt - w : yabai -m window --resize top:0:-20 ; yabai -m window --resize bottom:0:-20 | |
shift + alt - a : yabai -m window --resize left:-20:0 ; yabai -m window --resize right:-20:0 | |
shift + alt - s : yabai -m window --resize bottom:0:20 ; yabai -m window --resize top:0:20 | |
shift + alt - d : yabai -m window --resize right:20:0 ; yabai -m window --resize left:20:0 | |
shift + alt - r : yabai -m window --resize right:100:0 | |
shift + alt - l : yabai -m window --resize left:-100:0 |
This file contains 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
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": "cmd+1", | |
"command": "workbench.action.toggleSidebarVisibility" | |
}, | |
{ | |
"key": "cmd+[", | |
"command": "workbench.action.navigateBack" | |
}, |
This file contains 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
findIp() { | |
ip=`ifconfig -a | grep inet|grep "192."|tail -1|cut -f2 -d ":"|cut -f1 -d " "` | |
echo $ip | |
} | |
findIp | |
# Usage: | |
# chmod +x show-ip.sh | |
# - ./show-ip.sh |
This file contains 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
# You may add here your | |
# server { | |
# ... | |
# } | |
# statements for each of your virtual hosts to this file | |
## | |
# You should look at the following URL's in order to grasp a solid understanding | |
# of Nginx configuration files in order to fully unleash the power of Nginx. | |
# http://wiki.nginx.org/Pitfalls |
This file contains 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
[ | |
{ "keys": ["super+shift+y"], "command": "show_overlay", "args": {"overlay": "command_palette", "text": "Set Syntax: "} }, | |
{ "keys": ["super+shift+w"], "command": "toggle_setting", "args": {"setting": "word_wrap"}}, | |
{ "keys": ["super+alt+n"], "command": "advanced_new_file_new"}, | |
{ "keys": ["super+shift+d"], "command": "git_diff"}, | |
{ "keys": ["super+shift+c"], "command": "copy_relative_path"}, | |
{ "keys": ["super+e"], "command": "extended_switcher", "args": {"list_mode": "window"} }, | |
{ "keys": ["super+shift+e"], "command": "extended_switcher", "args": {"list_mode": "active_group"} }, | |
{ "keys": ["alt+enter"], "command": "goto_definition" }, | |
{ "keys": ["super+shift+a"], "command": "alignment" }, |
This file contains 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
<?php | |
/** | |
* Filename: App/Providers/MakeSeedServiceProvider.php | |
*/ | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use Illuminate\Database\Console\Seeds\SeederMakeCommand; |
This file contains 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 | |
set -e | |
## List all actively running docker container ip | |
## | |
## USAGE: | |
## chmod +x docker-network.sh | |
## ./docker-network.sh | |
## | |
## OUTPUT: 172.19.0.5 - my_container_2 |
This file contains 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 | |
# Play and download the youtube video simultaneously | |
# Author: Samunddra | |
# Update Date: 2016-12-14 16:29:14 PM | |
# | |
# Use `screen` to play it in the background, fork screen process and exit, enjoy | |
# | |
# DEPENDENCIES | |
# - sudo apt install -y jq mplayer youtube-dl | |
# |
This file contains 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
server { | |
listen 80; | |
listen [::]:80; | |
root /var/www/adminer; | |
index index.php index.html index.htm; | |
server_name adminer.dev; | |
location / { | |
autoindex on; |
This file contains 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
#!/usr/bin/perl -T | |
use strict; | |
use warnings; | |
# | |
## Calomel.org ,:, Download Youtube videos and music using wget | |
## Script Name : youtube_wget_video.pl | |
## Version : 0.45 | |
## Valid from : September 2014 |
NewerOlder