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
| $ ssh -X user@host |
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
| Fixing WiFI Dropout Issues | |
| If you find your module 'drops out' from time to time, you can fix it fairly easily with a command line fix (thanks perseus286!) | |
| Create and edit a new file in /etc/modprobe.d/8192cu.conf | |
| sudo nano /etc/modprobe.d/8192cu.conf | |
| and paste the following in | |
| # Disable power saving | |
| options 8192cu rtw_power_mgnt=0 rtw_enusbss=1 rtw_ips_mode=1 | |
| Then reboot with sudo reboot |
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/bash | |
| clear | |
| #Getting System Information | |
| /opt/vc/bin/vcgencmd version | |
| /opt/vc/bin/vcgencmd measure_temp | |
| /opt/vc/bin/vcgencmd measure_volts core | |
| /opt/vc/bin/vcgencmd measure_volts sdram_c | |
| /opt/vc/bin/vcgencmd measure_volts sdram_i | |
| /opt/vc/bin/vcgencmd measure_volts sdram_p |
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
| nmap 192.168.0.0/24 -p 22,5900 |
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
| /etc/init.d/lxdm start | |
| /etc/init.d/lxdm stop |
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
| DECLARE @StartDate AS DateTime | |
| SET @StartDate = '2017-01-12 11:00:00.000' | |
| --SET @StartDate = GETDATE() | |
| SELECT | |
| DATEADD(DAY, -1, @StartDate) | |
| , DATEADD(MONTH,1,@StartDate) | |
| , DATEDIFF(DAY, -1, @StartDate) as Diff | |
| SELECT DATEADD(MONTH, DATEDIFF(MONTH, 0, @StartDate) - 1, 0), |
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
| mkdir n00bs | |
| sudo mount /dev/mmcblk0p1 n00bs/ | |
| sudo nano n00bs/recovery.cmdline | |
| sudo umount n00bs | |
| # append vncinstall forcetrigger |
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
| # 858 MB deleted | |
| sudo apt-get purge -y scratch penguinspuzzle sense-hat sense-emu-tools sonic-pi wolfram-engine minecraft-pi | |
| # 116MB deleted | |
| sudo apt-get autoremove -y | |
| sudo apt-get update -y | |
| sudo apt-get upgrade -y |
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 apt-get update -y | |
| sudo apt-get upgrade -y | |
| sudo rpi-update | |
| sudo reboot | |
| sudo apt-get install -y build-essential git cmake pkg-config | |
| sudo apt-get install -y libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev | |
| sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev libv4l-dev | |
| sudo apt-get install -y libxvidcore-dev libx264-dev | |
| sudo apt-get install -y libgtk2.0-dev | |
| sudo apt-get install -y libatlas-base-dev gfortran |
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
| ::/C/ProgramData/Microsoft/Windows/Start Menu/Programs/Startup | |
| ::nslookup myip.opendns.com resolver1.opendns.com > "C:\Documents and Settings\All Users\Documents\IP.txt" | |
| nslookup myip.opendns.com resolver1.opendns.com > "C:\Users\Public\IP.txt" |
OlderNewer