Posts by elaine@pleroma.elaine.is
(DIR) Post #AWtuW4yTrbPt2u8yWG by elaine@pleroma.elaine.is
2023-06-21T01:31:32.795854Z
1 likes, 1 repeats
(DIR) Post #AWvQBOgKmwgfmEnWG8 by elaine@pleroma.elaine.is
2023-06-21T18:59:18.222184Z
1 likes, 0 repeats
(DIR) Post #AWvQBxBiUlzanPk3tY by elaine@pleroma.elaine.is
2023-06-21T18:55:03.115471Z
1 likes, 1 repeats
(DIR) Post #AWvROs118cPaTLSbbc by elaine@pleroma.elaine.is
2023-06-21T19:10:58.679870Z
3 likes, 1 repeats
(DIR) Post #AWvSO6veIxEEOF9QtU by elaine@pleroma.elaine.is
2023-06-19T14:01:45.657058Z
1 likes, 0 repeats
Happy Juneteenth ❤️
(DIR) Post #AWvSZHzVW35DstHncW by elaine@pleroma.elaine.is
2023-06-21T19:23:37.328417Z
0 likes, 0 repeats
@stanford new account? What happened?
(DIR) Post #AWvTCP8YsgDbLDAluK by elaine@pleroma.elaine.is
2023-06-21T19:19:55.625871Z
0 likes, 0 repeats
@waltercool family says I'm a woman, doctors say I'm a woman, therapists say I'm a woman, friends say I'm a woman, some random internet person on Pleroma says I'm not a woman. I guess that settles it.
(DIR) Post #AWvXQ472ErAimsAtns by elaine@pleroma.elaine.is
2023-06-21T20:21:30.899956Z
0 likes, 0 repeats
(DIR) Post #AWvh27ulRxxtAeevSK by elaine@pleroma.elaine.is
2023-06-21T22:06:16.071424Z
1 likes, 1 repeats
(DIR) Post #AWvv6HLJjjR2vdx9Ye by elaine@pleroma.elaine.is
2023-06-22T00:44:38.331856Z
2 likes, 2 repeats
(DIR) Post #AWxcgw843uLt2MRMTQ by elaine@pleroma.elaine.is
2023-06-22T20:26:04.628710Z
0 likes, 1 repeats
If you struggle writing regular expression just remember this poem it will guide you as you write it. After memorizing this poem you will become a regex expert!In a world where patterns swirl and twirl,In lines of code, in digital whirl,There exists a language, cryptic and mystic,Regular Expressions, simple yet artistic.To begin our tale, let's start quite small,With dots and stars and characters all.A dot means any, in its place,It matches a space, or any face.A star takes whatever comes before,And replicates it, over and more.It could be zero, it could be a legion,The star's magic lies in its region.Parentheses group, like a cozy cluster,They unify your pattern, adding luster.A hat for start, and dollar for end,Their use in control, you can depend.In brackets, your choices stand arrayed,Only one will be the match that's made.Use a dash to express a range,From 'a to z', or something strange.But, oh, the slash is a clever trickster,Turns symbols into tools, makes patterns thicker.\w for word, \d for a number,Such patterns they create, enough to encumber.A plus means one or more, no less,Perfect for matching an address.And then the question, a symbol coy,Marks zero or one, like a playful toy.But let's not forget, amidst this cheer,The brace, our quantifier clear.{2, 4}, says two to four,Customized counts, who could ask for more?The pipe, a symbol tall and straight,Acts as an 'or' to alter fate.A or B or maybe C,The pipe connects, and sets them free.At the end of our poem, as the lines grow thinner,You're a regex champ, a real winner.With patterns and symbols, you hold the key,To the code's puzzle, forever free.
(DIR) Post #AWxdBLrGxxY3WR5a8u by elaine@pleroma.elaine.is
2023-06-22T20:34:36.488668Z
0 likes, 0 repeats
@fosserytech wanna know a secret? chatgpt wrote it
(DIR) Post #AWxwc55jJLO0T7JJAG by elaine@pleroma.elaine.is
2023-06-23T00:14:34.391248Z
1 likes, 1 repeats
(DIR) Post #AWxwgVsRfF9yhYD58a by elaine@pleroma.elaine.is
2023-06-23T00:15:03.418973Z
1 likes, 0 repeats
(DIR) Post #AWxwiQfnz0kz8oDASO by elaine@pleroma.elaine.is
2023-06-23T00:14:11.360683Z
1 likes, 1 repeats
(DIR) Post #AWxwvxFEC915vLEI0u by elaine@pleroma.elaine.is
2023-06-23T00:17:56.180763Z
1 likes, 0 repeats
@kirby you cared enough to reply to this meme
(DIR) Post #AWxzR0jlSYJrdoRujI by elaine@pleroma.elaine.is
2023-06-23T00:19:30.055455Z
0 likes, 1 repeats
@kirby Alexa define taking the bait
(DIR) Post #AX1RtGvaEkoU9e7b7I by elaine@pleroma.elaine.is
2023-06-24T16:33:44.623804Z
1 likes, 0 repeats
(DIR) Post #AX1TqGjEikUgZo2fPU by elaine@pleroma.elaine.is
2023-06-23T22:49:03.942959Z
0 likes, 0 repeats
If you are starting a new Pleroma instance and dealing with a flood of harassment I found a list of instances recommended to block. I even wrote a Python script (this does involve you enabling AdminFE and moving the configuration to the database). This is reasonably safe but no promises it won’t fuck up your instance use at your own risk.You can choose which list to use at:https://codeberg.org/oliphant/blocklists/src/branch/main/blocklists/mastodonHere’s a Python Script to make it easierimport csvimport requests# CSV file pathcsv_file = "domains.csv"# API endpointapi_url = "https://pleroma.elaine.is/api/pleroma/admin/config"# Headers for requestsheaders = { "accept": "application/json, text/plain, */*", "accept-language": "en-US,en;q=0.9", "authorization": "Bearer [put your token here without the brackets]", "content-type": "application/json;charset=UTF-8",}# Fetch the current configurationresponse = requests.get(api_url, headers=headers)current_config = response.json()# Extract the currently blocked domainscurrent_domains = []for config in current_config["configs"]: if config["key"] == ":mrf_simple": for value in config["value"]: for tuple_item in value["tuple"][1]: current_domains.append(tuple_item["tuple"][0])# Read the new domains from the CSV filewith open(csv_file, 'r') as file: reader = csv.reader(file) next(reader) # Skip the header new_domains = [row[0] for row in reader]# Merge the current and new domainsall_domains = list(set(current_domains + new_domains))# Prepare the new configurationnew_config = { "configs": [ { "group": ":pleroma", "key": ":mrf_simple", "value": [ { "tuple": [ ":reject", [{"tuple": [domain, ""]} for domain in all_domains] ] } ] } ]}# Send a POST request to update the configurationresponse = requests.post(api_url, headers=headers, json=new_config)# Check the resultif response.status_code == 200: print("The configuration has been updated successfully.")else: print("Failed to update the configuration.")
(DIR) Post #AX25UKfbBOvEghJ7nk by elaine@pleroma.elaine.is
2023-06-25T00:12:07.197542Z
1 likes, 0 repeats
Saturday night mocktails