GET /api/paste/?format=api&limit=25&offset=75
HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "count": 186,
    "next": "https://sillypaste.herokuapp.com/api/paste/?format=api&limit=25&offset=100",
    "previous": "https://sillypaste.herokuapp.com/api/paste/?format=api&limit=25&offset=50",
    "results": [
        {
            "id": 341,
            "title": "trying to deal with dst time America and Europe",
            "body": "Date.prototype.stdTimezoneOffset = function() {\n  var jan = new Date(this.getFullYear(), 0, 1);\n  var jul = new Date(this.getFullYear(), 6, 1);\n  return Math.max(jan.getTimezoneOffset(), jul.getTimezoneOffset());\n};\n\nDate.prototype.dst = function() {\n  return this.getTimezoneOffset() < this.stdTimezoneOffset();\n};\n\nfunction getDate(dateObj, offset) {\n  let dstAdjustedOffset = dateObj.dst() ? (offset + 1) : offset;\n\n  let diff = dstAdjustedOffset * 60 + dateObj.getTimezoneOffset();\n  return new Date(dateObj.getTime() + diff * 60 * 1000);\n}",
            "timestamp": "2021-03-14T18:47:20.361375Z",
            "expiry": null,
            "freeze_hits": false,
            "hits": 198,
            "size": 591,
            "author": 122,
            "language": 216
        },
        {
            "id": 343,
            "title": "nvidia-composition-pipeline",
            "body": "#!/usr/bin/env bash\n\nset -eu\n\nenable_cp() {\n    sh -c \"nvidia-settings --assign CurrentMetaMode=\\\"$(nvidia-settings -t -q CurrentMetaMode |tr -d \"\\n\"|sed 's/ViewPortIn=/ForceFullCompositionPipeline=On, ViewPortIn=/g'|sed 's/.*:://'|sed 's/^ *//;s/ *$//')\\\"\" > /dev/null\n    echo 'Enabled composition pipeline'\n}\n\ndisable_cp() {\n    sh -c \"nvidia-settings --assign CurrentMetaMode=\\\"$(nvidia-settings -t -q CurrentMetaMode |tr -d \"\\n\"|sed 's/.*:://'|sed 's/^ *//;s/ *$//'|sed \"s/CompositionPipeline=On/CompositionPipeline=Off/g\")\\\"\" > /dev/null\n    echo 'Disabled composition pipeline'\n}\n\ntoggle_cp() {\n    if nvidia-settings -t -q CurrentMetaMode|grep -Fq 'ForceCompositionPipeline=On' > /dev/null; then\n        enable_cp\n    else\n        disable_cp\n    fi\n}\n\nusage() {\n    printf 'Usage: %s <enable|disable>\\n' \"$(basename \"$0\")\"\n    exit 1\n}\n\nif [[ $# -ne 1 ]]; then\n    usage\nelif [[ $1 = \"enable\" ]]; then\n    enable_cp\nelif [[ $1 = \"disable\" ]]; then\n    disable_cp\nelse\n    usage\nfi",
            "timestamp": "2021-03-21T08:52:00.368001Z",
            "expiry": null,
            "freeze_hits": false,
            "hits": 225,
            "size": 1015,
            "author": 2,
            "language": 179
        },
        {
            "id": 344,
            "title": "borgmatic-snowcrash.yaml",
            "body": "location:\n  source_directories:\n    - /home\n    - /etc\n    - /var/db/pkg\n    - /var/log\n    - /var/spool\n    - /var/lib/portage\n    - /var/lib/syncthing\n    - /root\n  repositories:\n    - borg-snowcrash@silo.lan:repository.borg\n    - v10087wc@v10087wc.repo.borgbase.com:repo\n  one_file_system: true\nretention:\n  keep_daily: 7\n  keep_weekly: 4\n  keep_monthly: 6\nconsistency:\n  checks:\n    - repository\n    - archives\nstorage:\n  # Custom SSH Key in the config tree\n  ssh_command: ssh -i /etc/borgmatic/keys/snowcrash/ssh\n  # Password is in the repokey file\n  encryption_passcommand: cat /etc/borgmatic/keys/snowcrash/repokey",
            "timestamp": "2021-03-21T20:01:42.755861Z",
            "expiry": null,
            "freeze_hits": false,
            "hits": 225,
            "size": 645,
            "author": 2,
            "language": 157
        },
        {
            "id": 349,
            "title": "python game bot",
            "body": "\"\"\"\nIEEE-CS @ Uwm Karl & Winston Game Jam\n2021-04-08\n\nIt gambles jam ingredients!\n\"\"\"\n\nimport os\nimport random\nimport socket\nimport sys\nimport time\n\n\nEND = '\\r\\n'\n\n# code borrowed from: https://www.techbeamers.com/create-python-irc-bot/\n\nclass IRC:\n \n    irc = socket.socket()\n    # This is winny spamming it up!!!!\n    ## karl too\n    def __init__(self):\n        # Define the socket\n        self.irc = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\n \n    def send(self, channel, msg):\n        \"\"\"Transfer the data\"\"\"\n        print('{} >> {}'.format(channel, msg))\n        self.irc.send(bytes(\"PRIVMSG \" + channel + \" :\" + msg + END, \"UTF-8\"))\n \n    def connect(self, server, port, channel, botnick):\n        # Connect to the server\n        print(\"Connecting to: \" + server)\n        self.irc.connect((server, port))\n\n        # Perform user authentication\n        self.irc.send(bytes(\"USER \" + botnick + \" \" + botnick +\" \" + botnick + \" :python\" + END, \"UTF-8\"))\n        self.irc.send(bytes(\"NICK \" + botnick + END, \"UTF-8\"))\n        # self.irc.send(bytes(\"NICKSERV IDENTIFY \" + botnickpass + \" \" + botpass + \"\\n\", \"UTF-8\"))\n        time.sleep(3)\n\n        # join the channel\n        self.irc.send(bytes(\"JOIN \" + channel + END, \"UTF-8\"))\n \n    def get_response(self):\n        time.sleep(1)\n        # Get the response\n        resp = self.irc.recv(2040).decode(\"UTF-8\")\n \n        if resp.find('PING') != -1:                      \n            self.irc.send(bytes('PONG ' + resp.split()[1] + END, \"UTF-8\")) \n \n        return resp\n\t\n\n## IRC Config\nserver = \"chat.freenode.net\" # Provide a valid server IP/Hostname\nport = 6667\nchannel = \"##ieee-cs-uwm\"\nbotnick = \"jam_gamebot\"\nbotnickpass = \"\"\n\nirc = IRC()\nirc.connect(server, port, channel, botnick)\n\n# outgoing queue\nsendQ = list()\njams = ['šŸ“ļø','šŸŽļø','šŸ„ļø', 'šŸ‹ļø', 'šŸ‰ļø'] \nflavors = ['stawberry', 'apple', 'kiwi', 'lemon', 'watermelon']\n\n\nwhile True:\n    text = irc.get_response()\n    print(text)\n \n    if not (\"PRIVMSG\" in text and channel in text):\n    \tcontinue\n    if \"hello\" in text:\n        irc.send(channel, \"Hello!\")\n    elif \"!slots\" in text:\n    \ta = random.choice(jams)\n    \tb = random.choice(jams)\n    \tc = random.choice(jams)\n    \t\n    \twin = a == b == c\n    \t\n    \tirc.send(channel, \"You got [{} {} {}]!\".format(a, b, c))\n    \t\n    \tif win:\n    \t\tirc.send(channel, \"You win!\")\t\n    elif \"!gimmefruit\" in text:\n    \tirc.send(channel, \"You get: \" + random.choice(jams))\n    \tirc.send(channel, random.choice(flavors) + \" are tasty too!\")",
            "timestamp": "2021-04-09T01:29:08.614986Z",
            "expiry": null,
            "freeze_hits": false,
            "hits": 199,
            "size": 2532,
            "author": 173,
            "language": 471
        },
        {
            "id": 350,
            "title": "Test emoji render",
            "body": "šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”šŸ¤”\n\nšŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©\n\nšŸ˜…šŸ™„šŸ¤£ Xyz\n\nHhfdth\n\n3šŸ‘€šŸ‘€šŸ‘€X",
            "timestamp": "2021-04-10T00:02:23.067435Z",
            "expiry": null,
            "freeze_hits": false,
            "hits": 214,
            "size": 353,
            "author": 2,
            "language": null
        },
        {
            "id": 351,
            "title": "Test emoji render 2",
            "body": "šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©šŸ’©",
            "timestamp": "2021-04-10T00:07:44.005361Z",
            "expiry": null,
            "freeze_hits": false,
            "hits": 194,
            "size": 159,
            "author": 2,
            "language": null
        },
        {
            "id": 353,
            "title": "kiwi",
            "body": "log_LD50_molkgs = []\n\nfor item in dfneu:\n    LD50_mgkg = item['LD50_mgkg']\n    molar_mass = item['Molar_mass']\n    log_LD50_molkg = np.log10(LD50_mgkg / (molar_mass * 1000.))\n    log_LD50_molkgs.append(log_LD50_molkg)\n\ndfneu['log_LD50_molkg'] = log_LD50_molkgs",
            "timestamp": "2021-04-13T22:31:51.642338Z",
            "expiry": null,
            "freeze_hits": false,
            "hits": 201,
            "size": 264,
            "author": 180,
            "language": 471
        },
        {
            "id": 354,
            "title": "example_bank_etl.py",
            "body": "#!/usr/bin/env python3\nfrom abc import abstractmethod, ABC\nfrom datetime import datetime\nimport csv\nimport argparse\nimport sys\n\n\ndef date_type(s):\n    \"\"\"Parse a date, used for the add_argument()'s type keyword argument.\"\"\"\n    if s in ('today', 'now'):\n        return datetime.today()\n    try:\n        return datetime.strptime(s, '%Y-%m-%d')\n    except ValueError:\n        raise argparse.ArgumentTypeError(\n            f\"`{s}' invalid format. Try now, today, or a ISO date (%Y-%m-%d).\"\n        )\n\n\ndef format_type(s):\n    \"\"\"Parse the csv format, used for add_argument()'s type keyword argument.\n    \"\"\"\n    if s not in ('credit', 'checking'):\n        raise argparse.ArgumentTypeError(\n            f\"`{s}' invalid.  Try `checking' or `credit'.\"\n        )\n    return s\n\n\ndef build_parser():\n    \"\"\"Build a parser and return it.\"\"\"\n    parser = argparse.ArgumentParser(\n        description='Transform a Bank of XXXXXX csv to something ledger'\n                    ' can use.  Try importing it into ledge as follows:'\n                    ' ledger -f your.ledger convert --account'\n                    ' Assets:Bank:Checking massaged.csv'\n    )\n\n    parser.add_argument(\n        '--begin',\n        type=date_type,\n        default=datetime.min,\n        help='now, today, or a ISO date (%%Y-%%m-%%d). '\n             'Defaults to earliest date possible.'\n    )\n\n    parser.add_argument(\n        '--format',\n        type=format_type,\n        required=True,\n        help='checking or credit',\n    )\n\n    return parser\n\n\nclass Translation(ABC):\n    @staticmethod\n    def flip(s):\n        \"\"\"Flip the sign of a string currency value.\"\"\"\n        if s.startswith('-'):\n            return s[1:]\n        else:\n            return f'-{s}'\n\n    def __init__(self, row):\n        self.row = row\n\n    @abstractmethod\n    def date(self):\n        pass\n\n    @abstractmethod\n    def amount(self):\n        pass\n\n    @abstractmethod\n    def description(self):\n        pass\n\n    @abstractmethod\n    def code(self):\n        pass\n\n\nclass CheckingTranslation(Translation):\n    def date(self):\n        return datetime.strptime(self.row['Date'], '%m/%d/%Y')\n\n    def amount(self):\n        if self.row['Credit']:\n            return f'-{self.row[\"Credit\"]}'\n        return self.row['Debit']\n\n    def description(self):\n        return self.row['Description']\n\n    def code(self):\n        return self.row['ChkRef']\n\n\nclass CreditTranslation(Translation):\n    def date(self):\n        return datetime.strptime(self.row['PostDate'], '%m/%d/%y')\n\n    def amount(self):\n        return Translation.flip(self.row['Amount'])\n\n    def description(self):\n        return self.row['Description']\n\n    def code(self):\n        return self.row['Reference'].strip(\"'\")\n\n\nTRANSLATION = {\n    'checking': CheckingTranslation,\n    'credit': CreditTranslation,\n}\n\n\ndef main():\n    \"\"\"ETL tool entry point.\"\"\"\n    args = build_parser().parse_args()\n\n    Translation = TRANSLATION[args.format]\n\n    reader = csv.DictReader(sys.stdin)\n    writer = csv.DictWriter(sys.stdout,\n                            ('date', 'amount', 'code', 'description'))\n    writer.writeheader()\n    for r in reader:\n        t = Translation(r)\n        date = t.date()\n        if date < args.begin:\n            continue\n        writer.writerow({\n            'date': date.strftime('%Y-%m-%d'),\n            'code': t.code(),\n            'description': t.description(),\n            'amount': t.amount(),\n        })\n\n\nif __name__ == '__main__':\n    main()\n",
            "timestamp": "2021-04-18T06:39:47.748166Z",
            "expiry": null,
            "freeze_hits": false,
            "hits": 215,
            "size": 3485,
            "author": 2,
            "language": 471
        },
        {
            "id": 355,
            "title": "terraform example for luxemboye",
            "body": "##################################################################################\n# VARIABLES\n##################################################################################\n\nvariable \"aws_access_key\" {}\nvariable \"aws_secret_key\" {}\nvariable \"private_key_path\" {}\nvariable \"key_name\" {}\nvariable \"region\" {\n  default = \"ca-central-1\"\n}\n\n##################################################################################\n# PROVIDERS\n##################################################################################\n\nprovider \"aws\" {\n  access_key = var.aws_access_key\n  secret_key = var.aws_secret_key\n  region     = var.region\n}\n\n##################################################################################\n# DATA\n##################################################################################\n\ndata \"aws_ami\" \"aws-linux\" {\n  most_recent = true\n  owners      = [\"amazon\"]\n\n  filter {\n    name   = \"name\"\n    values = [\"amzn-ami-hvm*\"]\n  }\n\n  filter {\n    name   = \"root-device-type\"\n    values = [\"ebs\"]\n  }\n\n  filter {\n    name   = \"virtualization-type\"\n    values = [\"hvm\"]\n  }\n}\n\n\n##################################################################################\n# RESOURCES\n##################################################################################\n\n#This uses the default VPC.  It WILL NOT delete it on destroy.\nresource \"aws_default_vpc\" \"default\" {\n\n}\n\nresource \"aws_security_group\" \"allow_ssh\" {\n  name        = \"nginx_demo\"\n  description = \"Allow ports for nginx demo\"\n  vpc_id      = aws_default_vpc.default.id\n\n  ingress {\n    from_port   = 22\n    to_port     = 22\n    protocol    = \"tcp\"\n    cidr_blocks = [\"0.0.0.0/0\"]\n  }\n  ingress {\n    from_port   = 80\n    to_port     = 80\n    protocol    = \"tcp\"\n    cidr_blocks = [\"0.0.0.0/0\"]\n  }\n  egress {\n    from_port   = 0\n    to_port     = 0\n    protocol    = -1\n    cidr_blocks = [\"0.0.0.0/0\"]\n  }\n}\n\nresource \"aws_instance\" \"nginx\" {\n  ami                    = data.aws_ami.aws-linux.id\n  instance_type          = \"t2.micro\"\n  key_name               = var.key_name\n  vpc_security_group_ids = [aws_security_group.allow_ssh.id]\n\n  connection {\n    type        = \"ssh\"\n    host        = self.public_ip\n    user        = \"ec2-user\"\n    private_key = file(var.private_key_path)\n\n  }\n\n  provisioner \"remote-exec\" {\n    inline = [\n      \"sudo yum install nginx -y\",\n      \"sudo service nginx start\"\n    ]\n  }\n}\n\n##################################################################################\n# OUTPUT\n##################################################################################\n\noutput \"aws_instance_public_dns\" {\n  value = aws_instance.nginx.public_dns\n}\n",
            "timestamp": "2021-04-18T20:05:59.713223Z",
            "expiry": null,
            "freeze_hits": false,
            "hits": 196,
            "size": 2672,
            "author": 184,
            "language": 49
        },
        {
            "id": 356,
            "title": "deploying nginx on aws ec2 with terraform",
            "body": "\nSaved the plan to: terraform.plan\n\nTo perform exactly these actions, run the following command to apply:\n    terraform apply \"terraform.plan\"\nsocdev@dailybuild:~/code/terraform_tuto/Getting-Started-Terraform/m3$ terraform apply \"terraform.plan\"\naws_default_vpc.default: Creating...\naws_default_vpc.default: Still creating... [10s elapsed]\naws_default_vpc.default: Creation complete after 11s [id=vpc-ccbe89a4]\naws_security_group.allow_ssh: Creating...\naws_security_group.allow_ssh: Creation complete after 1s [id=sg-0837670226c961654]\naws_instance.nginx: Creating...\naws_instance.nginx: Still creating... [10s elapsed]\naws_instance.nginx: Still creating... [20s elapsed]\naws_instance.nginx: Still creating... [30s elapsed]\naws_instance.nginx: Still creating... [40s elapsed]\naws_instance.nginx: Provisioning with 'remote-exec'...\naws_instance.nginx (remote-exec): Connecting to remote host via SSH...\naws_instance.nginx (remote-exec):   Host: 3.96.196.35\naws_instance.nginx (remote-exec):   User: ec2-user\naws_instance.nginx (remote-exec):   Password: false\naws_instance.nginx (remote-exec):   Private key: true\naws_instance.nginx (remote-exec):   Certificate: false\naws_instance.nginx (remote-exec):   SSH Agent: false\naws_instance.nginx (remote-exec):   Checking Host Key: false\naws_instance.nginx (remote-exec):   Target Platform: unix\naws_instance.nginx (remote-exec): Connecting to remote host via SSH...\naws_instance.nginx (remote-exec):   Host: 3.96.196.35\naws_instance.nginx (remote-exec):   User: ec2-user\naws_instance.nginx (remote-exec):   Password: false\naws_instance.nginx (remote-exec):   Private key: true\naws_instance.nginx (remote-exec):   Certificate: false\naws_instance.nginx (remote-exec):   SSH Agent: false\naws_instance.nginx (remote-exec):   Checking Host Key: false\naws_instance.nginx (remote-exec):   Target Platform: unix\naws_instance.nginx (remote-exec): Connecting to remote host via SSH...\naws_instance.nginx (remote-exec):   Host: 3.96.196.35\naws_instance.nginx (remote-exec):   User: ec2-user\naws_instance.nginx (remote-exec):   Password: false\naws_instance.nginx (remote-exec):   Private key: true\naws_instance.nginx (remote-exec):   Certificate: false\naws_instance.nginx (remote-exec):   SSH Agent: false\naws_instance.nginx (remote-exec):   Checking Host Key: false\naws_instance.nginx (remote-exec):   Target Platform: unix\naws_instance.nginx: Still creating... [50s elapsed]\naws_instance.nginx (remote-exec): Connecting to remote host via SSH...\naws_instance.nginx (remote-exec):   Host: 3.96.196.35\naws_instance.nginx (remote-exec):   User: ec2-user\naws_instance.nginx (remote-exec):   Password: false\naws_instance.nginx (remote-exec):   Private key: true\naws_instance.nginx (remote-exec):   Certificate: false\naws_instance.nginx (remote-exec):   SSH Agent: false\naws_instance.nginx (remote-exec):   Checking Host Key: false\naws_instance.nginx (remote-exec):   Target Platform: unix\naws_instance.nginx (remote-exec): Connected!\naws_instance.nginx (remote-exec): Loaded plugins: priorities, update-motd,\naws_instance.nginx (remote-exec):               : upgrade-helper\naws_instance.nginx (remote-exec): Existing lock /var/run/yum.pid: another copy is running as pid 2746.\naws_instance.nginx (remote-exec): Another app is currently holding the yum lock; waiting for it to exit...\naws_instance.nginx (remote-exec):   The other application is: yum\naws_instance.nginx (remote-exec):     Memory : 128 M RSS (374 MB VSZ)\naws_instance.nginx (remote-exec):     Started: Mon Apr 19 00:09:16 2021 - 00:02 ago\naws_instance.nginx (remote-exec):     State  : Running, pid: 2746\naws_instance.nginx (remote-exec): Resolving Dependencies\naws_instance.nginx (remote-exec): --> Running transaction check\naws_instance.nginx (remote-exec): ---> Package nginx.x86_64 1:1.18.0-1.41.amzn1 will be installed\naws_instance.nginx (remote-exec): --> Processing Dependency: libprofiler.so.0()(64bit) for package: 1:nginx-1.18.0-1.41.amzn1.x86_64\naws_instance.nginx (remote-exec): --> Running transaction check\naws_instance.nginx (remote-exec): ---> Package gperftools-libs.x86_64 0:2.0-11.5.amzn1 will be installed\naws_instance.nginx (remote-exec): --> Processing Dependency: libunwind.so.8()(64bit) for package: gperftools-libs-2.0-11.5.amzn1.x86_64\naws_instance.nginx (remote-exec): --> Running transaction check\naws_instance.nginx (remote-exec): ---> Package libunwind.x86_64 0:1.1-10.8.amzn1 will be installed\naws_instance.nginx (remote-exec): --> Finished Dependency Resolution\n\naws_instance.nginx (remote-exec): Dependencies Resolved\n\naws_instance.nginx (remote-exec): ========================================\naws_instance.nginx (remote-exec):  Package   Arch   Version\naws_instance.nginx (remote-exec):                      Repository    Size\naws_instance.nginx (remote-exec): ========================================\naws_instance.nginx (remote-exec): Installing:\naws_instance.nginx (remote-exec):  nginx     x86_64 1:1.18.0-1.41.amzn1\naws_instance.nginx (remote-exec):                      amzn-updates 603 k\naws_instance.nginx (remote-exec): Installing for dependencies:\naws_instance.nginx (remote-exec):  gperftools-libs\naws_instance.nginx (remote-exec):            x86_64 2.0-11.5.amzn1\naws_instance.nginx (remote-exec):                      amzn-main    570 k\naws_instance.nginx (remote-exec):  libunwind x86_64 1.1-10.8.amzn1\naws_instance.nginx (remote-exec):                      amzn-main     72 k\n\naws_instance.nginx (remote-exec): Transaction Summary\naws_instance.nginx (remote-exec): ========================================\naws_instance.nginx (remote-exec): Install  1 Package (+2 Dependent packages)\n\naws_instance.nginx (remote-exec): Total download size: 1.2 M\naws_instance.nginx (remote-exec): Installed size: 3.0 M\naws_instance.nginx (remote-exec): Downloading packages:\naws_instance.nginx (remote-exec): (1/3): libunwind-1 |  72 kB   00:00\naws_instance.nginx (remote-exec): (2/3): gperftools- | 570 kB   00:00\naws_instance.nginx (remote-exec): (3/3): nginx-1.18. | 603 kB   00:00\naws_instance.nginx (remote-exec): ----------------------------------------\naws_instance.nginx (remote-exec): Total      5.7 MB/s | 1.2 MB  00:00\naws_instance.nginx (remote-exec): Running transaction check\naws_instance.nginx (remote-exec): Running transaction test\naws_instance.nginx (remote-exec): Transaction test succeeded\naws_instance.nginx (remote-exec): Running transaction\naws_instance.nginx (remote-exec):   Installing : libunwin [         ] 1/3\naws_instance.nginx (remote-exec):   Installing : libunwin [#####    ] 1/3\naws_instance.nginx (remote-exec):   Installing : libunwin [#######  ] 1/3\naws_instance.nginx (remote-exec):   Installing : libunwin [######## ] 1/3\naws_instance.nginx (remote-exec):   Installing : libunwind-1.1-10.8   1/3\naws_instance.nginx (remote-exec):   Installing : gperftoo [         ] 2/3\naws_instance.nginx (remote-exec):   Installing : gperftoo [#        ] 2/3\naws_instance.nginx (remote-exec):   Installing : gperftoo [##       ] 2/3\naws_instance.nginx (remote-exec):   Installing : gperftoo [###      ] 2/3\naws_instance.nginx (remote-exec):   Installing : gperftoo [####     ] 2/3\naws_instance.nginx (remote-exec):   Installing : gperftoo [#####    ] 2/3\naws_instance.nginx (remote-exec):   Installing : gperftoo [######   ] 2/3\naws_instance.nginx (remote-exec):   Installing : gperftoo [#######  ] 2/3\naws_instance.nginx (remote-exec):   Installing : gperftoo [######## ] 2/3\naws_instance.nginx (remote-exec):   Installing : gperftools-libs-2.   2/3\naws_instance.nginx (remote-exec):   Installing : 1:nginx- [         ] 3/3\naws_instance.nginx (remote-exec):   Installing : 1:nginx- [#        ] 3/3\naws_instance.nginx (remote-exec):   Installing : 1:nginx- [##       ] 3/3\naws_instance.nginx (remote-exec):   Installing : 1:nginx- [###      ] 3/3\naws_instance.nginx (remote-exec):   Installing : 1:nginx- [####     ] 3/3\naws_instance.nginx (remote-exec):   Installing : 1:nginx- [#####    ] 3/3\naws_instance.nginx (remote-exec):   Installing : 1:nginx- [######   ] 3/3\naws_instance.nginx (remote-exec):   Installing : 1:nginx- [#######  ] 3/3\naws_instance.nginx (remote-exec):   Installing : 1:nginx- [######## ] 3/3\naws_instance.nginx (remote-exec):   Installing : 1:nginx-1.18.0-1.4   3/3\naws_instance.nginx (remote-exec):   Verifying  : libunwind-1.1-10.8   1/3\naws_instance.nginx (remote-exec):   Verifying  : gperftools-libs-2.   2/3\naws_instance.nginx (remote-exec):   Verifying  : 1:nginx-1.18.0-1.4   3/3\n\naws_instance.nginx (remote-exec): Installed:\naws_instance.nginx (remote-exec):   nginx.x86_64 1:1.18.0-1.41.amzn1\n\naws_instance.nginx (remote-exec): Dependency Installed:\naws_instance.nginx (remote-exec):   gperftools-libs.x86_64 0:2.0-11.5.amzn1\naws_instance.nginx (remote-exec):   libunwind.x86_64 0:1.1-10.8.amzn1\n\naws_instance.nginx (remote-exec): Complete!\naws_instance.nginx (remote-exec): Starting nginx:          [  OK  ]\naws_instance.nginx: Creation complete after 56s [id=i-0a6e00f8fca1bc79a]\n\nApply complete! Resources: 3 added, 0 changed, 0 destroyed.\n\nOutputs:\n\naws_instance_public_dns = \"ec2-3-96-196-35.ca-central-1.compute.amazonaws.com\"\nsocdev@dailybuild:~/code/terraform_tuto/Getting-Started-Terraform/m3$ ",
            "timestamp": "2021-04-19T00:13:21.103852Z",
            "expiry": null,
            "freeze_hits": false,
            "hits": 189,
            "size": 9227,
            "author": 184,
            "language": null
        },
        {
            "id": 357,
            "title": "creating a load balancer in terraform",
            "body": "# LOAD BALANCER #\nresource \"aws_elb\" \"web\" {\n  name = \"nginx-elb\"\n\n  subnets         = [aws_subnet.subnet1.id, aws_subnet.subnet2.id]\n  security_groups = [aws_security_group.elb-sg.id]\n  instances       = [aws_instance.nginx1.id, aws_instance.nginx2.id]\n\n  listener {\n    instance_port     = 80\n    instance_protocol = \"http\"\n    lb_port           = 80\n    lb_protocol       = \"http\"\n  }\n}",
            "timestamp": "2021-04-19T21:54:37.450048Z",
            "expiry": null,
            "freeze_hits": false,
            "hits": 182,
            "size": 426,
            "author": 185,
            "language": 49
        },
        {
            "id": 358,
            "title": "find-current-buffer-as-root.el",
            "body": "(defun winny/find-current-buffer-as-root ()\n  \"Find the current buffer as root using TRAMP sudo.\"\n  (interactive)\n  (when (file-remote-p default-directory)\n    (error \"Already a TRAMP buffer.  Giving up\"))\n  (find-alternate-file (concat \"/sudo:root@localhost:\" buffer-file-name)))\n",
            "timestamp": "2021-04-23T16:49:32.207896Z",
            "expiry": null,
            "freeze_hits": false,
            "hits": 200,
            "size": 311,
            "author": 2,
            "language": 257
        },
        {
            "id": 359,
            "title": "pascal.bas",
            "body": "   1 REM TODO PRINT OUT PASCAL'S TRIANGLE \n  50 PRINT \"DEPTH??\"\n  51 INPUT K\n 100 FOR I=0 TO K-1 \n 105 FOR J=0 TO I \n 110 A=I\n 115 B=J\n 120 GOSUB 1800 \n 130 PRINT A; \n 131 IF J <> I THEN 135 \n 132 PRINT\n 135 NEXT J \n 140 NEXT I \n1000 GOTO 2000\n1699 REM FACTORIAL: A -> A\n1700 Z=1\n1705 FOR X=1 TO A \n1710 Z=Z*X\n1715 NEXT X \n1717 A=Z\n1720 RETURN \n1799 REM BINOMIAL: A B -> A \n1800 Y=A-B\n1810 GOSUB 1700 \n1820 W=A\n1830 A=B\n1840 GOSUB 1700 \n1850 V=A\n1860 A=Y\n1870 GOSUB 1700 \n1890 A=W/(V*A)\n1895 RETURN \n2000 END\n",
            "timestamp": "2021-04-23T18:14:03.890390Z",
            "expiry": null,
            "freeze_hits": false,
            "hits": 219,
            "size": 519,
            "author": 2,
            "language": 180
        },
        {
            "id": 360,
            "title": "fizzbuzz.focal",
            "body": "C-FOCAL,1969\n\n01.10 ASK \"TOP\", K\n01.20 FOR I=1,K; DO 02\n01.99 QUIT\n\n02.10 SET J=0\n02.20 SET A=I/3\n02.21 IF (A-FITR(A)) 2.30, 2.22, 2.30\n02.22 TYPE \"FIZZ\"\n02.23 SET J=J-1\n02.30 SET A=I/5\n02.31 IF (A-FITR(A)) 2.40, 2.32, 2.40\n02.32 TYPE \"BUZZ\"\n02.33 SET J=J-1\n02.40 IF (J) 2.51, 2.50, 2.50\n02.50 TYPE I\n02.51 TYPE !\n02.52 RETURN\n",
            "timestamp": "2021-04-28T02:32:25.566306Z",
            "expiry": null,
            "freeze_hits": false,
            "hits": 216,
            "size": 341,
            "author": 2,
            "language": null
        },
        {
            "id": 361,
            "title": "circular reference damn",
            "body": "class CV \n{\n  public int ID\n  public Employee Emp\n  ...\n}\n\nclass Employee \n{\n  public int ID\n  public virtual List<CV> CVs\n  ...\n}\n",
            "timestamp": "2021-04-29T00:32:39.337106Z",
            "expiry": null,
            "freeze_hits": false,
            "hits": 216,
            "size": 154,
            "author": 191,
            "language": 436
        },
        {
            "id": 364,
            "title": "should be in DST",
            "body": "DateTime {\n        ts: 127137600000,\n        _zone: IANAZone { zoneName: 'America/Los_Angeles', valid: true },\n        loc: Locale {\n          locale: 'en-US',\n          numberingSystem: null,\n          outputCalendar: null,\n          intl: 'en-US',\n          weekdaysCache: { format: {}, standalone: {} },\n          monthsCache: { format: {}, standalone: {} },\n          meridiemCache: null,\n          eraCache: {},\n          specifiedLocale: null,\n          fastNumbersCached: null\n        },\n        invalid: null,\n        weekData: null,\n        c: {\n          year: 1974,\n          month: 1,\n          day: 11,\n          hour: 5,\n          minute: 0,\n          second: 0,\n          millisecond: 0\n        },\n        o: -420,\n        isLuxonDateTime: true\n      }",
            "timestamp": "2021-05-01T00:57:54.106831Z",
            "expiry": null,
            "freeze_hits": false,
            "hits": 203,
            "size": 783,
            "author": 184,
            "language": 216
        },
        {
            "id": 365,
            "title": "pronouns by gender (french)",
            "body": "namespace ApplicationCore\n{\n    public static class StringUtils\n    {\n        public static string GetTitreCivilite(string genre)\n        {\n            var s = genre;\n            if (string.IsNullOrWhiteSpace(genre))\n            {\n                s = \"\";\n            }\n\n            switch (s.ToUpper())\n            {\n                case \"M\": return \"M\";\n                case \"F\": return \"Mme\";\n                default: return \"\";\n            }\n        }\n\n        public static string GetPronom(string genre)\n        {\n            var s = genre;\n            if (string.IsNullOrWhiteSpace(genre))\n            {\n                s = \"\";\n            }\n\n            switch (s.ToUpper())\n            {\n                case \"M\": return \"Il\";\n                case \"F\": return \"Elle\";\n                default: return \"Iel\";\n            }\n        }\n    }\n}\n",
            "timestamp": "2021-05-02T16:42:17.663901Z",
            "expiry": null,
            "freeze_hits": false,
            "hits": 213,
            "size": 874,
            "author": 194,
            "language": 436
        },
        {
            "id": 366,
            "title": "winny Favorites",
            "body": "Fave OS: Gentoo Linux.  It's super flexible and easy to configure for a specific use case.  It is easy to modify packages too in a controlled manageable way.  I deploy the same configuration across multiple hosts and ship binpkgs.  I do use Alpine or Debian where I don't need Gentoo's flexibility.  See my configs https://gitlab.com/winny-gentoo-ops\n\nFave editor: Emacs.  It's super flexible and ala carte.  If I want some functionality I can either install it or write my own elisp code and run them right away.  The environment of the editor is the same as the programming system of the editor, so modifying it for my needs is as simple as evaluating some code as needed.  See my configuration https://github.com/winny-/emacs.d\n\nFave Language:  I enjoy the heck out of writing Python and Racket.  Racket is basically Python but for Scheme/Lisp.  I enjoy learning new languages, with the last two being GNU Forth and Progress OpenEdge ABL.  See some cool code snippets from last Advent of Code in various languages: https://github.com/winny-/aoc/tree/master/2020\n\nFave browser: I enjoy using Qutebrowser because it is simple, easy to script, and keyboard accelerated.  Sometimes things break but I rather have a browser form around my uses than my forming around what the web-shits tell me I should be doing.  I do enjoy *some* web dev, so I do fire up other browsers for testing.\n\nFave shell:  Bash with my own configuration.  I do enjoy mksh quite a bit too, but Bash is just easier to use for an interactive shell.  I use sensible bash and some other configuration managed into a directory of files that are sourced in order.  See here https://gitlab.com/winny/dotfiles/-/tree/master/modules/bash/image",
            "timestamp": "2021-05-10T23:34:15.019349Z",
            "expiry": null,
            "freeze_hits": false,
            "hits": 197,
            "size": 1722,
            "author": 2,
            "language": null
        },
        {
            "id": 370,
            "title": "fib.py",
            "body": "\"\"\"\ninterview #2 question.\nIt revolves around a fibonacci programming question.\nThis fibonacci sequence starts with 0, 1.\n\"\"\"\n\nL = [0, 1]\n\n\ndef fib(n):\n    \"\"\"\n    Get the nth fibonacci sequence.\n    \"\"\"\n    while len(L) < n:\n        x = L[len(L)-1]\n        y = L[len(L)-2]\n        L.append(x + y)\n    return L[:n]\n\n\ndef fib2(params):\n    \"\"\"\n    Get a subsequence of fibonacci numbers.\n\n    params[0] should be less than or equal to the first element.\n    params[1] is the subsequence length.\n    \"\"\"\n    minimal, length = params  # Extract the parameters.\n    k = length\n    while True:\n        seq = fib(k)  # Get the kth fib sequence.\n        xs = seq[-length:]  # Get the last \"length\" elements\n        # print(xs)\n        if xs[0] >= minimal:  # Is the least element LTE to the minimal?\n            return xs\n        k += 1\n\ndef fib2v2(params):\n    \"\"\"\n    Get a subsequence of fibonacci numbers.\n\n    params[0] should be less than or equal to the first element.\n    params[1] is the subsequence length.\n\n    This version uses comprehensions to simplify the code.\n    \"\"\"\n    minimal, length = params  # Extract the parameters.\n    it = (fib(i)[-length:] for i in itertools.count(length))\n    return next(v for v in it if v[0] >= minimal)\n",
            "timestamp": "2021-05-29T03:50:33.372187Z",
            "expiry": null,
            "freeze_hits": false,
            "hits": 210,
            "size": 1251,
            "author": 213,
            "language": 471
        },
        {
            "id": 371,
            "title": "borg transcript",
            "body": "Just a terminal output describing my borg backup setup.\n\nstargate ~ # cat $(which backup-snowcrash)\n#!/bin/sh\nif [ -e /root/inhibit-backup ]; then\n        f=\n        [ -t 2 ] && f='-s'\n        logger $f \"$0: /root/inhibit-backup exists, skipping backup\"\n        exit\nfi\n/usr/bin/borgmatic -c /etc/borgmatic/snowcrash.yaml \"$@\"\nstargate ~ # cat /etc/borgmatic/snowcrash.yaml\nlocation:\n  source_directories:\n    - /home\n    - /etc\n    - /var/db/pkg\n    - /var/log\n    - /var/spool\n    - /var/lib/portage\n    - /var/lib/syncthing\n    - /root\n  exclude_patterns:\n    - /home/recovery\n  repositories:\n    - borg-snowcrash@silo.lan:repository.borg\n    - v10087wc@v10087wc.repo.borgbase.com:repo\n  one_file_system: true\nretention:\n  keep_daily: 7\n  keep_weekly: 4\n  keep_monthly: 6\nconsistency:\n  checks:\n    - repository\n    - archives\nstorage:\n  # Custom SSH Key in the config tree\n  ssh_command: ssh -i /etc/borgmatic/keys/snowcrash/ssh\n  # Password is in the repokey file\n  encryption_passcommand: cat /etc/borgmatic/keys/snowcrash/repokey\nstargate ~ # backup-snowcrash info\nborg-snowcrash@silo.lan:repository.borg: Displaying summary info for archives\nRepository ID: 9561d14a49296c5224a27624a81ba6d8c9dd25ddec6137cd5fbdd0ed3b32dc94\nLocation: ssh://borg-snowcrash@silo.lan/./repository.borg\nEncrypted: Yes (repokey)\nCache: /root/.cache/borg/9561d14a49296c5224a27624a81ba6d8c9dd25ddec6137cd5fbdd0ed3b32dc94\nSecurity dir: /root/.config/borg/security/9561d14a49296c5224a27624a81ba6d8c9dd25ddec6137cd5fbdd0ed3b32dc94\n------------------------------------------------------------------------------\n                       Original size      Compressed size    Deduplicated size\nAll archives:                2.67 TB              1.77 TB            250.54 GB\n                       Unique chunks         Total chunks\nChunk index:                 1334327             21394400\nv10087wc@v10087wc.repo.borgbase.com:repo: Displaying summary info for archives\nRepository ID: 07b8813fec72e4599b09fbdd8fe35affa51863d64c28986ee08629cd0df2d803\nLocation: ssh://v10087wc@v10087wc.repo.borgbase.com/./repo\nEncrypted: Yes (repokey)\nCache: /root/.cache/borg/07b8813fec72e4599b09fbdd8fe35affa51863d64c28986ee08629cd0df2d803\nSecurity dir: /root/.config/borg/security/07b8813fec72e4599b09fbdd8fe35affa51863d64c28986ee08629cd0df2d803\n------------------------------------------------------------------------------\n                       Original size      Compressed size    Deduplicated size\nAll archives:                2.46 TB              1.63 TB            191.31 GB\n                       Unique chunks         Total chunks\nChunk index:                 1139050             18308086\nstargate ~ # backup-snowcrash list\nborg-snowcrash@silo.lan:repository.borg: Listing archives\nstargate-2020-11-30T00:29:36.632081  Mon, 2020-11-30 00:29:37 [12676cccd3d3fdde5d7fcf0cb84a8983d68ec3644cc849c82215612e0ced2ddc]\nstargate-2020-12-31T00:47:25.454827  Thu, 2020-12-31 00:47:26 [102068e58a5fd400ef400e697ec417d04ff271b36255193f8e1d5021fa01dbda]\nstargate-2021-01-31T00:46:40.996029  Sun, 2021-01-31 00:46:42 [27befb5737eef11d92f24fe3343efe2b65d06b96580e23d8355020ce01d81938]\nstargate-2021-02-28T00:18:31.495615  Sun, 2021-02-28 00:18:32 [8d6ab99745c98a1d357ccd977accc2f69ccab84015060954fa9fd7188d5ca034]\nstargate-2021-03-31T12:50:14.122318  Wed, 2021-03-31 12:50:15 [1429c8e2bd36ac53c66677538d2f7c06646d131716d4df017c98b5e07aaf31ac]\nstargate-2021-04-30T09:16:11.701825  Fri, 2021-04-30 09:16:12 [391042f6e30f6785df5ac879d8ec036a2ced088ac1e87be097b441e8f44486a1]\nstargate-2021-05-07T09:10:33.923704  Fri, 2021-05-07 09:10:34 [82e2dada7077a074cd7e688787263f3b3abaf111977925935cff126de5d73d59]\nstargate-2021-05-16T19:46:02.003771  Sun, 2021-05-16 19:46:03 [c3b99131f5a3be3b44378e5b2dabd56fa28a3e59ba8e63b53a391d0da23b1a09]\nstargate-2021-05-22T00:11:12.790505  Sat, 2021-05-22 00:11:13 [804e812832f8c55e12a58e0cbc8d148f6a027f62d73fc4218accfdbbc3a3a003]\nstargate-2021-06-06T00:19:49.937128  Sun, 2021-06-06 00:19:50 [fad64152488418ccb0ee8d5ce1d6a2897d324af9b345d0266face2c18b7ab260]\nstargate-2021-06-13T00:08:50.186350  Sun, 2021-06-13 00:08:51 [25154372d673795386047c63eba5aa1afee1f63ba3e4df58054e43d17bc5f633]\nstargate-2021-06-14T09:43:53.053707  Mon, 2021-06-14 09:43:53 [f7f3a84c1f8197cda86c63f102512558574a3d579b6b9a7a6055fd2bf507e9c9]\nstargate-2021-06-15T09:53:35.748214  Tue, 2021-06-15 09:53:36 [7d90bb4ca9ace49c61cf92480c90ed0b281028183b11e6aee027531aedb5ac7f]\nstargate-2021-06-16T09:27:53.736157  Wed, 2021-06-16 09:27:54 [d0f8c4a7642b0b5ae4e708bbbac4ecc2e55bdf7c16b653b07303e3422dbc660d]\nstargate-2021-06-17T12:49:55.590189  Thu, 2021-06-17 12:49:56 [d0b09d767d19e1f33b4b9cc7dd4a20f23531b9e6fe100d44286e09e7152f0e15]\nstargate-2021-06-18T00:46:23.800597  Fri, 2021-06-18 00:46:24 [60f790dc01d91b8b47895d27655931ada3edc56ac0d780e312c6cf05048319ac]\nstargate-2021-06-20T19:40:11.952872  Sun, 2021-06-20 19:40:12 [e7c99ef01c7a706c4258997f19d73b14cda5ffbdd19376ec19a9ae309845f542]\nstargate-2021-06-24T10:45:29.876730  Thu, 2021-06-24 10:45:30 [62620e1ec1353a8357854e48b90ca6453427f299c3671eb038d528cd55946444]\nv10087wc@v10087wc.repo.borgbase.com:repo: Listing archives\nstargate-2021-03-31T13:29:59.727910  Wed, 2021-03-31 13:30:02 [ff12d979831a632b82dacfc055d5596527b3436f1efc1a417c688ae353aaa6b3]\nstargate-2021-04-30T10:01:52.772999  Fri, 2021-04-30 10:01:54 [30c5660b18aeaae386b9c5fb8a24eb351e206a8888670ab988063acb5299760a]\nstargate-2021-05-13T00:48:30.744407  Thu, 2021-05-13 00:48:32 [82461feeda36143791e0975e4872d8a4d1cf02b1a13953936fa8f966783faa0e]\nstargate-2021-05-23T16:23:59.904469  Sun, 2021-05-23 16:24:01 [13df5cd9131fd7ef85c586b7068127ae63fbb9a8877715401481b29d54291ff5]\nstargate-2021-05-30T21:24:17.103840  Sun, 2021-05-30 21:24:19 [31b4ad5f8dda03c0586d46563b354c16fe58007b1b6ed6a9f31530ca1c2b485e]\nstargate-2021-05-31T00:45:22.739837  Mon, 2021-05-31 00:45:25 [1fd3f67db9299166ef175e3fe813733ee58931f16f2c8233714e70ffd67a2053]\nstargate-2021-06-06T00:57:21.726136  Sun, 2021-06-06 00:57:23 [393c87eb916b3e810872bc2926d2d4fe636f8ebb8144ada27871125a8c230ccf]\nstargate-2021-06-13T00:47:03.031453  Sun, 2021-06-13 00:47:05 [8eb3245a6b497f6523a9c4b7835a87ba8f0fc59ee15a16dea928871bcd94c122]\nstargate-2021-06-14T10:28:40.443045  Mon, 2021-06-14 10:28:42 [982dab4f370f5bfc3a86c6eb6fc79df51834d35151401cff483dfa4cf91c6501]\nstargate-2021-06-15T10:38:56.349259  Tue, 2021-06-15 10:38:58 [d0983fb94b38adceb0a54dbab31c5bcbb2693022bee262daac32773725e64142]\nstargate-2021-06-16T10:12:35.766242  Wed, 2021-06-16 10:12:37 [c1fbbf60256e78042dd774eade6426dac08684333877e5705cba183c6723c63d]\nstargate-2021-06-17T13:32:33.699339  Thu, 2021-06-17 13:32:35 [39e327dc4d85219fd353cc511d1e9037fcc150de93905b6eb3bf860e8b8083d1]\nstargate-2021-06-18T01:26:23.312063  Fri, 2021-06-18 01:26:25 [0a8f523eeea054733fee5913d9e3848aad4373b1d74ec3da032fef0198625383]\nstargate-2021-06-20T20:18:51.202639  Sun, 2021-06-20 20:18:53 [980bdbcb6dfbb2ff189b72e9e25951d4da8ee1ab35488f806fdf50783ff95b76]\nstargate-2021-06-24T11:27:41.874394  Thu, 2021-06-24 11:27:44 [fa8ac3fdc4818a5f4553abf88e1288d7553a807d205ecd37c435a90baf100ba8]\n",
            "timestamp": "2021-06-25T03:56:48.226082Z",
            "expiry": null,
            "freeze_hits": false,
            "hits": 182,
            "size": 7080,
            "author": 223,
            "language": null
        },
        {
            "id": 374,
            "title": "kiwi website",
            "body": "https://html-css-js.com/?html=%3C!DOCTYPE%20html%3E%0A%3Chtml%3E%0A%3Chead%3E%0A%3Ctitle%3EHTML%20CSS%20JS%3C/title%3E%0A%3C/head%3E%0A%3Cbody%3E%0A%20%20%3Ch1%3E%0A%20%20%20%20a%20kiwi%20personal%20home%20page%0A%20%20%3C/h1%3E%0A%3Cul%3E%0A%20%20%3Cli%3Emy%20name%20is%20kiwi%3C/li%3E%0A%20%20%3Cli%3Eportefolio%3C/li%3E%0A%20%20%3Cli%3Epasstimes%3C/li%3E%0A%20%20%3C/ul%3E%0A%20%3Cp%3E%0A%20%20%20I%20hate%20Chads%20and%20I%20am%20entitled%20to%20a%20Stacy.%0A%20%20%3C/p%3E%0A%3C/body%3E%0A%3C/html%3E&css=/*%20CSS%20styles%20*/%0Ah1%20%7B%0Afont-family:%20Impact,%20sans-serif;%0Acolor:%20#CE5937;%0A%7D%0Ap%20%7B%0A%20%20padding-left:%201em%0A%7D%0Aul%20%7B%0A%0A%20%20padding-left:%203em%0A%7D%0A%09%20%20&js=//%20JavaScript%0Adocument.getElementById('welcome').innerText%20+=%20%0A%22%20Editors%22;%0A",
            "timestamp": "2021-08-10T03:05:46.938074Z",
            "expiry": null,
            "freeze_hits": false,
            "hits": 157,
            "size": 821,
            "author": 242,
            "language": null
        },
        {
            "id": 376,
            "title": "/etc/grub.d/40_custom",
            "body": "#!/bin/sh\nexec tail -n +3 $0\n# This file provides an easy way to add custom menu entries.  Simply type the\n# menu entries you want to add after this comment.  Be careful not to change\n# the 'exec tail' line above.\nmenuentry \"System shutdown\" {\n\techo \"System shutting down...\"\n\thalt\n}\nmenuentry \"System restart\" {\n\techo \"System rebooting...\"\n\treboot\n}\n\nif [ ${grub_platform} == \"efi\" ]; then\n\tmenuentry \"Firmware setup\" {\n\t\tfwsetup\n\t}\nfi\n\n# menuentry 'GaryOS' {\n# \tload_video\n# \tif [ \"x$grub_platform\" = xefi ]; then\n# \t\tset gfxpayload=keep\n# \tfi\n# \tinsmod gzio\n# \tinsmod part_gpt\n# \tinsmod fat\n# \tif [ x$feature_platform_search_hint = xy ]; then\n# \t\tsearch --no-floppy --fs-uuid --set=root  C72E-C0F7\n# \telse\n# \t\tsearch --no-floppy --fs-uuid --set=root C72E-C0F7\n#     \tfi\n# \tlinux gary-os-v3.0-generic_64.kernel\n# }\n",
            "timestamp": "2021-08-12T17:28:34.985006Z",
            "expiry": null,
            "freeze_hits": false,
            "hits": 176,
            "size": 838,
            "author": 2,
            "language": 179
        },
        {
            "id": 377,
            "title": "loadavg.5s.bash",
            "body": "#!/usr/bin/env bash\nset -eu -o pipefail\n\n# The optional \"s\" in \"averages\" is to accommodate differences in BSD vs GNU\n# uptime.\n[[ $(uptime) =~ load\\ averages?:\\ (.*) ]]\ns=\"${BASH_REMATCH[1]}\"\necho \"${s//,/}\"",
            "timestamp": "2021-08-20T22:16:06.293568Z",
            "expiry": null,
            "freeze_hits": false,
            "hits": 165,
            "size": 223,
            "author": 240,
            "language": 179
        },
        {
            "id": 378,
            "title": "making a pipeline able to git clone a private repo on gitlab",
            "body": "build-job:       # This job runs in the build stage, which runs first.\n  stage: build\n  before_script:\n    # install ssh-agent\n    - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'\n    # run ssh-agent\n    - eval $(ssh-agent -s)\n    # add ssh key stored in SSH_PRIVATE_KEY variable to the agent store\n    - ssh-add <(echo \"$SSH_PRIVATE_KEY\")\n    # disable host key checking (NOTE: makes you susceptible to man-in-the-middle attacks)\n    # WARNING: use only in docker container, if you use it with shell you will overwrite your user's ssh config\n    - mkdir -p ~/.ssh\n    - echo -e \"Host *\\n\\tStrictHostKeyChecking no\\n\\n\" > ~/.ssh/config\n  script:\n    - git clone git@gitlab.com:socraticdev/tf-modules-vendingmachine.git\n    - echo \"Compiling the code...\"\n    - echo \"Compile complete.\"\n",
            "timestamp": "2021-09-04T23:38:10.060715Z",
            "expiry": null,
            "freeze_hits": false,
            "hits": 165,
            "size": 878,
            "author": 284,
            "language": 157
        },
        {
            "id": 380,
            "title": "customer project consumes module",
            "body": "module \"simples3\" {\n  source = \"git@gitlab.com:socraticdev/tf-modules-vendingmachine.git\"\n  bucket_name = \"rootmode33k3433\"\n  region = \"ca-central-1\"\n}\n",
            "timestamp": "2021-09-05T00:44:53.644702Z",
            "expiry": null,
            "freeze_hits": false,
            "hits": 178,
            "size": 184,
            "author": 285,
            "language": 49
        }
    ]
}