Skip to content

Instantly share code, notes, and snippets.

View codeitlikemiley's full-sized avatar
🎯
Focusing

Uriah Galang codeitlikemiley

🎯
Focusing
View GitHub Profile
@codeitlikemiley
codeitlikemiley / arch_bootstrap.bash
Created December 24, 2019 06:42 — forked from rasschaert/arch_bootstrap.bash
Shell script that performs the installation of Arch Linux the way I like it.
#!/bin/bash
bootstrapper_dialog() {
DIALOG_RESULT=$(dialog --clear --stdout --backtitle "Arch bootstrapper" --no-shadow "$@" 2>/dev/null)
}
#################
#### Welcome ####
#################
bootstrapper_dialog --title "Welcome" --msgbox "Welcome to Kenny's Arch Linux bootstrapper.\n" 6 60
@codeitlikemiley
codeitlikemiley / AppServiceProvider.php
Created June 5, 2019 23:46 — forked from reinink/AppServiceProvider.php
Multi-page Vue App in Laravel
<?php
namespace App\Providers;
use Illuminate\Support\Facades\View;
use Illuminate\Support\ServiceProvider;
use Illuminate\View\Factory as ViewFactory;
class AppServiceProvider extends ServiceProvider
{
= Arch Linux step-by-step installation =
= http://blog.fabio.mancinelli.me/2012/12/28/Arch_Linux_on_BTRFS.html =
== Boot the installation CD ==
== Create partition ==
cfdisk /dev/sda
* Create a partition with code 8300 (Linux)
@codeitlikemiley
codeitlikemiley / nextcloud.conf
Created January 29, 2019 16:33 — forked from xxblx/nextcloud.conf
nextcloud nginx config
upstream php-handler {
server unix:/run/php-fpm/www.sock;
}
server {
#listen 443 ssl;
listen 80;
server_name 192.168.1.8;
#ssl_certificate /etc/ssl/nginx/cloud.example.com.crt;
@codeitlikemiley
codeitlikemiley / regexCheatsheet.js
Created January 15, 2019 15:09 — forked from sarthology/regexCheatsheet.js
A regex cheatsheet 👩🏻‍💻 (by Catherine)
let regex;
/* matching a specific string */
regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello"
regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO"
regex = /hello/g; // looks for multiple occurrences of string between the forward slashes...
/* wildcards */
regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo"
regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo"
@codeitlikemiley
codeitlikemiley / devops_training.txt
Created May 19, 2018 07:04 — forked from ssmythe/devops_training.txt
Training materials for DevOps
======
Videos
======
DevOps
What is DevOps? by Rackspace - Really great introduction to DevOps
https://www.youtube.com/watch?v=_I94-tJlovg
Sanjeev Sharma series on DevOps (great repetition to really get the DevOps concept)
@codeitlikemiley
codeitlikemiley / v-cloak.md
Created December 21, 2017 22:44 — forked from adamwathan/v-cloak.md
Useful CSS utilities for Vue.js cloaking

Handy helpers for controlling visibility of elements until Vue has compiled.

Use like:

<div v-cloak>
  <h1>
    <span class="v-cloak--inline">Loading...</span> <!-- Only displayed before compiling -->
    <span class="v-cloak--hidden">{{ post.title }}</span> <!-- Hidden until compiling is finished -->
 
@codeitlikemiley
codeitlikemiley / .minttyrc
Last active December 20, 2019 01:27 — forked from g0ld3lux/.minttyrc
WSL Laravel Dev Machine
Font=DejaVuSansMonoForPowerline NF
BoldAsFont=no
FontHeight=12
FontWeight=400
FontSmoothing=full
Locale=C
Charset=UTF-8
Term=xterm-256color
ForegroundColour=248,248,242
BackgroundColour=40,42,54
@codeitlikemiley
codeitlikemiley / Installation.md
Last active November 28, 2023 12:38 — forked from g0ld3lux/ReadME.md
ZSH + Vim Production in Digital Ocean - Running With Docker

ZSH + Vim Production in Digital Ocean - Running With Docker

Requirement: Windows 10 Windows WSL WSL Mintty Digital Ocean Account

Note if you are not using windows, you dont need the vim config for windows ....

@codeitlikemiley
codeitlikemiley / base.Dockerfile
Created June 10, 2017 13:50 — forked from alexellis/base.Dockerfile
Docker swarm service to mine into the Nice Hash pool
# Published on Docker Hub with above user alexellisio.
# If you want to rebuild your own copy, follow below instructions
# Build this on each type of machine so you have the correct CPU extensions.
FROM alexellisio/boostbase
RUN git clone -b Linux https://github.com/nicehash/nheqminer.git
RUN cd nheqminer/cpu_xenoncat/Linux/asm/ && sh assemble.sh && cd ../../../Linux_cmake/nheqminer_cpu && cmake . && make
ENTRYPOINT ["./nheqminer/Linux_cmake/nheqminer_cpu/nheqminer_cpu"]