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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<body> | |
<script type="text/javascript" src="//stuk.github.io/jszip/dist/jszip.js"></script> | |
<script type="text/javascript" src="//stuk.github.io/jszip-utils/dist/jszip-utils.js"></script> |
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 | |
/** | |
* JSON Web Token implementation | |
* | |
* Minimum implementation used by Realtime auth, based on this spec: | |
* http://self-issued.info/docs/draft-jones-json-web-token-01.html. | |
* | |
* @author Neuman Vong <neuman@twilio.com> | |
*/ | |
class JWT |
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
Show hidden characters
{ | |
"compilerOptions": { | |
"noImplicitAny": true, | |
"target": "ES5", | |
"module": "ES2015" | |
} | |
} |
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 bash | |
# | |
# Credit: https://gist.github.com/SamanSh999/3ee8cad2859a900b7e36e1cff4204005 | |
# | |
# Instruction(macOS only): | |
# | |
# 1. Save this script to your home folder | |
# 2. Grant permission to script: chmod +x ~/bing-daily-wallpaper.sh | |
# 3. Install homebrew if you don't have it: https://brew.sh/ | |
# 4. Install jq: brew install jq |
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 | |
/* | |
Install: composer require phpoffice/phpspreadsheet:dev-develop | |
Github: https://github.com/PHPOffice/PhpSpreadsheet/ | |
Document: https://phpspreadsheet.readthedocs.io/ | |
*/ | |
require 'vendor/autoload.php'; | |
use PhpOffice\PhpSpreadsheet\IOFactory; |
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
Install Postfix and Procmail: | |
yum install postfix | |
yum install procmail | |
(Optional)Setup mail relay: /etc/postfix/main.cf | |
relayhost = [Relay server IP] | |
Setup procmail: /etc/postfix/main.cf | |
mailbox_command = /usr/bin/procmail |
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
/** | |
* JavaScript code to detect available availability of a | |
* particular font in a browser using JavaScript and CSS. | |
* | |
* Author : Lalit Patel | |
* Website: http://www.lalit.org/lab/javascript-css-font-detect/ | |
* License: Apache Software License 2.0 | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* Version: 0.15 (21 Sep 2009) | |
* Changed comparision font to default from sans-default-default, |
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
1 apt update | |
2 apt upgrade | |
3 apt install shadowsocks-libev | |
4 nano /etc/shadowsocks-libev/config.json | |
{ | |
"server":"SERVER-IP-ADDRESS", | |
"server_port":1984, | |
"local_port":1080, | |
"password":"PASSWORD", |
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
git clone https://github.com/rofl0r/proxychains-ng.git | |
cd proxychains-ng | |
./configure --prefix=/usr --sysconfdir=/etc | |
make | |
sudo make install | |
sudo make install-config | |
sudo nano /etc/proxychains.conf | |
add this code to the end of proxychains.conf: socks5 127.0.0.1 1080 | |
proxychains4 open -a /Applications/Backup\ and\ Sync.app |
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
// step 1, edit the code: | |
document.querySelector('.f8r-title').append('🎩'); | |
setInterval(() => { | |
const cards = document.querySelectorAll("MD-CARD-CONTENT"); | |
cards.forEach((card) => { | |
if (card.querySelector("img") === null && card.querySelector("a.say") === null) { | |
const sayTag = document.createElement("a"); | |
sayTag.className = "say"; |
NewerOlder