Skip to content

Instantly share code, notes, and snippets.

View aninternetian's full-sized avatar

Roselle aninternetian

View GitHub Profile
@aninternetian
aninternetian / chatbot.rive
Created November 24, 2020 15:14
chatbot for an interview
// https://www.rivescript.com/try
// creating a quick test chatbot for an upcoming interview
! version = 2.0
! array device = laptop pc
+ (hello|hi|hey) [*]
- Welcome to tech support. Please let me know if you are using a Laptop or a PC?
Desire takes your sorrow
Knock your sorrow down
Give back your sorrow
Love is forever
Let the night be 1 with Love
Put the night into your sorrow
Give back the night
@aninternetian
aninternetian / change.py
Created July 30, 2019 10:00
some kinda magic
import sys
obj_name = sys.argv[2]
with open(sys.argv[1]) as f:
xml_string = f.read()
xml_string = xml_string.replace('change', obj_name)
with open('output-' + sys.argv[1], 'w') as f:
f.write(xml_string)
@aninternetian
aninternetian / ubuntu
Last active April 4, 2019 04:42
Ubuntu quick keys
find ~/ -type f -name "file_name"
find / -type d -name "folder_name"
sudo find / -type d -name "folder_name"
rm -r mydir
java -jar Minecraft.jar
gsettings set org.gnome.desktop.interface text-scaling-factor 1.2