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
| Useful Command-line Commands on Windows | |
| <a target="_new" href="https://serverfault.com/questions/3780/useful-command-line-commands-on-windows?rq=1">Reference from StackOverflow site</a> | |
| && - Command Chaining | |
| %SYSTEMROOT%\System32\rcimlby.exe -LaunchRA - Remote Assistance (Windows XP) | |
| appwiz.cpl - Programs and Features (Formerly Known as "Add or Remove Programs") | |
| appwiz.cpl @,2 - Turn Windows Features On and Off (Add/Remove Windows Components pane) | |
| arp - Displays and modifies the IP-to-Physical address translation tables used by address resolution protocol (ARP) | |
| at - Schedule tasks either locally or remotely without using Scheduled Tasks | |
| bootsect.exe - Updates the master boot code for hard disk partitions to switch between BOOTMGR and NTLDR |
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
| sudo -s # || sudo -i | |
| apt install apt-transport-https | |
| add-apt-repository -y ppa:danielrichter2007/grub-customizer | |
| add-apt-repository -y ppa:nilarimogard/webupd8 # WoeUSB | |
| add-apt-repository -y ppa:yannubuntu/boot-repair | |
| # Set up-to-date mirror for apt | |
| # Check distros for errors | |
| software-properties-gtk |
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
| #!/bin/sh | |
| #takes one argument/parameter: the name of the package which didn't install correctly and should be removed along with its dependencies | |
| #example: ./opkgremovepartlyinstalledpackage.sh pulseaudio-daemon | |
| #get list of all packages that would be installed along with package x | |
| PACKAGES=`opkg --force-space --noaction install $1 | grep "http:" | cut -f 2 -d ' ' | sed 's/\.$//'` | |
| opkg update | |
| for i in $PACKAGES | |
| do |
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
| {"lastUpload":"2020-04-11T12:55:45.965Z","extensionVersion":"v3.4.3"} |
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
| /** | |
| * JavaScript code for Steelhouse coding exercise. | |
| * Any CSS is provided in the upper CSS directory. | |
| */ | |
| 'use strict'; | |
| /** | |
| Write a function that takes a single argument, lines, which is a list of | |
| strings. Each element of lines is a line of prose from some passage. You will | |
| return a list of strings that is read "downward", as opposed to left-to-right. |
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
| // Please save all your work in https://jsfiddle.net/ | |
| // Return the link to your work | |
| // Answer five out of the seven questions | |
| // Use test data when provided, however your functions should work with any similiarly structured data | |
| // Use any additional libraries you like | |
| // 1: Refactor this function to make it scalable. | |
| var goto = function(evt, where, project, scenario, item, id){ | |
| if (evt && evt.stopPropagation){ evt.stopPropagation(); } |
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
| (function($){ | |
| 'use strict'; | |
| var $appRoot, auth, APIs, app = {}, | |
| tmpl = com.marketshare.optimizer.template, | |
| reportCategoryKeys = 'nav-report-categories', | |
| ns = 'com.marketshare.optimizer.view.viewReporting'; | |
| function updateNavigation(event) { | |
| var $itemsHolder, |
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
| if (![].unique) { | |
| Array.prototype.unique = function() { | |
| var n = {}, r = [], i = 0, l = this.length; | |
| for (; i < l; i++) { | |
| if (this[i] && !n[this[i]]) { | |
| n[this[i]] = true; | |
| r.push(this[i]); | |
| } | |
| } | |
| return r; |
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
| #!/bin/sh | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # Set the colours you can use | |
| black='\033[0;30m' | |
| white='\033[0;37m' | |
| red='\033[0;31m' |
NewerOlder