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 python | |
# -*- coding: utf-8 -*- | |
import sys | |
if len(sys.argv) < 2: print("Please supply a log(s) as an argument!"); sys.exit() | |
import re | |
for fileLog in sys.argv[1:]: | |
if fileLog[-4:].lower() == ".dat": print("Skipping " + fileLog + " for protection..."); continue | |
logsArr = [] | |
lineParser = re.compile(r'L (\d{2}\/\d{2}\/\d{4}) - (\d{2}:\d{2}:\d{2}): (.*)') | |
nameParser = re.compile(r'"(?:(.+?)<\d+?><(.+?)><(.+?)>)"') |
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
#!/bin/bash | |
echo Installing ntfs-3g driver! Notice, computer will restart twice during installation | |
if [ $EUID -ne 0 ]; then | |
echo Requesting sudo! | |
exec sudo $0 | |
fi | |
echo Disabling system integrity protection | |
csrutil disable |
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
/* | |
https://github.com/auscompgeek/fb-messenger-dark | |
*/ | |
/* ==UserStyle== | |
@name Facebook Messenger - the dark side | |
@namespace vovo.id.au | |
@version 2019.11.14 | |
@license CC-BY-SA-4.0 | |
==/UserStyle== */ |
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
##### STAGE 1 ##### | |
FROM composer as composer | |
# Copy composer files from project root into composer container's working dir | |
COPY composer.* /app/ | |
# Copy database directory for autoloader optimization | |
COPY database /app/database |
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
worker_processes 8; | |
error_log stderr warn; | |
pid /run/nginx.pid; | |
events { | |
worker_connections 4096; | |
} | |
http { |
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
@echo off | |
:: Drag the video file onto this file to downmix | |
rem Extract stereo stream | |
ffmpeg -i "%~1" -vn -acodec copy "%~1.stereo.aac" -y | |
rem Downmix stereo to mono | |
ffmpeg -i "%~1.stereo.aac" -ac 1 "%~1.mono.aac" -y |
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
#!/bin/bash | |
pushd /tmp/ > /dev/null | |
curl -sL https://github.com/gohugoio/hugo/releases/download/v$1/hugo_$1_Linux-64bit.tar.gz | tar -zxf - | |
chmod +x hugo | |
mv hugo "hugo-$1" | |
popd > /dev/null |
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
life360_username="---" | |
life360_password="---" | |
import requests | |
urlPrefix = "https://api.life360.com/v3/" | |
print("Authorising...") | |
auth = requests.post(urlPrefix + "oauth2/token.json",headers=dict(Authorization="Basic cFJFcXVnYWJSZXRyZTRFc3RldGhlcnVmcmVQdW1hbUV4dWNyRUh1YzptM2ZydXBSZXRSZXN3ZXJFQ2hBUHJFOTZxYWtFZHI0Vg=="), data=dict(grant_type="password",username=life360_username,password=life360_password)) | |
assert auth.status_code ==200 |
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
@echo off | |
title youtube-dl %* | |
cd /d %USERPROFILE%\Downloads | |
youtube-dl --embed-thumbnail --extract-audio --audio-format mp3 -o "%%(title)s.%%(ext)s" %* |
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
// ==UserScript== | |
// @name GST in Australia | |
// @namespace http://tampermonkey.net/aliexpress-gst | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.aliexpress.com/* | |
// @icon https://www.google.com/s2/favicons?domain=aliexpress.com | |
// @grant none | |
// ==/UserScript== |
OlderNewer