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/env bash | |
# based on https://gist.github.com/natelandau/10654137 | |
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management |
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
Show hidden characters
{ | |
"bootstrapped": true, | |
"in_process_packages": | |
[ | |
], | |
"installed_packages": | |
[ | |
"AlignTab", | |
"Babel", | |
"Chain of Command", |
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 | |
IFS='%' | |
if [ -f yarn.lock ] | |
then | |
n=`grep -n 'babylon@^6.0.18' yarn.lock | cut -d: -f 1` | |
while read line;do | |
if((i==n));then | |
echo ' version "6.11.2"' | |
elif((i==n+1));then | |
echo ' resolved "https://registry.npmjs.org/babylon/-/babylon-6.11.2.tgz"' |
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
Find Sublime config folder: | |
- Windows: %APPDATA%\Sublime Text 2 | |
- OS X: ~/Library/Application Support/Sublime Text 2 | |
- Linux: ~/.config/sublime-text-2 | |
Open up [CONFIG]/Packages/Babel/JavaScript (Babel).sublime-syntax in editor. | |
Search for the section template-string-body, add these to the beginning: | |
- meta_content_scope: text.html.basic.embedded.js | |
- include: scope:text.html.basic |
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
//takes an SVG element, draws it on a new canvas element, convert to dataURI type PNG and download it through clicking on <a> | |
//based on | |
//https://gist.github.com/mbostock/6466603 | |
//https://gist.github.com/gustavohenke/9073132 | |
//http://bl.ocks.org/biovisualize/8187844 | |
export default (svg) => { | |
const svgData = new XMLSerializer().serializeToString( svg ); | |
const svgSizes = svg.getBoundingClientRect(); | |
const canvas = document.createElement("canvas") |
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
::taken from https://www.reddit.com/r/pcmasterrace/comments/736tfh/skype_is_officially_bloatware_uninstalled_it/dno65sy/ | |
@rem *** Disable Some Service *** | |
sc stop DiagTrack | |
sc stop diagnosticshub.standardcollector.service | |
sc stop dmwappushservice | |
sc stop WMPNetworkSvc | |
sc stop WSearch | |
sc config DiagTrack start= disabled |
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 | |
# https://www.ubuntuupdates.org/ppa/google_chrome | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -; | |
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'; | |
sudo apt-get -y update; | |
sudo apt -y autoremove; | |
sudo apt-get -y install google-chrome-stable; |
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
# remove docker images by tag, default is *none*. *blah* to remove those with tags similar to "blah" | |
function __dockerRemoveImageByTag__ { | |
param( [string]$tag = "*none*" ) | |
docker images -a | ForEach-Object { | |
If($_ -like $tag) { | |
Write-Output $_ | |
docker rmi -f $($_.Split('', [System.StringSplitOptions]::RemoveEmptyEntries)[2]) 2> $null | |
} | |
} | |
} |
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/sh | |
watchman watch-del-all | |
rm -rf $TMPDIR/react-native-packager-cache-* | |
rm -rf $TMPDIR/metro-bundler-cache-* | |
rm -rf /tmp/haste-map-react-native-packager-* | |
rm -rf node_modules/ **/node_modules |
OlderNewer