Skip to content

Instantly share code, notes, and snippets.

View webdevsuperfast's full-sized avatar
🏠
Working from home

Rotsen Mark Acob webdevsuperfast

🏠
Working from home
View GitHub Profile
@webdevsuperfast
webdevsuperfast / zsh.md
Last active April 20, 2024 21:48
Install ZSH using Homebrew and set as default shell in Linux/WSL

Install ZSH via HomeBrew

brew install zsh

Add ZSH to /etc/shells

echo $(which zsh) | sudo tee -a /etc/shells

Set ZSH as default user shell

sudo chsh -s $(which zsh) $USER

Execute Shell or just restart terminal to take effect

@webdevsuperfast
webdevsuperfast / .wezterm.lua
Created November 13, 2023 07:40
WezTerm configuration
-- Pull in the wezterm API
local wezterm = require 'wezterm'
-- This table will hold the configuration.
local config = {}
-- In newer versions of wezterm, use the config_builder which will
-- help provide clearer error messages
if wezterm.config_builder then
config = wezterm.config_builder()
@webdevsuperfast
webdevsuperfast / yt_settings.json
Last active June 6, 2023 22:30
My settings for Enhancer for Youtube extension on Firefox
{
"version": "2.0.107.2",
"settings": {
"blur": 0,
"brightness": 100,
"contrast": 100,
"grayscale": 0,
"huerotate": 0,
"invert": 0,
"saturate": 100,
@webdevsuperfast
webdevsuperfast / run.sh
Last active October 22, 2022 05:33 — forked from xanderificnl/run.sh
Install recursive mono font on Fedora
#!/bin/sh
sudo dnf install -y wget p7zip curl
[[ ! -d ~/.fonts ]] && mkdir -p ~/.fonts
wget "$(curl "https://www.recursive.design" | grep -o 'https://github.com/.*.zip' | head -n1)" -O /tmp/recursive-fonts.zip
( cd ~/.fonts ; 7za e -y -r -i\!*.ttf /tmp/recursive-fonts.zip )
@webdevsuperfast
webdevsuperfast / soliloquy_wordpress_native_responsive.php
Created January 16, 2018 23:26 — forked from scotthorn/soliloquy_wordpress_native_responsive.php
Make Soliloquy use the native responsive image handling from Wordpress 4.4+
<?php
// Make Soliloquy sliders use wp's native responsive images with wp retina
function my_theme_soliloquy_output($slider, $data) {
return wp_make_content_images_responsive($slider);
}
add_filter('soliloquy_output', 'my_theme_soliloquy_output', 10, 2);
// wp_make_content_images_responsive needs the img tags to have a class with their id
function my_theme_soliloquy_image_slide_class($classes, $item, $i, $data, $mobile) {
$classes[] = 'wp-image-' . $item['id'];
@webdevsuperfast
webdevsuperfast / .gitlab-ci.yml
Created April 1, 2022 02:17 — forked from qutek/.gitlab-ci.yml
[Gitlab CI With Rsync] Auto deploy gitlab CI with rsync
# https://gitlab.com/help/ci/quick_start/README
# https://docs.gitlab.com/ee/ci/introduction/
# https://docs.gitlab.com/ee/ci/yaml/
image: dpolyakov/docker-node-latest-with-rsync:latest
# before_script:
# - apt-get update -qq
# - apt-get install -qq git
@webdevsuperfast
webdevsuperfast / Ionic Android Development on WSL.md
Created March 20, 2022 09:49 — forked from fedme/Ionic Android Development on WSL.md
Ionic Android Development on WSL (Windows Subsystem for Linux)

Ionic Android Development on WSL

Installing the required software

Execute the following commands to install Node, npm, git, Java, Ionic, Cordova and Angular CLI:

cd ~
sudo apt update
sudo apt upgrade
@webdevsuperfast
webdevsuperfast / qemu_fedora.md
Last active March 7, 2022 03:10 — forked from Jatapiaro/qemu_ubuntu.md
How to install QEMU on MacOS Catalina and install a Fedora VM

Install QEMU on OSX

QEMU requires brew in OSX, so we need to install brew first.

Installing Brew

To install brew we need to have the developer tools enabled in our system. In order to install those tools, we have two options.

  1. Download Xcode form the AppStore
  2. In your terminal run the following command: xcode-select --install
@webdevsuperfast
webdevsuperfast / .plugins.txt
Last active January 2, 2022 06:31
My ZSH Configuration on PopOS with Antibody & Spaceship Theme
zdharma-continuum/fast-syntax-highlighting
zsh-users/zsh-autosuggestions
zsh-users/zsh-history-substring-search
zsh-users/zsh-completions
buonomo/yarn-completion
spaceship-prompt/spaceship-prompt
@webdevsuperfast
webdevsuperfast / failover.sh
Created December 29, 2021 04:24
MWAN3 error detection
#!/bin/sh
STATUS=$(/usr/sbin/mwan3 status)
if [ "$STATUS" != "${STATUS/error/} ]; then
/usr/sbin/mwan3 restart
fi