This file contains 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
it@it:~$ sudo parted -l \ nc termbin.com 9999 | |
Model: ATA LITEONIT LSS-24L (scsi) | |
Disk /dev/sda: 24.0GB | |
Sector size (logical/physical): 512B/512B | |
Partition Table: msdos | |
Number Start End Size Type File system Flags | |
Model: ATA ST1000LM024 HN-M (scsi) |
This file contains 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
it@it:~$ sudo mkdir /mnt/root; sudo mkdir -p /mnt/EFI; | |
it@it:~$ sudo umount /dev/sdb7 | |
it@it:~$ sudo mount /dev/sdb7 /mnt/root | |
sudo mount -t vfat -o rw,users /dev/sdb2 /mnt/EFI | |
it@it:~$ ls /mnt/ | |
EFI root | |
it@it:~$ ls /mnt/root/ | |
bin boot cdrom dev etc home initrd.img initrd.img.old lib lib64 lost+found media mnt opt proc root run sbin srv sys tmp usr var vmlinuz vmlinuz.old | |
it@it:~$ sudo chroot /mnt/root/ |
This file contains 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
it@it:~$ sudo parted -l | |
Model: ATA LITEONIT LSS-24L (scsi) | |
Disk /dev/sda: 24.0GB | |
Sector size (logical/physical): 512B/512B | |
Partition Table: msdos | |
Number Start End Size Type File system Flags | |
Model: ATA ST1000LM024 HN-M (scsi) |
This file contains 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
input is in form of zipped files each having the weather station nos and the year : "startingStation endingStation year" | |
010010-99999-1990.gz | |
010014-99999-1990.gz | |
010015-99999-1990.gz | |
010016-99999-1990.gz | |
010017-99999-1990.gz | |
010030-99999-1990.gz | |
010040-99999-1990.gz | |
010080-99999-1990.gz |
This file contains 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
<?php | |
$imagePath = theme_path("images/login"); | |
?> | |
<style type="text/css"> | |
body { | |
background-color: #FFFFFF; | |
height: 700px; | |
} |
This file contains 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
import java.util.*; | |
public class Solution { | |
public static void main(String[] args) { | |
Scanner scan = new Scanner(System.in); | |
String s = scan.next(); | |
scan.close(); | |
while(true){ |
This file contains 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
// How do change $key and $value below so they can be used as parametric inserts into the db ? | |
<?php | |
$json = file_get_contents('sampleData.json'); | |
$obj = json_decode($json, true); | |
// Connect to Db | |
$username = "root"; | |
$password = "ernest"; | |
$database_name = "test"; | |
$host = "localhost"; |
This file contains 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
// Question -- I have a complicated string ( line 24). I apply a json_decode on it and it works fine ( result box). I then insert | |
// ( see insert statement below) this String in mysql(5.6). I retrieve this string from db and echo it. | |
// It looks fine ( result box line 5). I try json_decode on it. | |
// This is the same string as line 24. It returns A NULL. Why ? | |
<?php | |
$username = "root"; | |
$password = ""; | |
$database_name = "test"; | |
$host = "localhost"; |
This file contains 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
<?php | |
//$username = $config["database_connection"]["username"]; | |
//$password = $config["database_connection"]["password"]; | |
//$host = $config["database_connection"]["database_hostname"]; | |
//$database_name = $config["database_connection"]["database_name"]; | |
//$port = $config["database_connection"]["port"]; | |
$username = "root"; | |
$password = "xyz"; | |
$database_name = "test"; |
NewerOlder