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 | |
cd $1 | |
docker-compose stop nginx | |
docker-compose run --rm -p 443:443 nginx certbot renew --post-hook "mv /etc/letsencrypt/keys/0001_key-certbot.pem /etc/letsencrypt/keys/0000_key-certbot.pem" | |
docker-compose start nginx |
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
0x7e4A82344200a504782e36E2b077CED92594ECAF |
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
0xd9Ac5F5177AA6a075921b149D8aa26717267D241 |
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 | |
import binascii | |
import json | |
import socket | |
import ssl | |
import struct | |
import sys | |
def pack_payload(title, message, data=None, sound='Default', badge=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
from __future__ import print_function | |
import datetime | |
import json | |
import httplib2 | |
from apiclient import discovery | |
from oauth2client import client | |
from oauth2client import tools | |
from oauth2client.file import Storage |
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
import glob | |
from datetime import datetime | |
from os import makedirs | |
from shutil import copy | |
import exifread | |
from path import path | |
def process_file(file_path, dest_dir): |
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 | |
import sys | |
from urllib.request import urlopen | |
import json | |
ERR_SUCCESS = 0 | |
ERR_UNKNOWN = 1 | |
ERR_MAKES_FILE_NOT_FOUND = 2 |
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
var fs = require('fs'); | |
var mime = require('mime'); | |
function file_type_search(path, mime_match, callback_all, callback_each) { | |
var file_list = []; | |
var level = 0; | |
if (typeof callback_all !== 'function') callback_all = false; | |
if (typeof callback_each !== 'function') callback_each = false; |
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
angular.module('Nuclight.Services.Facebook', []) | |
.provider('facebook', function () { | |
var fb_options = {}; | |
var fb_lang = 'en_US'; | |
this.init = function (options, lang) { | |
fb_options = options; | |
if (lang) fb_lang = lang; | |
}; |
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
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.concurrent.*; | |
public class T_ExecutorService { | |
public static void main(String[] args) throws InterruptedException { | |
ExecutorService ex = Executors.newFixedThreadPool(20); | |
System.out.printf("! Creating Executing service: %s%n", ex.getClass().getName()); | |
System.out.println("! Submitting tasks"); |
NewerOlder