Command:
apt-get install kali-defaults kali-root-login desktop-base xfce4 xfce4-places-plugin xfce4-goodies
Command:
#!/bin/bash | |
# https://gist.github.com/princeppy/dd3ca67e3233589aa7ab102568806f4b | |
# https://mathiasbynens.be/notes/shell-script-mac-apps | |
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF | |
appify v3.0.1 for Mac OS X - http://mths.be/appify | |
Creates the simplest possible Mac app from a shell script. | |
Appify takes a shell script as its first argument: |
<?php | |
/** | |
* Programmatically install and activate wordpress plugins | |
* | |
* Usage: | |
* 1. Edit the $pluginSlugs array at the beginning of this file to include the slugs of all the | |
* plugins you want to install and activate | |
* 2. Upload this file to the wordpress root directory (the same directory that contains the | |
* 'wp-admin' directory). | |
* 3. Navigate to <your-domain-wordpress-root>/install-wp-plugins.php (If wordpress is installed |
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; | |
export function withAppContext< | |
P extends { appContext?: AppContextInterface }, | |
R = Omit<P, 'appContext'> | |
>( | |
Component: React.ComponentClass<P> | React.StatelessComponent<P> | |
): React.SFC<R> { | |
return function BoundComponent(props: R) { | |
return ( |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title></title> | |
</head> | |
<body> | |
function reduxHelper (actionName, fn) { | |
if (typeof actionName !== 'string') { | |
throw new Error('actionName must be a string') | |
} | |
if (typeof fn !== 'function') { | |
throw new Error('fn must be a function') | |
} | |
const actionNameUpper = actionName.toUpperCase() | |
const actionRequest = actionNameUpper + '_REQUEST' | |
const actionSuccess = actionNameUpper + '_SUCCESS' |
This document details some tips and tricks for creating redux containers. Specifically, this document is looking at the mapDispatchToProps
argument of the connect
function from [react-redux][react-redux]. There are many ways to write the same thing in redux. This gist covers the various forms that mapDispatchToProps
can take.
/* | |
Gulpfile.js file for the tutorial: | |
Using Gulp, SASS and Browser-Sync for your front end web development - DESIGNfromWITHIN | |
http://designfromwithin.com/blog/gulp-sass-browser-sync-front-end-dev | |
Steps: | |
1. Install gulp globally: | |
npm install --global gulp |
/** | |
* This example: | |
* Uses the built-in BrowserSync server for HTML files | |
* Watches & compiles SASS files | |
* Watches & injects CSS files | |
* | |
* More details: http://www.browsersync.io/docs/gulp/ | |
* | |
* Install: | |
* npm install browser-sync gulp gulp-sass --save-dev |