Skip to content

Instantly share code, notes, and snippets.

View connectthefuture's full-sized avatar

justthefracts connectthefuture

  • Midwest usa
View GitHub Profile
@mahdyar
mahdyar / cPanel.yml
Created September 8, 2021 20:56
Deploy to cPanel with GitHub Actions (FTP)
name: Deploy to cPanel
on:
push:
branches:
- master
jobs:
FTP-Deploy-Action:
name: FTP-Deploy-Action
runs-on: ubuntu-latest
steps:
@nobesnickr
nobesnickr / UnsaveLinkedSavedJobs.js
Last active January 14, 2022 18:29
Unsave "Saved Jobs" on LinkedIn
// Navigate to https://www.linkedin.com/my-items/saved-jobs/
// Open the browser console, paste the code below into it, press enter to execute the code, then reload the page
var fetchJobCount = function(){
let xRs = $x('//a[@data-control-name="myitems_all_savedjobs"]/div[2]');
jc = parseInt(xRs[0].innerText);
if ( isNaN(jc) ) { alert('Could not determine "My Jobs" count. Ensure you are running from the "My Jobs" page (url below) \n\nhttps://www.linkedin.com/my-items/saved-jobs/') };
console.log('Total Job Count: ' + jc);
@akihikodaki
akihikodaki / README.en.md
Last active April 14, 2025 16:19
Linux Desktop on Apple Silicon in Practice

Linux Desktop on Apple Silicon in Practice

I bought M1 MacBook Air. It is the fastest computer I have, and I have been a GNOME/GNU/Linux user for long time. It is obvious conclusion that I need practical Linux desktop environment on Apple Silicon.

Fortunately, Linux already works on Apple Silicon/M1. But how practical is it?

  • Two native ports exist.
#!/bin/bash
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -euo pipefail
IFS=$'\n\t'
# inspired by
# https://gist.github.com/codeinthehole/26b37efa67041e1307db
# https://github.com/why-jay/osx-init/blob/master/install.sh
# https://github.com/timsutton/osx-vm-templates/blob/master/scripts/xcode-cli-tools.sh
@mikedhanson
mikedhanson / piholedns.md
Created December 27, 2020 03:05
Custom Pihole DNS Settings
title date
Custom DNS Names in PIhole
2020-04-24

Adding Custom DNS Entries into Pihole

Assuming you already have Pihole up and running, create a new .conf file in the following directory: /etc/dnsmasq.d/yourname.conf

  1. nano or vim into "yourname.conf"
@TheCedarPrince
TheCedarPrince / .tmux.conf
Last active February 21, 2021 16:56
My tmux Configuration File
######################################################################
# START OF PLUGINS
######################################################################
# Plugin manager for tmux
set -g @plugin 'tmux-plugins/tpm'
# Simple tmux options for anyone
set -g @plugin 'tmux-plugins/tmux-sensible'
@hongkongkiwi
hongkongkiwi / main.tf
Last active November 16, 2023 23:38
Initialises Terraform HTTP backend to Gitlab. Here's a nice script which will ask for details in an interactive way.
# More information can be found at https://docs.gitlab.com/ee/user/infrastructure/#gitlab-managed-terraform-state
terraform {
backend "http" {
}
}
@mihai-valentin
mihai-valentin / deploy.yml
Last active October 18, 2022 16:45
Simple GitHub action for PHP project deployment
name: "Deploy a PHP project"
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
// Raspberry Pi HQ Camera Backplate
// Ed Nisley KE4ZNU 2020-09
//-- Extrusion parameters
/* [Hidden] */
ThreadThick = 0.25;
ThreadWidth = 0.40;
@veryangryboss
veryangryboss / mkjail.sh
Created September 23, 2020 21:31 — forked from pixelomer/mkjail.sh
Create a macOS chroot jail with GNU bash and utilities
#!/usr/bin/env sh
#############################################
# WARNING #
# No more commits are going to be made to #
# this gist. Please get the latest script #
# from the new repository: #
# https://github.com/pixelomer/macos-mkjail #
#############################################