Skip to content

Instantly share code, notes, and snippets.

View joshuaaguilar20's full-sized avatar
🎯
Focusing

Joshua Aguilar joshuaaguilar20

🎯
Focusing
View GitHub Profile
@joshuaaguilar20
joshuaaguilar20 / promises.md
Created July 19, 2021 20:10
Lesson Promises

ee

@joshuaaguilar20
joshuaaguilar20 / systemctl.md
Created January 12, 2021 22:58
System CTL systemd systemctl

Systemctl Linux Server Status

To list all loaded services on your system (whether active; running, exited or failed, use the list-units subcommand and --type switch with a value of service.

# systemctl list-units --type=service
OR
# systemctl --type=service

List All Services Under Systemd

And to list all loaded but active services, both running and those that have exited, you can add the --state option with a value of active, as follows.

@joshuaaguilar20
joshuaaguilar20 / computerFixes.md
Created October 3, 2020 20:04
Notes For Anna

Google Chrome

  • Cleared Cache on exit which you may or may not like. If this gets annoying and you want it to keep your history. Reset with
1. Open Google Chrome 
2. Click the little 3 dots in the top right 
3. click Settings 
4. Scroll Down to Privacy and Security 
5. Privacy and security
@joshuaaguilar20
joshuaaguilar20 / readme.md
Last active August 31, 2020 21:09
Speech notes

The Problem:

  1. Simply Blocking Urls is not enough to train users to relate submissions to urls.
  2. 2021 25 % of all phishing breaches will occur from a mobile device broswer. -reference owasp-top 10
  3. Can we create eyes and ears for the client on minimal premissions and processing power ?

The objective was to use peoplecentric methods to help train users on what urls they are submitting to. The idea was inspired by the https lock so many users are familre with. I then started to wonder if there was a way to do

@joshuaaguilar20
joshuaaguilar20 / readme.md
Last active August 31, 2020 19:03
Presentation
We couldn’t find that file to show.
@joshuaaguilar20
joshuaaguilar20 / logitechforlinux.md
Created July 23, 2020 20:19
logitech for linux

Logitech documents

I have learned a bit from the kernel source code hid-logitech-dj, but the "official" Logitech specification (HID++ 1.0) was much more useful. These documents can be found on https://lekensteyn.nl/files/logitech/.

Debuggers usbmon.awk - initial debugging tool used for tapping usbmon from debugfs hidraw.c - successor of usbmon.awk that can parse packets of usb payload.

@joshuaaguilar20
joshuaaguilar20 / IosLinux.md
Created July 23, 2020 19:33
using ios keyboard on linux (not sure if it works will comment outcome

For anyone stumbling upon this thread using one of the newer MacBook Pros (2016 and later) which need the applespi driver to make the keyboard and touchpad work, here's how to make this work, as I couldn't find any other thread explaining this for newer Macs.

As far as I understand, the driver effectively replaces the role of the hid_apple module, so the files to edit are slightly different.

  1. First, to verify that you are using the applespi driver and not the hid_apple driver, check which of these commands (using the terminal) returns something. Whichever does will tell you which driver you are currently using:

If this returns "applespi", you are using applespi

sudo ls /sys/module | grep applespi
@joshuaaguilar20
joshuaaguilar20 / installfedora.sh
Last active July 20, 2020 08:09
Bash Script for updating Fedora from 30 to 32
#/bin/bash
dnf clean all
sudo dnf clean all
sudo dnf upgrade --refresh
sudo dnf install dnf-plugin-system-upgrade
sudo dnf system-upgrade download --releasever=31
if
sudo dnf system-upgrade download --releasever=31; then

Peninsula Astronomical Society holds its meetings on the campus of Foothill College at 7:30 p.m.

on the second Friday of each month in room 5015 next to Parking Lot 5. There is a $3 charge for parking — visitor parking permits are available from the machines in the parking lots (see map). Meetings feature lectures by prominent members of the professional and amateur communities, and are open to the public

@joshuaaguilar20
joshuaaguilar20 / delete-git-branch.md
Last active July 15, 2020 22:02
Deleting Git Repos

Delete a remote branch

$ git push origin --delete <branch> # Git version 1.7.0 or newer 
$ git push origin :<branch> # Git versions older than 1.7.0

Delete a local branch

$ git branch --delete <branch>
$ git branch -d <branch> # Shorter version
$ git branch -D  # Force delete un-merged branches