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
### Keybase proof | |
I hereby claim: | |
* I am akinazuki on github. | |
* I am akinazuki (https://keybase.io/akinazuki) on keybase. | |
* I have a public key ASCkki5WGdZcQ7IhbUPL8u-0nJrvfFectE9b28Uu0eoFWAo | |
To claim this, I am signing this object: |
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 | |
credentials_temp_fifo_file=/tmp/.$$-credentials.pipe | |
openvpn_temp_fifo_file=/tmp/.$$-openvpn.pipe | |
mkfifo $credentials_temp_fifo_file | |
default_op_path='op://empty/item' # 1Password item path | |
openvpn_exists=$(which openvpn) | |
op_cli_exists=$(which op) | |
if [ -z "$openvpn_exists" ]; then | |
echo "OpenVPN CLI not found. Please install OpenVPN." |
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 | |
# -*- coding: utf-8 -*- | |
__author__ = 'qyh' | |
__date__ = '2018/10/16 9:22' | |
import binascii | |
from importlib.resources import path | |
from ntpath import join | |
import struct | |
import base64 |
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.Base64; | |
class Main { | |
public static String key = "Encrypt"; | |
public static void main(String[] args) { | |
if (args[0].equals("decrypt")) { | |
System.out.println(decrypt(args[1]));; | |
}else{ | |
System.out.println(encrypt(args[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
tls = require('tls'); | |
// callback for when secure connection established | |
function connected(stream) { | |
if (stream) { | |
// socket connected | |
stream.write("GET / HTTP/1.0\n\rHost: encrypted.google.com:443\n\r\n\r"); | |
} else { | |
console.log("Connection 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
#save as /etc/chatscripts/sim900 | |
ABORT "BUSY" | |
ABORT "VOICE" | |
ABORT "NO CARRIER" | |
ABORT "NO DIALTONE" | |
ABORT "NO DIAL TONE" | |
ABORT "NO ANSWER" | |
ABORT "DELAYED" | |
REPORT "CONNECT" | |
TIMEOUT 6 |
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 JSON { | |
public static function Decode($string, $return_array = false, $depth = 512, $options = 0) { | |
$res = json_decode($string, $return_array, $depth, $options); | |
if (json_last_error() !== JSON_ERROR_NONE) { | |
throw new Exception(json_last_error(), json_last_error_msg()); | |
} | |
return $res; | |
} | |
public static function Encode($array, $options = 0, $depth = 512) { |
NewerOlder