Skip to content

Instantly share code, notes, and snippets.

#include <string>
#include <iostream>
#include <memory>
class Foo {
public:
Foo(char *chars) {
std::cout << *(data.get()) << std::endl;
data = std::unique_ptr<std::string>(new std::string(chars));
}
/.idea
@Joshix-1
Joshix-1 / wfc-test.py
Last active July 8, 2022 21:23
Just a fun thing I made
#!/usr/bin/env python3
import random
import re
import sys
from collections.abc import Iterator
from enum import IntFlag
from string import ascii_letters, digits
@Joshix-1
Joshix-1 / yt-search.sh
Created March 15, 2022 18:54
Search for videos with the YouTube API in the terminal to watch your favourite videos in mpv.
#!/bin/sh
# change this key:
API_KEY=""
CACHE_DIR="$HOME/.cache/yt-search"
DEFAULT_COMMAND="mpv '%s'"
if [ -z "$API_KEY" ]; then
echo "Please input an API key in the script."
#!/bin/sh
echo "Command: $1"
echo "Run count: $2"
CURRENT_TIME=$(date +%s)
I=0 # counter counts up to $2 - 1
TIME=0 # the whole time in ns
<!DOCTYPE html>
<html>
<head>
<title>I use arch btw.</title>
<meta property="og:title" content="Hi :)" />
<meta property="og:description" content="I use arch btw." />
<meta property="og:type" content="website" />
<style>
html {
background-color: #000;
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<meta property="og:title" content="Hi :)" />
<meta property="og:description" content="I use arch btw." />
<meta property="og:type" content="website" />
<style>
html {
background-color: #000;
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<meta property="og:title" content="Hi :)" />
<meta property="og:description" content="I use arch btw." />
<meta property="og:type" content="website" />
<style>
html {
background-color: #000;
This file has been truncated, but you can view the full file.
aachens
abarten
abartig
abbauen
abbaute
abbeiße
abbeißt
abbiege
abbiegt
abbilde
@Joshix-1
Joshix-1 / policies.json
Last active October 31, 2021 15:20
My custom policies.json for FireDragon
{
"__COMMENT__ More Information": "https://github.com/mozilla/policy-templates/blob/master/README.md",
"policies": {
"AppUpdateURL": "https://localhost",
"DisableAppUpdate": true,
"OfferToSaveLogins": false,
"OverrideFirstRunPage": "",
"OverridePostUpdatePage": "",
"DisableSystemAddonUpdate": true,