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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
Installing on a newer PC with GFI requires a little differen't partitioning. When you open up gparted or your favorite command line partition tool, you need to do the following: | |
Create a partition scheme that is GPT. Then create the first partition as FAT32 and make it 200 mb or larger, set the flags to boot and esp. Then create your main partition and if you want, a home partition and swap partition. | |
Next step is to partition the main os partition: | |
mkfs.ext4 -L nixos /dev/sda1 | |
Mount the partition: | |
mount /dev/disk/by-label/nixos /mnt |
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
nix-env -f "<nixpkgs>" -iA haskellPackages.stack # installs stack | |
stack --nix install package |
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
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, options, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. |
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
<dict> | |
<key>Comment</key> | |
<string>IONVMeFamily IONameMatch</string> | |
<key>Disabled</key> | |
<false/> | |
<key>Name</key> | |
<string>IONVMeFamily</string> | |
<key>InfoPlistPatch</key> | |
<true/> | |
<key>Find</key> |
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
clang | |
libxml2 | |
libxslt | |
readline | |
sqlite | |
openssl |
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
To Setup Postgres SQL after initial setup so Ecto can work: | |
sudo systemctl enable postgresql | |
sudo systemctl start postgresql | |
For new pheonix projects on 1.4, may have to update cowboy to 2: | |
{:cowboy, "~> 2.0"}, | |
{:plug_cowboy, "~> 2.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
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa |
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
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "mix_task", | |
"name": "mix (Default task)", |
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
Install PowerLine Font: | |
https://github.com/microsoft/cascadia-code/ | |
https://docs.microsoft.com/en-us/windows/terminal/tutorials/powerline-setup: | |
Install-Module posh-git -Scope CurrentUser | |
Install-Module oh-my-posh -Scope CurrentUser | |
# If Powershell Core | |
Install-Module -Name PSReadLine -AllowPrerelease -Scope CurrentUser -Force -SkipPublisherCheck |
OlderNewer