Skip to content

Instantly share code, notes, and snippets.

View FerrielMelarpis's full-sized avatar
💭
Working

Ferriel Melarpis FerrielMelarpis

💭
Working
  • Pasig, Philippines
View GitHub Profile
@logaretm
logaretm / axiosPlugin.js
Last active October 23, 2018 09:55
Axios plugin to replace vue-resource
import axios from 'axios';
export default (Vue) => {
Object.defineProperties(Vue.prototype, {
$http: {
get() {
return axios;
}
}
});
@mattclements
mattclements / function.php
Last active October 29, 2024 22:04
Wordpress Disable Comments (add to function.php)
<?php
add_action('admin_init', function () {
// Redirect any user trying to access comments page
global $pagenow;
if ($pagenow === 'edit-comments.php') {
wp_redirect(admin_url());
exit;
}
@mattiaslundberg
mattiaslundberg / arch-linux-install
Last active February 10, 2025 13:16
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