Skip to content

Instantly share code, notes, and snippets.

View baldrailers's full-sized avatar
🤖

Julius Francisco baldrailers

🤖
  • Paranaque City, PH
View GitHub Profile
@baldrailers
baldrailers / zen-mode.user.js
Created April 2, 2024 02:06 — forked from noromanba/zen-mode.user.js
open reader-view/mode aggressively for UserScript
// ==UserScript==
// @name ZEN-mode
// @namespace http://noromanba.flavors.me
// @description open reader-view/mode aggressively for UserScript
// @include http://example.com/DIY
// @grant none
// @noframes
// @run-at document-end
// @version 2016.5.24.5
// @homepage https://gist.github.com/noromanba/baa3c522a81fe2bed2577381bc6b5091
@baldrailers
baldrailers / UbuntuHiDPI.md
Created September 11, 2022 13:29 — forked from nma/UbuntuHiDPI.md
DPI Scaling Fix for Ubuntu on HiDPI 3840x2160 eDP1 with 1920x1080 External Monitor

Based on the contents http://blog.jamiek.it/2015/04/manually-fixing-multiple-screens-with.html

  • Set your Ubuntu to the highest DPI from the System Configurations
  • If not using Ubuntu, then you may need to configure based on instructions here and use a DPI calclator.
  • Please referer to the full blog post and give thanks to the OP.
  • This is just notes and a cached script for my personal laptop
  • My External Monitor (HDMI2) is Above my Laptop Screen (eDP1)
@baldrailers
baldrailers / har-extract.js
Created March 2, 2022 00:40 — forked from amishshah/har-extract.js
Rough script to extract images from HTTP Archive (HAR) files
const fs = require('fs');
const file = JSON.parse(fs.readFileSync('./dump.har')).log;
const targetMimeType = 'image/jpeg';
let count = 1;
for (const entry of file.entries) {
if (entry.response.content.mimeType === targetMimeType) {
// ensure output directory exists before running!
fs.writeFileSync(`output/${count}.png`, new Buffer(entry.response.content.text, 'base64'), 'binary');
count++;
@baldrailers
baldrailers / select_controller.js
Created November 24, 2021 15:18 — forked from tabishiqbal/_form.html.erb
Tom-Select Example with Stimulus
import ApplicationController from "./application_controller"
import TomSelect from "tom-select"
export default class extends ApplicationController {
static values = { url: String }
connect() {
super.connect()
this.initTomSelect()
}

Arch Linux ARM on Crostini

Screenshot

I got Arch Linux ARM installed on a Lenovo Chromebook Duet! I mostly used the instructions from the Arch Wiki as reference.

0. Before we begin

@baldrailers
baldrailers / init.vim
Last active November 25, 2019 12:45 — forked from benawad/init.vim
let vimplug_exists=expand('~/.vim/autoload/plug.vim')
if !filereadable(vimplug_exists)
if !executable("curl")
echoerr "You have to install curl or first install vim-plug yourself!"
execute "q!"
endif
echo "Installing Vim-Plug..."
echo ""
silent !\curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
version: '3'
services:
web:
build:
context: server
dockerfile: Dockerfile-dev
command: npm start # expecting bind port to 3000
...
lt:
build:
FROM node
RUN npm install -g localtunnel