This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import UIKit | |
public enum PlausibleError: Error { | |
case domainNotSet | |
case invalidDomain | |
case eventIsPageview | |
} | |
public class Plausible { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func loadImageChannel(pathPicture string, images chan image.Image, errors chan error) { | |
file, err := os.Open(pathPicture) | |
if err != nil { | |
log.Fatalf("failed to open: %s", err) | |
} | |
// Only the first 512 bytes are used to sniff the content type. | |
buffer := make([]byte, 512) | |
_, err = file.Read(buffer) | |
if err != nil { | |
errors <- err |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//array with all Date formats | |
["d.M.yy, h:mm:ss a", | |
"M/d/y GGGGG, HH:mm:ss", | |
"y-MM-dd HH.mm.ss", | |
"d.M.yy H:mm:ss", | |
"d/M/yy, HH:mm:ss", | |
"dd/MM/yy h:mm:ss a", | |
"d-M-yy h:mm:ss a", | |
"d/M/y, H:mm:ss", | |
"dd/MM/yy, HH:mm:ss", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
NETWORK=$(fing -r 1) | |
#grepIP | |
IPDubs=$(echo "$NETWORK" | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}') | |
#Remove dubs | |
IP=$(echo "$IPDubs" | sort -u) | |
#scanports | |
PORT80OPEN=$(echo "$IP" | xargs nmap -p80 --open | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}') | |
#openInchrome | |
while read line; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const htmlparser = require("htmlparser"); | |
const fs = require("fs") | |
const cheerio = require('cheerio') | |
const netscape = require('netscape-bookmarks'); | |
const path = require("path"); | |
let template = { | |
Mia: { | |
contents: {} | |
}, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <printf.h> | |
#define GRN "\x1B[32m" | |
#define YEL "\x1B[33m" | |
#define RESET "\x1B[0m" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
char *extract(char *input, char *pattern); | |
void extract2(char *input, char **output,char *pattern); | |
int findPattern(char *input, char *pattern); |