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
bunzip2 < serverdb.sql.bz2 | mysql -h example.com -P 3306 -u USERNAME -p DATABASE_NAME |
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
// Einstein's Five-House Riddle Solver | |
// Original question: https://udel.edu/~os/riddle.html | |
// by Nainemom <nainemom@gmail.com> | |
const print = (colors, nations, drinks, pets, cigars, time) => { | |
console.log('') | |
console.log('-'.repeat(103)) | |
console.log(['#1', '#2', '#3', '#4', '#5'].join("\t\t\t")) | |
console.log('-'.repeat(103)) | |
console.log(colors.join("\t\t\t")) |
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
cookies = Object.fromEntries(document.cookie.split('; ').map(c => c.split('='))); | |
let UDID = cookies.UDID; | |
let jwt = cookies[['jwt-access_token']] ?? JSON.parse(window.localStorage.JWT ?? '{}').access_token; | |
var myHeaders = new Headers(); | |
myHeaders.append("authority", "snappfood.ir"); | |
myHeaders.append("accept", "application/json, text/plain, */*"); | |
myHeaders.append("accept-language", "en-US,en;q=0.9,fa;q=0.8"); | |
myHeaders.append("authorization", "Bearer " + jwt); | |
myHeaders.append("content-type", "application/x-www-form-urlencoded"); |