sudo sed -i '/cdrom/d' /etc/apt/sources.list
I'd certainly recommend moving to keys over passwords, but for now, it'll do...
sudo apt-get install -y openssh-server
sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.factory-defaults
| # Config for GNU GRand Unified Bootloader (GRUB) (2) | |
| # /boot/grub2/grub.cfg | |
| # or | |
| # /boot/grub/grub.cfg | |
| # Mostly only 'legacy' CSM/BIOS boot methods currently. | |
| # Unable to boot loop entries with Secure Boot | |
| # Notes: | |
| # Description: | |
| # This grub.cfg file was created by Lance http://www.pendrivelinux.com |
| <# | |
| NAME | |
| Debloat-Windows10.ps1 | |
| DESCRIPTION | |
| Debloats and customizes Windows 10 Enterprise N LTSB. | |
| It changes your privacy options in the settings app and disables scheduled tasks and services that are there | |
| to gather information about you. It also tweaks the registry to customize settings, make your font display properly | |
| on DPI scaling 125% and disable OneDrive completely. Windows Features are also disabled, such as Internet Explorer | |
| and XPS Viewer, while others are enabled such as .NET framework 3.5. On top of it all, it appends new lines to your | |
| hosts file that block Microsoft from collecting data on you, as well as enables or disables local policies to |
| function Write-FormattedOutput | |
| { | |
| [CmdletBinding()] | |
| Param( | |
| [Parameter(Mandatory=$True,Position=1,ValueFromPipeline=$True,ValueFromPipelinebyPropertyName=$True)][Object] $Object, | |
| [Parameter(Mandatory=$False)][ConsoleColor] $BackgroundColor, | |
| [Parameter(Mandatory=$False)][ConsoleColor] $ForegroundColor | |
| ) | |
| # save the current color |
sudo sed -i '/cdrom/d' /etc/apt/sources.list
I'd certainly recommend moving to keys over passwords, but for now, it'll do...
sudo apt-get install -y openssh-server
sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.factory-defaults
| install | |
| url --url="http://mirror.yandex.ru/fedora/linux/development/23/x86_64/os/" | |
| lang en_US.UTF-8 | |
| keyboard us | |
| # python -c "import crypt, getpass, pwd; print crypt.crypt('testpass', '\$6\$86XQ0WSE\$')" | |
| rootpw --iscrypted $6$86XQ0WSE$xFUpTag3yF1sU7gBNpZs2YOgezvTgHx8vVarmM3DVrjJYRFQa6ovpENVtXsMDE2m0avQaL/BpvDEETdzs5gJI1 | |
| services --disabled iptables,ip6tables,netfs | |
| services --enabled ntpd | |
| firewall --disabled |
Problem: When linking to the raw version of a gist, the link changes with each revision.
Solution:
To return the first file from a gist: https://gist.github.com/[gist_user]/[gist_id]/raw/
To get a file from multi–file gist: https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]
Quick demo on how to use Jade and CodeMirror to create a simple Jade editor with live preview.
| \n | |
| ============= HOST: ==========\n | |
| \n | |
| local_ip: %{local_ip}\n | |
| local_port: %{local_port}\n | |
| remote_ip: %{remote_ip}\n | |
| remote_port: %{remote_port}\n | |
| \n | |
| ======= CONNECTION: ==========\n | |
| \n |
| /* | |
| * Your Stylesheet | |
| * | |
| * This stylesheet is loaded when Atom starts up and is reloaded automatically | |
| * when it is changed and saved. | |
| * | |
| * Add your own CSS or Less to fully customize Atom. | |
| * If you are unfamiliar with Less, you can read more about it here: | |
| * http://lesscss.org | |
| */ |
| REM Disable UAC | |
| reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /f /v "EnableLUA" /t REG_DWORD /d 0 | |
| REM Disable Auto Reboot for Windows Update | |
| reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /f /v "NoAutoRebootWithLoggedOnUsers" /t REG_DWORD /d 1 | |
| reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /f /v "NoAUAsDefaultShutdownOption" /t REG_DWORD /d 1 | |
| REM Device Manager show all devices | |
| reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /f /v "DEVMGR_SHOW_NONPRESENT_DEVICES" /t REG_DWORD /d 1 |