dd is the command from Linux. To create 1 GB file go with
dd if=/dev/zero of=testfile bs=1024 count=1024000
to create 100 MB try
dd if=/dev/zero of=testfile bs=1024 count=102400
and for 10 MB use
dd if=/dev/zero of=testfile bs=1024 count=10240
Add-Type -AssemblyName System.Windows.Forms | |
while ($true) | |
{ | |
$Pos = [System.Windows.Forms.Cursor]::Position | |
$x = ($pos.X % 500) + 1 | |
$y = ($pos.Y % 500) + 1 | |
[System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point($x, $y) | |
Start-Sleep -Seconds 10 | |
} |
rip off from
(1) Inside git local repostitory, create a new sh file
touch getAllBranches.sh
vi getAllBranches.sh
(2) Insert the below content to getAllBranches.sh file:
"use strict"; | |
var crypto = require("crypto"); | |
var EncryptionHelper = (function () { | |
function getKeyAndIV(key, callback) { | |
crypto.pseudoRandomBytes(16, function (err, ivBuffer) { | |
var keyBuffer = (key instanceof Buffer) ? key : new Buffer(key) ; |
install heroku
cli tools
cd "C:\Program Files\heroku\bin"
heroku login
heroku keys:add
--select right ssh key (if there are multiples)
heroku create node-av-weather-application
-- from the application folder.(name should be unique)
import React, { Component } from 'react' | |
import { Link } from 'react-router' | |
// Drag and Drop | |
import { DragDropContext } from 'react-dnd' | |
import HTML5Backend from 'react-dnd-html5-backend' | |
// Material UI | |
import { List } from 'material-ui/List' | |
import Subheader from 'material-ui/Subheader' | |
class ReorderableList extends Component { |
# add it in the default profile \Users\{username}\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 | |
# https://stackoverflow.com/a/41862274/2043920 | |
# https://www.hanselman.com/blog/HowToMakeAPrettyPromptInWindowsTerminalWithPowerlineNerdFontsCascadiaCodeWSLAndOhmyposh.aspx | |
# Remove Defaults | |
rename-item alias:\gc gk -force | |
rename-item alias:\gcm gkm -force | |
rename-item alias:\gl gll -force | |
rename-item alias:\gsn gsnn -force | |
rename-item alias:\gm gmm -force |
# working with npm | |
npm install -g yarn | |
npm install -g npx | |
npm install -g np | |
npm install -g npm-name-cli | |
# debugging | |
npm install -g ndb | |
npm install -g node-inspector |
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" | |
choco feature enable -n allowGlobalConfirmation | |
choco install conemu /y | |
choco install 7zip.install /y | |
choco install git /y | |
choco install git.install /y | |
choco install nvm /y | |
choco install notepadplusplus /y |
// mock file | |
function MockFile() { }; | |
MockFile.prototype.create = function (name, size, mimeType) { | |
name = name || "mock.txt"; | |
size = size || 1024; | |
mimeType = mimeType || 'plain/txt'; | |
function range(count) { | |
var output = ""; |