🏳️🌈
This file contains 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
[[source]] | |
url = "https://pypi.org/simple" | |
verify_ssl = true | |
name = "pypi" | |
[packages] | |
requests = "*" | |
[dev-packages] |
This file contains 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
#!/usr/bin/env python3 | |
from os import makedirs, mkdir | |
import requests | |
# Generate a personal token for GitHub and replace it here. | |
GITHUB_USERNAME='username' | |
GITHUB_TOKEN='token' | |
def get_gists(page=1): | |
gist_list_url = 'https://api.github.com/gists' |
This file contains 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
;; This is an operating system configuration template | |
;; for a "bare bones" setup, with no X11 display server. | |
(use-modules (gnu)) | |
(use-service-modules networking ssh) | |
(use-package-modules screen ssh) | |
(operating-system | |
(host-name "komputilo") | |
(timezone "Europe/Berlin") |
This file contains 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
package main | |
import ( | |
"encoding/hex" | |
"os" | |
"strconv" | |
) | |
func main() { | |
f, err := os.OpenFile("colours.css", os.O_WRONLY, 0600) |
This file contains 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
# Useful for parsing workflow API data | |
# ./main.py gh/gmemstr/circleci-koans | |
import requests | |
import sys | |
import json | |
import os | |
def GetWorkflowData(project, token): | |
url = "https://circleci.com/api/v2/insights/{project}/workflows/workflow?view=full&circle-token={token}".format( | |
project=project, token=token) |
This file contains 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
<?php | |
class Database { | |
// DB Parameters | |
private $host = 'localhost'; | |
private $db_name = 'tournamentProject'; | |
private $username = 'root'; | |
private $password = ''; | |
private $conn; | |
// DB Connect |
This file contains 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
#!/usr/bin/python3 | |
# This script requires python3 and BeautifulSoup. | |
# BS can be installed with pip3 install beautifulsoup4. | |
from bs4 import BeautifulSoup | |
import json | |
import urllib.request | |
import sys | |
import os | |
import io |
This file contains 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
#!/usr/bin/python3 | |
# | |
# Print geolocation of IP collection file ips.txt file. | |
import requests | |
import json | |
api_key = "" | |
base_url = "http://api.ipstack.com/" | |
results = dict() |
This file contains 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
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 | |
Content-Length: 0 | |
77.159.81.103 - - [10/Sep/2019 12:50:21] "GET / HTTP/1.1" 200 - | |
INFO:root:GET request, | |
Path: /global-protect/login.esp | |
Headers: | |
Host: 157.245.46.181 |
This file contains 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
msgid "" | |
msgstr "" | |
"Project-Id-Version: 1.0\n" | |
"Report-Msgid-Bugs-To: gsimmer@acromedia.com\n" | |
"POT-Creation-Date: 2019-05-13 14:52-0700\n" | |
"PO-Revision-Date: 2019-05-13 14:52-0700\n" | |
"Last-Translator: Gabriel Simmer <gsimmer@acromedia.com>\n" | |
"Language-Team: Gabriel Simmer <gsimmer@acromedia.com>\n" | |
"MIME-Version: 1.0\n" | |
"Content-Type: text/plain; charset=UTF-8\n" |
NewerOlder