Skip to content

Instantly share code, notes, and snippets.

View dyslexictech's full-sized avatar
💭
I may be slow to respond.

dyslexictech dyslexictech

💭
I may be slow to respond.
View GitHub Profile
@dyslexictech
dyslexictech / .configalacrittyalacritty.yml
Created June 30, 2021 15:33 — forked from Cogitri/.configalacrittyalacritty.yml
.config/alacritty/alacritty.yml
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
env:
# TERM variable
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will
@dyslexictech
dyslexictech / sublime-text-3-setup.md
Created June 29, 2021 02:57 — forked from ijy/sublime-text-3-setup.md
My Sublime Text 3 setup.

Sublime Text 3 Setup

Install Package Control

Install Package Control for easy package management.

  1. Open the console with Ctrl+`
  2. Paste in the following:
  1. Get node binary (node.exe) from http://nodejs.org/download/
  2. Create the folder where node will reside and move node.exe to it
  3. Download the last zip version of npm from http://nodejs.org/dist/npm
  4. Unpack the zip inside the node folder
  5. Download the last tgz version of npm from http://nodejs.org/dist/npm
  6. Open the tgz file and unpack only the file bin/npm (without extension) directly on the node folder.
  7. Add the the node folder and the packages/bin folder to PATH
  8. On a command prompt execute npm install -g npm to update npm to the latest version

Now you can use npm and node from windows cmd or from bash shell like Git Bash of msysgit.

#!/bin/sh
# Sublime Text 3 Install (last update: Monday 13 March 2017)
#
# No need to download this script, just run it on your terminal:
#
# curl -L git.io/sublimetext | sh
# Detect the architecture
@dyslexictech
dyslexictech / wp_to_pyro.php
Created July 22, 2019 11:31 — forked from moonthug/wp_to_pyro.php
Extract users and post from a Wordpress data export XML file and insert them into PyroCMS
<?php
////////////////////////////////////////////////////////////////////////////////
//
// Wordpress -> PyroCMS
//
//
// Config
$filename = "<WP EXPORT FILE>";
@dyslexictech
dyslexictech / gist:19ca01853bfce2a08d5ab010a2641300
Created March 31, 2019 20:43 — forked from philc/gist:e849b48e6c5f32592d62
A script to copy Chrome's search engine settings into Vimium's settings format
#!/bin/sh
# This script lists user defined search engines in Chromium.
# It replaces {inputEncoding}, which appears in some search engine definitions, with
# UTF-8, {google:baseURL} with the Google URL, and omits other such tokens.
# Location of Chromium's 'Web Data' SQLite3 file
CHROMIUM_WEB_DATA="$HOME/.config/chromium/Default/Web Data"
# Location to create temporary copy of 'Web Data', since the database is locked while
@dyslexictech
dyslexictech / PowerShell Customization.md
Created March 30, 2019 23:12 — forked from jchandra74/PowerShell Customization.md
PowerShell, Cmder / ConEmu, Posh-Git, Oh-My-Posh, Powerline Customization

Pimping Up Your PowerShell & Cmder with Posh-Git, Oh-My-Posh, & Powerline Fonts

Backstory (TLDR)

I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.

For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.

Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.

# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
bash -c zsh
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;

Keybase proof

I hereby claim:

  • I am dyslexictech on github.
  • I am buddhaluhv (https://keybase.io/buddhaluhv) on keybase.
  • I have a public key ASCo1SBOnzlHzQmhq-uuwJz4eh3C6ObmtYt74rrIwIDAcQo

To claim this, I am signing this object: