Fixed the PHP date code.
I have fixed my PHP date code, major facepalm when I had a default date hardcoded in the PHP… Should be all good now.
I have fixed my PHP date code, major facepalm when I had a default date hardcoded in the PHP… Should be all good now.
This sources.list file might be useful for an Ubuntu desktop user who has overwritten their file and needs a new one. ## SOURCES LIST FOR UBUNTU 16.04 LTS XENIAL XERUS ## ALSO FOR XUBUNTU 16.04, LUBUNTU 16.04 ## AND KUBUNTU 16.04 ## From: http://sites.google.com/site/easylinuxtipsproject ## This list is for the Main server; you might want … Read more
There are a few Linux easter eggs out there. The above screenshot shows the Douglas Adams quote in VIM. Type :42 in the command mode to get this quote. The apt-command for Ubuntu, Debian and Mint has had an embedded easter egg for quite a while. If you type the help command for apt-get, you … Read more
Creating an alias for bash makes remembering a command easier. This is how longer commands may be simplified. Here is an example. [jason@darknet:~] alias lseasy=’ls -lAhF'[jason@darknet:~] alias lseasy=’ls -lAhF’ This is the output. [jason@darknet:~/Videos] lseasy total 4.8G -rw-r–r– 1 jason jason 18 Mar 24 13:34 authrootseq.txt -rw-r–r– 1 jason jason 23K Mar 24 13:55 heap2.htm … Read more
The new Windows 10 bash shell is not very impressive once you get it installed. I have tried it and I could not ping websites even though Microsoft Edge could access the Internet. It is possible to install packages if these lines are added to the /etc/hosts file. 91.189.91.14 archive.ubuntu.com 91.189.92.201 security.ubuntu.com91.189.91.14 archive.ubuntu.com 91.189.92.201 security.ubuntu.com … Read more
The curl command on Linux may be used to get weather information from the Internet. The curl wttr.in/”new york” command will retrieve weather information from wttr.in. [jason@darknet:~] curl wttr.in/"new york" Weather for City: New York, United States of America \ / Clear .-. 6 – 8 °C ― ( ) ― ↓ 9 km/h … Read more
The new bash shell in Windows 10 build 10.0.14316 is the best addition to Windows 10 yet. Here I am getting information about the CPU. root@localhost:/mnt/c/Users/johnc# cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 60 model name : Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz stepping : 3 microcode : … Read more
Windows 10 is getting a bash shell in the summer release. This is a couple of months away. But here are a couple of screenshots from developers I have found on the web that show what this will look like. Here a person is installing the bash shell using CMD. Now this is the bash … Read more
Apparently, the Linux bash shell is coming to Windows 10. This will offer a fully functional Linux bash prompt in the Windows app store, a good alternative to Powershell. This is in partnership with Canonical who work on the Ubuntu Linux distribution. As long as this offers tools such as dig, wget, and whois, it … Read more
Firstly, download a kernel tarball from kernel.org. jason@jason-desktop:~$ wget https://cdn.kernel.org/pub/linux/kernel/v4.x/testing/linux-4.6-rc1.tar.xz –2016-03-29 10:22:34– https://cdn.kernel.org/pub/linux/kernel/v4.x/testing/linux-4.6-rc1.tar.xz Resolving cdn.kernel.org (cdn.kernel.org)… 103.245.222.69 Connecting to cdn.kernel.org (cdn.kernel.org)|103.245.222.69|:443… connected. HTTP request sent, awaiting response… 200 OK Length: 89423304 (85M) [application/x-xz] Saving to: ‘linux-4.6-rc1.tar.xz’ linux-4.6-rc1.tar.xz 100%[======================================================================>] 85.28M 1.29MB/s in 66s 2016-03-29 10:23:54 (1.28 MB/s) – ‘linux-4.6-rc1.tar.xz’ saved [89423304/89423304]jason@jason-desktop:~$ wget https://cdn.kernel.org/pub/linux/kernel/v4.x/testing/linux-4.6-rc1.tar.xz –2016-03-29 … Read more
Some very useful Linux tricks and tips. Convert a Linux text file to DOS format with AWK. ┌──(john㉿DESKTOP-PF01IEE)-[~] └─$ awk ‘{sub(/$/,"\r")};1’ hello.txt > dodo2.txt┌──(john㉿DESKTOP-PF01IEE)-[~] └─$ awk ‘{sub(/$/,"\r")};1’ hello.txt > dodo2.txt Convert a DOS text file to UNIX format. [jason@darknet:~] awk ‘{sub(/\r$/,"")};1’ dodo2.txt > dodo3.txt[jason@darknet:~] awk ‘{sub(/\r$/,"")};1’ dodo2.txt > dodo3.txt Get your Internet-facing IP address from … Read more
The new Ubuntu 16.04 release allows moving the Unity launcher to the bottom of the screen. This does make sense, screens are wider than they are tall, and I like having the bar on the bottom of the screen. Use the command below to move the bar to the bottom. jason@jason-desktop:~$ gsettings set com.canonical.Unity.Launcher launcher-position … Read more
This is how to format a hard disk partition that will hold data for your Linux system. The partition must be unmounted before formatting, but this is the ideal way to create a file-system on a new partition that has been created with fdisk. root@jason-desktop:~# mkfs.ext4 mkfs.ext4 mkfs.ext4dev root@jason-desktop:~# mkfs.ext4 /dev/sdd3 mke2fs 1.42.13 (17-May-2015) /dev/sdd3 … Read more
I recently needed to crack a pin number hash that was four digits and used the numbers 2490. This sounds easy, but hard until you realise that it is a relatively simple PIN. I used the command below to generate a 60 Gigabyte wordlist, containing all possible combinations of the numbers in the PIN. crunch … Read more
Break Windows 10 password hashes with Kali Linux and John the Ripper Cracking the SAM file in Windows 10 is easy with Kali Linux. Use a Live Kali Linux DVD and mount the Windows 10 partition. Firstly, get the SAM and SYSTEM files from the C:\Windows\System32\config folder. Copy these to your desktop directory. Then dump … Read more
Richard Stallman, interviewed by Matthias Schüssler, in Zurich on February, 9th, of 2016. This is an interesting interview regarding information security and free software versus closed source proprietary software.
I was getting the read time-out error on Me TV on Ubuntu 16.04 and this is how I fixed it. Just run the application with this command line. ~$ me-tv –read-timeout 60~$ me-tv –read-timeout 60 This fixed the error. My ASUS My Cinema-U3100Mini Plus V2 device is now working and I am happy again. So … Read more
This Cisco command will list all passwords on a switch. mrrobot#sh ru | inc password service password-encryption password 7 00141215174C04140B70 password 7 00141215174C04140B70mrrobot#sh ru | inc password service password-encryption password 7 00141215174C04140B70 password 7 00141215174C04140B70 The inc command looks for any text that matches the argument. Like this: mrrobot#sh ru | inc line line con … Read more
This command will add an IP route to the 172.29.59.1 router using the wlan0 wireless interface card on my laptop. jason@darknet:~$ sudo ip route add 0/0 via 172.29.59.1 dev wlan0jason@darknet:~$ sudo ip route add 0/0 via 172.29.59.1 dev wlan0 This is part of the process of creating a network connection from your machine to a … Read more
This photograph shows an elevator display screen that is displaying an Ubuntu Unity desktop environment with the updates manager prompting for updates to be installed. This is strange, this is not necessarily the most reliable desktop environment and running this on a computer in an elevator seems like a very dumb idea. But whoever designed … Read more