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 / main.go
Created September 6, 2019 23:14
Bit Shifting Go Lang
package main
import "fmt"
func main() {
// x:= 4
// fmt.Printf("%d\t\t%b\n", x, x)
@joshuaaguilar20
joshuaaguilar20 / bitshifting.go
Created September 6, 2019 23:25
Bit Shifting Iota
func main() {
iotatoKb()
}
func iotatoKb(){
const (
@joshuaaguilar20
joshuaaguilar20 / NewObject.js
Created September 27, 2019 18:21
API returning different Data
{
"id": "sku_FI4lrgGXvza0nv",
"object": "sku",
"active": true,
"attributes": {
"name": "LC-81"
},
"created": 1561053825,
"currency": "usd",
"image": "https://files.stripe.com/links/fl_live_WSngUWJBUIaD4RyvoKBsv9gL",
{
"id": "sku_FI4lrgGXvza0nv",
"object": "sku",
"active": true,
"attributes": {
"name": "LC-81"
},
"created": 1561053825,
"currency": "usd",
"image": "https://files.stripe.com/links/fl_live_WSngUWJBUIaD4RyvoKBsv9gL",
@joshuaaguilar20
joshuaaguilar20 / translate.html
Last active March 17, 2020 23:59
google translate api
<!DOCTYPE html>
<html lang="en-US">
<body>
<h1>Joshuas web translator</h1>
<p>Hello DEF NOT HELLO WORLD</p>
<p>Translate this page:</p>

Tonys Celebration of Life

  • 6:00PM: Time Start
  • 6:00PM: Dinner
  • 7:00PM: Guest Speaker Chris
  • 8:00PM: Drinks/Music/Video

Supplies for Eating and Drinks - Camille

@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

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 / 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
@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