$ docker
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
import ldap from "ldapjs"; | |
const query = 'name-to-search'; // ? query contains name to search | |
const client = ldap.createClient({ url: ["ldap://172.29.200.99:389"] }); | |
client.bind(`Your-windows-username`, "Your-windows-password", (error: any) => { | |
if (error) | |
console.log(error) | |
else |
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 PHP7.4 | |
1. sudo yum -y install wget | |
1.1 sudo yum install epel-release-latest-7.noarch.rpm | |
2. sudo yum install epel-release | |
3. sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm | |
4. sudo yum --enablerepo=remi-php74 install php | |
5. sudo yum --enablerepo=remi-php74 install php-curl php-mysql php-cli php-gd php-ldap php-zip php-fileinfo php-xml php-soap php-xmlrpc php-mbstring php-json php-gd php-mcrypt | |
6. sudo yum update |
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
const retryIntervalInSeconds = 10; | |
const maxTestDurationInMinutes = 1; | |
let int = setInterval(() => | |
// Kaa unatumia env variables: pm.sendRequest(pm.variables.get('url') + 'weka/resource/hapa', (err, res) => | |
pm.sendRequest('http://site.com/weka/resource/hapa', (err, res) => | |
res.code === 200 ? (console.log(res), clearInterval(int)) : console.log(res.code) | |
), retryIntervalInSeconds * 1000); | |
setTimeout(() => clearInterval(int), maxTestDurationInMinutes * 60 * 1000); |
Hey there, apparently people are still using this Gist from 2013! It's out of date! Consult the Github docs.
- Create a GitHub account on github.com.
- Download either [GitHub for Mac][1] or [GitHub for Windows][2], depending on your operating system. Open the app and log in using the account you just created.
- (On Mac): After you login, click advanced and make sure that your name and email are correct. Then, click "Install Command Line Tools", just in case you want to start using the command line later in life.
- Create a new repository in your GitHub application. Name it your-username.github.io. The name is very important. Note the folder that GitHub is saving the repository to. Make sure the "Push to GitHub?" box is checked.
- Move your website's files into the folder that GitHub just created when you made the repository. IMPORTANT: Your homepage HTML file must be called "index.html", and it must exist in the top-level
It's time someone compiled a list of nationalities to use within a web application. This gist attempts to make a first move at that.
I've also compiled a list of countries