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 logging | |
import shutil | |
from typing import List | |
import requests | |
import os | |
import base64 | |
# --- Configuration --- | |
GITLAB_URL = "https://gitlab.com" # Your GitLab instance URL | |
PRIVATE_TOKEN = "iseedeadpeople" # Your GitLab personal access token |
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
# Settings ------------------------------- | |
$BUTLER_PATH = "$ENV:AppData\itch\apps\butler\butler.exe" | |
$GODOT_PATH = "C:\Program Files `(`x86`)\Steam\steamapps\common\Godot Engine\godot.windows.opt.tools.64.exe" | |
$ITCH_USER = "JohnyDoe" | |
$ITCH_GAME = "PorkSouls" | |
$ITCH_CHANNEL = "web" | |
$GODOT_TEMPLATE = "`"Web`"" | |
$EXPORT = "--export-debug" # "--export-debug" or "--export-release" | |
$BUILD_DIR = "build" |
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
# Apple Pay Merchant Identity | |
openssl genrsa -out identity.key 2048 | |
openssl req -new -key identity.key -out identity.csr | |
# Apple Pay Payment Processing | |
openssl ecparam -out processing.key -name prime256v1 -genkey | |
openssl req -new -key processing.key -out processing.csr |
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 | |
# folder wth images | |
IMAGE_DIRECTORY="test_footage" | |
# image extension | |
IMAGE_EXT="jpg" | |
#SLIDE TIME IN SECONDS | |
SLIDE_DURATION=2 |
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
// adressing this issue https://github.com/safwanrahman/django-webpush/issues/66 | |
function urlB64ToUint8Array(base64String) { | |
const padding = '='.repeat((4 - base64String.length % 4) % 4); | |
const base64 = (base64String + padding) | |
.replace(/\-/g, '+') | |
.replace(/_/g, '/'); | |
const rawData = window.atob(base64); | |
const outputArray = new Uint8Array(rawData.length); |
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
# your youtube name/key | |
KEY="1234-5678-9101-1121" | |
# your rtsp url | |
RTSP="rtsp://user:[email protected]:1234/cam/etc" | |
# youtube rtmp url | |
YTUBE="rtmp://a.rtmp.youtube.com/live2" | |
ffmpeg \ |
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
git ls-files | while read file ; do du "$file" ; done | awk '{i+=$1} END {print i/1024}' |
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
for file in $(find ./ -name "*.scss"); | |
do n="$(echo $file | sed 's/.scss$/.sass/')"; | |
sass-convert $file $n; | |
rm $file; | |
done |