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
;; Set custom file | |
(setq custom-file "~/.emacs.custom.el") | |
;; enable melpa | |
(add-to-list 'package-archives | |
'("melpa" . "https://melpa.org/packages/") t) | |
;; load emacs lisp packages | |
(package-initialize) |
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
# remap prefix from 'C-b' to 'C-a' | |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# quick config reload | |
bind r source-file ~/.tmux.conf | |
# Enable mouse control (clickable windows, panes, resizable panes) | |
set -g mouse 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
-- Set <space> as the leader key | |
-- See `:help mapleader` | |
-- NOTE: Must happen before plugins are loaded (otherwise wrong leader will be used) | |
vim.g.mapleader = "\\" | |
vim.g.maplocalleader = "\\" | |
-- Make line numbers default | |
vim.opt.number = true | |
vim.opt.tabstop = 4 |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"net/http/httputil" | |
"strings" | |
) |
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
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" CORE | |
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
set autoindent " enable automatic indentation | |
set expandtab | |
set hlsearch " highlight search results | |
set ignorecase " case insensitive search | |
set incsearch " match the search and return to the initial position | |
set list " Show `listchars` characters |
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
module MachineDemo exposing | |
( Model | |
, init | |
, myDiv | |
, setHeight | |
, setMinHeight | |
, setWidth | |
) | |
import Element exposing (..) |
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
export class InfrastructureStack extends cdk.Stack { | |
constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) { | |
super(scope, id, props); | |
// Create a new bucket | |
const bucket = new s3.Bucket(this, BUCKET_ID, { | |
bucketName: "<your-domain>", | |
websiteIndexDocument: "index.html", | |
autoDeleteObjects: true, | |
enforceSSL: true, |
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
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE TypeFamilies #-} | |
{-# LANGUAGE NoImplicitPrelude #-} | |
module HasqlExtra where | |
import Data.UUID (UUID) | |
import qualified Hasql.Decoders as D | |
import Hasql.DynamicStatements.Snippet (Snippet, param, sql) | |
import Hasql.DynamicStatements.Statement (dynamicallyParameterized) |
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
newtype PrivateData = PrivateData { ssshhh :: Text } | |
deriving (Eq, Show, Generic) | |
newtype PublicData = PublicData { somedata :: Text } | |
deriving (Eq, Show, Generic) | |
instance ToJSON PrivateData | |
instance ToJSON PublicData | |
type PublicAPI = Get '[JSON] [PublicData] |
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/bash | |
set -e | |
echo -n "Enter server name (i.e. nginx-server): " | |
read server | |
echo "===> [INFO] Generating certs for: $server" | |
echo "===> [Step 1] Generating Certificate Request (CSR)..." |
NewerOlder