Skip to content

Instantly share code, notes, and snippets.

View mi11y's full-sized avatar
🏳️‍⚧️
Living my best life!

Milly Guitron mi11y

🏳️‍⚧️
Living my best life!
View GitHub Profile
@mi11y
mi11y / param_spec.vala
Created June 15, 2023 03:23
Is this how I modify Properties with ParamSpecs?
public override (unowned ParamSpec)[] list_properties() {
Type type = typeof (TdLibParameters);
ObjectClass ocl = (ObjectClass) type.class_ref();
Gee.ArrayList<ParamSpec> converted_params = new Gee.ArrayList<ParamSpec>();
foreach (ParamSpec spec in ocl.list_properties()) {
string converted_name = spec.get_name().replace("-", "_");
switch(spec.value_type) {
@mi11y
mi11y / main.go
Last active September 1, 2020 20:07
golang mission
package main
// See comments in main(), this is written in Go.
import (
"log"
"sort"
)
func makeMap(items []string) map[string]int {
@mi11y
mi11y / gists_boostrap.sh
Last active July 13, 2020 04:57
A script to get myself up and running on a new machine; By jorgemanzo
#!/bin/bash
printf "Adding enpass repo...........\n"
echo "deb https://apt.enpass.io/ stable main" > /etc/apt/sources.list.d/enpass.list
wget -O - https://apt.enpass.io/keys/enpass-linux.key | apt-key add -
apt update
apt install enpass
@mi11y
mi11y / AboutMe.md
Last active July 2, 2020 23:37
About me and my work

About Me

I have worked for Oregon State University as a Student Analyst / Programmer for two years now, while completing a B.S. in Computer Science. Most of my work is in a Java-like language called Apex, along with some front-end JavaScript. My work runs on the Salesforce platform used by the university. I also like to contribute to open-source projects from time to time.

Some of my favorite topics

  • Contributing to the elementaryOS project. This is my favorite linux distro and I want to help it grow. I contribute new features for some of the apps that ship with the distribution.
#!/bin/bash
# Ssh key
ssh-keygen -t rsa -f id_rsa -N ''
# copy them over
ssh-copy-id -i ~/.ssh/id_rsa root@192.168.1.21
ssh-copy-id -i ~/.ssh/id_rsa root@192.168.1.22
ssh-copy-id -i ~/.ssh/id_rsa root@192.168.1.23
ssh-copy-id -i ~/.ssh/id_rsa root@192.168.1.24
@mi11y
mi11y / docker-compose.yaml
Created January 12, 2020 00:03
Simple Docker compose for Hasura and Postgres
version: '3.3'
services:
postgres:
image: postgres
restart: always
volumes:
- db_data:/var/lib/postgresql/data
graphql-engine:
image: hasura/graphql-engine:v1.0.0
ports:
@mi11y
mi11y / eOSjunoRyzen3000.md
Last active November 21, 2019 16:57
Installing ElementaryOS juno on Ryzen 3000 CPUs

Source

Like /u/vikaskrr said, you could wait for eOS 5.1 which should drop soon(ish). If you're like me and hate waiting, you can follow what I did to get eOS working on my Ryzen 3900X that I use at work:

The general flow here is that Elementary is using old versions of standard linux packages and an old Linux kernel. This can cause newer devices to not work at all or have device incompatability. In my case, the old Linux kernel and old system daemon caused issues with my Ryzen 3000 chip. What we want to do is patch the Elementary OS ISO to use up to date packages and a brand spanking new linux kernel, all before we flash it onto a bootable media and try to install eOS. This can be done by effectively "logging into" the ISO and getting a terminal prompt for the ISO, performing your changes, and then rebuilding the ISO with your changes. Here we go!

If you have an existing Linux Distro installed on your sy

@mi11y
mi11y / git-commit-template
Created October 4, 2019 18:48
Git template stolen from Jacob Herrington
Summarize the change in less than 50 characters
Because:
- Explain the reasons you made this change
- Make a new bullet for each reason
- Each line should be under 72 characters
Explain exactly what was done in this commit with more depth than the
50 character subject line. Remember to wrap at 72 characters!
@mi11y
mi11y / Resume.md
Created September 29, 2019 23:09
Linking Resume

Resume for 2019 View