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
# The following packages are needed during `make` | |
# - openssl-devel so you don't get: | |
# ContentHash.cpp:13:10: fatal error: openssl/sha.h: No such file or directory | |
# - redhat-rpm-config so you don't get: | |
# gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory | |
# - python-devel so you don't get: | |
# pywatchman/bser.c:31:10: fatal error: Python.h: No such file or directory | |
sudo dnf install openssl-devel redhat-rpm-config python-devel libtool | |
# The rest is just instructions from |
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
// A demonstration example for http://stackoverflow.com/a/26124494 | |
// It runs a goroutine locked to an OS thread on Windows | |
// then impersonates that thread as another user using its name | |
// and plaintext password, then reverts to the default security | |
// context before detaching from its OS thread. | |
package main | |
import ( | |
"log" | |
"runtime" |
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
#! /bin/bash | |
# This Source Code Form is subject to the terms of the Mozilla Public | |
# License, v. 2.0. If a copy of the MPL was not distributed with this | |
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | |
# usage: | |
# $ SANDBOX="/builds/aws_manager" ENV="bld" PLATFORM="win" ARCH="64" TARGET_HOST="$ENV-2008-ec2-golden" /builds/aws_manager/a0bab1937fbc8f06cfff/register.sh | |
echo "Attempting IP allocation and DNS mapping" |
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
#!/bin/sh | |
# Firefox Developer Edition install | |
# No need to download this script, just run it on your terminal: | |
# $ curl -L git.io/firefoxdev | sh | |
# When you need to update Firefox Developer Edition, run this script again. | |
START_CMD="firefox-dev" | |
INSTALLATION_DIR="/opt/${START_CMD}" |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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-Module GroupPolicy | |
Copy-GPO -SourceDomain releng.ad.mozilla.com -SourceName DC_Security_Logging -TargetDomain releng.ad.mozilla.com -TargetName install_nxlog | |
New-Item -ItemType Directory -Path \\releng.ad.mozilla.com\SysVol\releng.ad.mozilla.com\files\nxlog | |
Copy-Item *.conf \\releng.ad.mozilla.com\SysVol\releng.ad.mozilla.com\files\nxlog |