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
{ | |
"version": 1, | |
"variables": [{ | |
"names": ["id", "date", "text"] , | |
"values": [ | |
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 | |
if [ -z "$1" ] | |
then | |
echo "Specify the source directory." | |
echo "./joincbr.sh SOURCE_DIRECTORY" | |
exit 0 | |
fi | |
SOURCE_DIRECTORY=$1 |
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
// Based on https://gist.github.com/steipete/1144242 | |
import UIKit | |
extension UIImage { | |
func forceLoad() -> UIImage { | |
guard let imageRef = self.cgImage else { | |
return self //failed | |
} |
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 | |
if [ -z "$1" ] | |
then | |
echo "Specify the name of the file to create and the directory with the cbr files." | |
echo "./joincbr.sh YOUR_COMIC_FILE SOURCE_DIRECTORY" | |
exit 0 | |
fi | |
TARGET_NAME=$1 |
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 | |
LAST_TEXT= | |
while : | |
do | |
CURRENT_TEXT=`pbpaste` | |
if [ "$LAST_TEXT" != "$CURRENT_TEXT" ] | |
then | |
echo $CURRENT_TEXT |
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 bs4 import BeautifulSoup | |
import requests | |
import sys | |
def scrap_magnet(url): | |
try: | |
html = requests.get(url) | |
soup = BeautifulSoup(html.text, 'html.parser') |
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 | |
if [ -z "$1" ] | |
then | |
echo "Usage:" | |
echo "Generate profile:" | |
echo "sudo ./ovpngen.sh your_profile_name" | |
echo "Revoke profile:" | |
echo "sudo ./ovpngen.sh -r your_profile_name" | |
exit 0 |