Discover gists
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
function heidiDecode(hex) { | |
var str = ''; | |
var shift = parseInt(hex.substr(-1)); | |
hex = hex.substr(0, hex.length - 1); | |
for (var i = 0; i < hex.length; i += 2) | |
str += String.fromCharCode(parseInt(hex.substr(i, 2), 16) - shift); | |
return str; | |
} | |
document.write(heidiDecode('755A5A585C3D8141786B3C385E3A393')); |
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
# YouTube (english) : https://www.youtube.com/watch?v=FtU2_bBfSgM | |
# YouTube (french) : https://www.youtube.com/watch?v=VjnaVBnERDU | |
# | |
# On your laptop, connect to the Mac instance with SSH (similar to Linux instances) | |
# | |
ssh -i <your private key.pem> ec2-user@<your public ip address> | |
# | |
# On the Mac |
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
name: Create a Jira Issue | |
on: | |
issues: | |
types: | |
- opened | |
- reopened | |
jobs: | |
create-jira-issue: | |
runs-on: ubuntu-latest |
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
// webscrapper | |
(async function () { | |
const delay = 2000; | |
const table = document.querySelector("table.history_table tbody"); | |
const tableSecondChildren = table.children[1]; | |
tableSecondChildren.click(); | |
await new Promise(function (resolve) { | |
setTimeout(function() { | |
resolve(); |
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
// create request object | |
var xhttp = new XMLHttpRequest(); | |
// set params | |
var method = 'GET' || 'DELETE' || 'POST' || 'PUT' || 'PATCH'; | |
var url = 'controller/action'; | |
var asynchronous = true; | |
// open request | |
xhttp.open(method, url, asynchronous); | |
// set ajax headers | |
xhttp.setRequestHeader('X-Requested-With', 'XMLHttpRequest'); |
NewerOlder