This file contains hidden or 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
| export default class Session { | |
| static TOKEN_KEY = "PAGE_TOKEN_KEY"; | |
| static token = (localStorage.getItem(this.TOKEN_KEY) === null ? "" : localStorage.getItem(this.TOKEN_KEY)); | |
| static verified = false; | |
| static isLocalhost = window.location.hostname.includes("localhost"); | |
| static apiBaseurl = (this.isLocalhost ? "http://localhost:9000" : "https://api.example.com"); | |
| static someCachedData: any[] = []; | |
| static currentUser: any = undefined; |
This file contains hidden or 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
| username@hostname$ sed -n "s/\$table_prefix = '\(.*\)';/\1/p" wp-config.php |
This file contains hidden or 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
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <iostream> | |
| #include <unistd.h> | |
| #include <boost/thread.hpp> | |
| #include <arpa/inet.h> | |
| #include <sys/socket.h> |