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
# Nuclear Power Plants Topic Study | |
## Basics of Nuclear Power | |
- Nuclear fission | |
- Nuclear fusion | |
- Radioactive decay | |
- Energy release in nuclear reactions | |
## Components of a Nuclear Power Plant | |
- Nuclear reactor |
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 | |
// path to restore image | |
$path = '/data/helpdesk'; | |
// db config | |
$host = 'localhost'; | |
$dbname = 'helpdesk'; | |
$user = 'your_user'; | |
$pass = 'your_pass'; |
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
--- Load from table dump_1.csv to dump_100.csv | |
--- *.csv has million records | |
DECLARE @i int = 0 | |
DECLARE @fromTable VARCHAR(MAX) | |
declare @sql varchar(max) | |
WHILE @i < 100 | |
BEGIN | |
print @i |
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
+-----------------+-------+ | |
| word | count | | |
+-----------------+-------+ | |
| nga | 1 | | |
| ngaceng | 3 | | |
| ngadem | 1 | | |
| ngadimig | 1 | | |
| ngadimiks | 1 | | |
| ngadimix | 4 | | |
| ngadmin | 2 | |
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
##### Pada SOURCE_DB ##### | |
# Dump hanya schema saja dari seluruh object | |
$ pg_dump -Fc -U hcsuser -h localhost -s hcs_latest > hcs_latest_schema_only.dump --verbose | |
# Dump hanya konten dari object yg diinginkan (ex: sys tables, dan master table) | |
$ pg_dump -U hcsuser -h localhost -a -t user -t roles -t menu_roles -t master_* hcs_latest > hcs_master_content.sql --verbose | |
##### Pada TARGET_DB ##### |
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
#!/bin/bash | |
set -x | |
echo 'Processing...' | |
# Script ini dijalankan dari staging server | |
# Dump latest db di Production | |
ssh brain@bojong-production -v <<'ENDSSH' pg_dump -Fc -U knuth -N sym -T sym* -h 192.168.3.1 spacex_production -p 5433 > | |
$(date +"%Y%m%d")_spacex_production.backup --verbose |
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
commit 36bef88380037288d5b575ed2029de694533b1ec | |
Merge: e93df63 e6441ba | |
Author: Linus Torvalds <[email protected]> | |
Date: Mon Mar 9 18:17:21 2015 -0700 | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net | |
this issue to me and supplied a patch. When I tested this on my x86 | |
test box, it caused thousands of backtraces and warnings to appear in | |
dmesg, which also caused a denial of service (a warning for every |
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
<? | |
function trimSpace($rowFromCSV) | |
{ | |
$cleanRow = array(); | |
array_walk($rowFromCSV, function ($val, $key) use (&$cleanRow) { | |
$cleanData[trim($key)] = trim($val); | |
}); | |
return $cleanRow; | |
} |
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
Array | |
( | |
[Indonesia] => Array | |
( | |
[Bali] => Array | |
( | |
[0] => Legian | |
[1] => Tanah Lot | |
[2] => Seminyak | |
) |
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
<? | |
$ObjekWisata = array( | |
"Indonesia" => array("Bali" => array("Legian","Tanah Lot","Seminyak"), | |
"Jawa Barat" => array("Grand Canyon","Ranca Upas","Curug Dago")), | |
"Eropa" => array("Spanyol" => array("Granada","Andalusia","Navarra"), | |
"Turki" => array("Fethiye","Nemrut","Belek") | |
)); | |
?> |
NewerOlder