Install the OpenSSL on Debian based systems
sudo apt-get install openssl
import javax.crypto.Mac; | |
import javax.crypto.spec.SecretKeySpec; | |
public class HMacTest { | |
public static final String ALGORITHM = "HmacSHA256"; | |
public static String calculateHMac(String key, String data) throws Exception { | |
Mac sha256_HMAC = Mac.getInstance(ALGORITHM); |
#!/usr/bin/env bash | |
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/ | |
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c | |
# http://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver | |
# http://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception | |
# http://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal | |
# http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04 | |
# Versions | |
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE` |
{ | |
"AC": "+247-####", | |
"AD": "+376-###-###", | |
"AE": "+971-5#-###-####", | |
"AE": "+971-#-###-####", | |
"AF": "+93-##-###-####", | |
"AG": "+1(268)###-####", | |
"AI": "+1(264)###-####", | |
"AL": "+355(###)###-###", | |
"AM": "+374-##-###-###", |
##### Windows | |
# Windows thumbnail cache files | |
Thumbs.db | |
Thumbs.db:encryptable | |
ehthumbs.db | |
ehthumbs_vista.db | |
# Dump file | |
*.stackdump |
#This gist is related to blog post https://mohitgoyal.co/2017/02/08/securing-your-jenkins-environment-and-configure-for-auditing/ | |
# Generate certificate csr | |
openssl req -new > new.ssl.csr | |
# Create a key file for generating certificate | |
openssl rsa -in privkey.pem -out new.cert.key | |
# Create a csr file using the key file for 635 days | |
openssl x509 -in new.ssl.csr -out new.cert.cert -req -signkey new.cert.key -days 365 |
ASUS makes a pretty handy Chromebox, and it's handy not just because it's running ChromeOS, it's handy because of everything you can do to the box itself.
The ASUS Chromebox is easily upgradeable, and capable of running just about any linux distribution.
The model I picked up, the M004U has the following specs:
# ref: http://superuser.com/a/836346 | |
Dim objResult | |
Set objShell = WScript.CreateObject("WScript.Shell") | |
i = 0 | |
Do While i = 0 | |
objResult = objShell.sendkeys("{NUMLOCK}{NUMLOCK}") | |
Wscript.Sleep (10000) |
using System; | |
using System.Net.Http; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
/// <summary> | |
/// </summary> | |
public class MessageLoggingHandler : DelegatingHandler | |
{ |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |