Skip to content

Instantly share code, notes, and snippets.

View InukVT's full-sized avatar
🤔
Saving my monthly commit for something good

Inuk InukVT

🤔
Saving my monthly commit for something good
View GitHub Profile
@InukVT
InukVT / 404.php
Last active January 12, 2017 13:52
<?php
$post_title = "404";
$post_content = "You reached somewhere you shouldn't, consider checking the link, or send a message to the appropriate people!";
$post_date = date('Y-m-d');
?>
<div
class="page_content">
<h2>
<?= $post_title ?>
</h2>
@InukVT
InukVT / login.php
Last active January 12, 2017 18:00
$username = $_POST['username'];
$password = $_POST['password'];
$username = stripslashes($username);
$username = mysqli_real_escape_string($db, $username);
$sql = "SELECT * FROM users WHERE username='$username'";
$res = mysqli_query($db, $sql) or die(mysqli_error($db));
if (mysqli_num_rows($res) > 0)
{
$row = mysqli_fetch_assoc($res);
$hash = $row['password'];
@InukVT
InukVT / Clang -v
Last active January 22, 2017 11:07
clang version 3.9.1 (tags/RELEASE_391/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux-gnu/6.3.1
Found candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/6.3.1
Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1
Found candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/6.3.1
Selected GCC installation: /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/6.3.1
Candidate multilib: .;@m64

Keybase proof

I hereby claim:

  • I am inukinator on github.
  • I am inukinator (https://keybase.io/inukinator) on keybase.
  • I have a public key ASCfwoLPck0DyTnVTwXpfIMlWcI6mjues6pKscdo-Kg6ZAo

To claim this, I am signing this object:

func getHandler(_ req: Request)
throws -> Future<HTTPResponse>
{
//return try req.parameters.next(Redirect.self)
let query = try req.parameters.next(String.self)
return Redirect
.query(on: req)
.filter(\.title == query)
.first()
<MediaContainer size="21" allowCameraUpload="0" allowChannelAccess="1" allowMediaDeletion="1" allowSharing="1" allowSync="0" allowTuners="1" backgroundProcessing="1" companionProxy="1" diagnostics="logs,databases,streaminglogs" eventStream="1" friendlyName="PlexMediaServer" hubSearch="1" itemClusters="1" livetv="6" machineIdentifier="af56b29dd01d0b73ec51f16e9233db5f12d57376" mediaProviders="1" multiuser="1" myPlex="1" myPlexMappingState="unknown" myPlexSigninState="none" myPlexSubscription="0" photoAutoTag="1" platform="FreeBSD" platformVersion="11.1-STABLE (FreeBSD 11.1-STABLE #0 r321665+e0c4ca60dfc(freenas/11.1-stable): Wed May 30 14:18:20 EDT 2018 root@nemesis.tn.ixsystems.com:/freenas-11-releng/freenas/_BE/objs/freenas-11-releng/freenas/_BE/os/sys/FreeNAS.amd64)" pluginHost="1" readOnlyLibraries="0" requestParametersInCookie="1" streamingBrainVersion="2" sync="1" transcoderActiveVideoSessions="0" transcoderAudio="1" transcoderLyrics="1" transcoderPhoto="1" transcoderSubtitles="1" transcoderVideo="1" trans
convert -compress lzw /Users/inuk/Pictures/Export/KissyEmiOnBrigde.tif /Users/inuk/Pictures/Background/KissyEmiOnBrigde.tif
convert: Unknown field with tag 34864 (0x8830) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/997.
convert: Unknown field with tag 34866 (0x8832) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/997.
convert: Incompatible type for "FileSource"; tag ignored. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/997.
convert: Incompatible type for "SceneType"; tag ignored. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/997.
convert: Unknown field with tag 42034 (0xa432) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/997.
convert: Unknown field with tag 42036 (0xa434) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/997.
convert: Unknown field with tag 42240 (0xa500) encountered. `TIFFReadCustomDirectory' @ warning/tiff.c/TIFFWarnings/997.
@InukVT
InukVT / b2.swift
Last active October 30, 2018 09:34
import Vapor
import Service
import Crypto
import Foundation
private var b2CacheKey = "__b2_authorization_token"
public struct B2Config: Service {
public let keyID: String
public let applicationID: String
//
// ePub.swift
// Read
//
// Created by Bastian Inuk Christensen on 25/02/2019.
// Copyright © 2019 Bastian Inuk Christensen. All rights reserved.
//
import Foundation
import UIKit
import WebKit
import Foundation
import Splash
import Leaf
final class LeafSplash: TagRenderer {
init() { }
func render(code: TagContext) throws -> EventLoopFuture<TemplateData> {
let highlighter = SyntaxHighlighter(format: HTMLOutputFormat())
let string = highlighter.highlight(code)