Skip to content

Instantly share code, notes, and snippets.

View daamnathaniel's full-sized avatar

Nathaniel Adam daamnathaniel

View GitHub Profile
@daamnathaniel
daamnathaniel / index.html
Created March 27, 2022 20:33
Simple Text Editor
<script src="https://use.fontawesome.com/4c97752ffe.js"></script>
<div class='wrapper'>
<h2>Simple Text Editor</h2>
<div class="sample-toolbar">
<span class="fa fa-bold fa-fw" aria-hidden="true" onclick="format('bold')"></span>
<span class="fa fa-italic fa-fw" aria-hidden="true" onclick="format('italic')"></span>
<span class="fa fa-list fa-fw" aria-hidden="true" onclick="format('insertunorderedlist')"></span>
<span class="fa fa-link fa-fw" aria-hidden="true" onclick='setUrl()'></span>
<span><input id="txtUrl" placeholder="url" class="form-control"></span>
@daamnathaniel
daamnathaniel / dotfiles_bare_repository
Last active February 18, 2022 09:28
dotfiles alias so that commands are run against the repository and the usual .git local folder, so as to not interfere with other Gid repositories around.
git init --bare $HOME/.kp
alias kp='/usr/bin/git --git-dir=$HOME/.kp/ --work-tree=$HOME'
kp config --local status.showUntrackedFiles no
echo "alias kp='/usr/bin/git --git-dir=$HOME/.kp/ --work-tree=$HOME'" >> $HOME/.config/fish/config.fish
gh alias set rear 'repo archive'
gh alias set recl 'repo clone'
gh alias set recr 'repo create'
gh alias set rede 'repo delete'
gh alias set reed 'repo edit'
gh alias set refo 'repo fork'
gh alias set reli 'repo list'
gh alias set rere 'repo rename'
@daamnathaniel
daamnathaniel / template.rb
Last active November 25, 2021 10:14
rails 6 template devise user simple_form bootstrap
# frozen_string_literal: true
require 'fileutils'
def soure_paths
[__dir__]
end
def add_gems
gem 'devise'
@daamnathaniel
daamnathaniel / arch-linux-install
Created June 10, 2021 05:00 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap
Gem::Specification.new do |s|
s.name = 'bang'
s.version = '0.1.0'
s.platform = Gem::Platform::RUBY
s.author = 'Jeff Kreeftmeijer'
s.email = 'jeff@kreeftmeijer.nl'
s.summary = 'Bang!'
s.description = 'Bangs existing model methods'
s.files = ['bang.rb']
@daamnathaniel
daamnathaniel / index.html
Created February 24, 2021 21:28
html_form
<!-- modify this form HTML and place wherever you want your form -->
<form
action="https://formspree.io/f/meqpbqon"
method="POST"
>
<label>
Your name:
<input type="text" name="name">