Shortcut | Purpose |
---|---|
Shift + Ctrl + N | New window |
Ctrl + Enter | Toggle full screen |
Shift + Ctrl + T | New tab |
Ctrl + Tab | Next tab |
Shift + Ctrl + Tab | Previous tab |
Shift + Ctrl + W | Close split/tab/window* |
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
const fetch = (url, cb, options = {}) => { | |
const { protocol } = new URL(url); | |
const http = protocol === 'https:' | |
? require('https') | |
: require('http'); | |
options = { headers: { 'User-Agent': 'node.js' }, ...options }; | |
const error = e => console.log(e.message); |
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
Add-Type -TypeDefinition @" | |
using System; | |
using System.IO; | |
using System.Text; | |
using System.Drawing; | |
using System.Windows.Forms; | |
using System.Runtime.InteropServices; | |
using System.Linq; | |
using Microsoft.Win32; |
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
<?php | |
# define api keys. | |
define('CONSUMER_KEY', 'XXX'); | |
define('CONSUMER_SECRET', 'XXX'); | |
define('OAUTH_TOKEN', 'XXX'); | |
define('OAUTH_SECRET', 'XXX'); | |
define('USER_TIMELINE', 'https://api.twitter.com/1.1/statuses/user_timeline.json'); | |
# tweets to retrieve per request. |
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
<# examples: | |
# generate a baseline policy. | |
powershell.exe -file applocker.ps1 -baseline -output c:\policies\baseline.xml | |
# generate an application-specific policy. | |
powershell.exe -file applocker.ps1 -application -in c:\policies\baseline.xml -out c:\policies\application.xml | |
# generate an adhoc policy. | |
powershell.exe -file applocker.ps1 -adhoc -in c:\path -filter *.* -out c:\policies\adhoc.xml |
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
# Paths that we've already excluded via AppLocker. | |
$exclusions = @() | |
# Paths to process. | |
$paths = @( | |
"C:\Windows" | |
) | |
# Setup log. | |
$log = "$PSScriptRoot\UserWritableLocations.log" |
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 "stdafx.h" | |
#include <windows.h> | |
#include <mapix.h> | |
#include <mapiutil.h> | |
#include <edkmdb.h> | |
#include <atlbase.h> | |
#include <iostream> | |
#include <vector> | |
#include <map> | |
#include <sstream> |
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
<?php namespace Enigma; | |
class Reflector { | |
protected $table; | |
public function __construct($table) { | |
$this->table = array_combine(range('A', 'Z'), str_split($table)); | |
} | |
public function convert($character) { |
NewerOlder