Skip to content

Instantly share code, notes, and snippets.

View anugrahbsoe's full-sized avatar

Anugrah Bagus S anugrahbsoe

View GitHub Profile
@anugrahbsoe
anugrahbsoe / tes.java
Created March 4, 2020 03:16
Soal tentang Perulangan
public class tes{
public static void main(String args[]){
for(int i=0; i < 10; i++)
{
if (i % 2 == 0){
System.out.println( i );
}
}
// System.out.println ("hasil outputnya");
@anugrahbsoe
anugrahbsoe / pilihbarangcombobox.php
Created July 8, 2019 07:31
pilih barang combobox
<option selected="selected">---Pilih Barang--</option>
<?php
while ($row = mysqli_fetch_array($result)){
echo '<option value="' . $row['nama'] . '">' . $row['nama'] . ' </option>';
$jsArray .= "NamaBarang['" . $row['nama'] . "'] = {merk:'" . addslashes($row['merk']). "',
satuan:'" . addslashes($row['satuan']). "', jumlah:'" . addslashes($row['jumlah']). "',
foto:'" . addslashes($row['foto']). "'};\n";
}
Problems : phpmyadmin.pma_table_uiprefs doesn't exist
Solved :
1. Edit /etc/phpmyadmin/config.inc.php and change this rows:
$i]['pma__bookmarktable'] = 'pma__bookmark';
$cfg['Servers'][$i]['pma__relation'] = 'pma__relation';
$cfg['Servers'][$i]['pma__table_info'] = 'pma__table_info';
$cfg['Servers'][$i]['pma__table_coords'] = 'pma__table_coords';
$cfg['Servers'][$i]['pma__pdf_pages'] = 'pma__pdf_pages';
@anugrahbsoe
anugrahbsoe / tugas-analog
Created May 19, 2019 13:39
membuat analog
/*******
All the resources for this project:
https://www.hackster.io/Aritro
*******/
int redLed = 12;
int greenLed = 13;
int buzzer = 10;
@anugrahbsoe
anugrahbsoe / analog
Last active May 18, 2019 08:45
analog.ino
/*******
All the resources for this project:
https://www.hackster.io/Aritro
*******/
int redLed = 12;
int greenLed = 13;
int buzzer = 10;
int led = 13;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
@anugrahbsoe
anugrahbsoe / reset password
Last active December 7, 2017 04:19
reset a password linux
1. booting ubuntu
2. choose ubuntu advanced mode
3. from the boot menu, select recovery mode, which is usually the second boot option.
4. In this case, you want the Drop to root shell prompt
5. In recent versions of Ubuntu, the filesystem is mounted as read-only, so you need to enter the follow command to get it to remount as read-write, which will allow you to make changes:
mount -rw -o remount /
6. whoami
7. passwd username
@anugrahbsoe
anugrahbsoe / otentifikasi-wordpress
Created December 2, 2017 15:16
Otentikasi Login : Authentication Required Pada Login WordPress
//Default password
User Name : Human
Password : password
//Mengilangkan
edit file .htacces di folder tersebut dan kemudian tambahkan:
<filesmatch "wp-login.php">
Satisfy Any
</filesmatch>
@anugrahbsoe
anugrahbsoe / importdb .sql
Created March 1, 2017 08:00
cara import big data on mysql
BIG DUMP
Download the latest version of Big Dump http://www.ozerov.de/bigdump.zip
Open up bigdump.php and configure: Server, database name, username, password, and the file name.
Upload both your SQL file and bigdump.php to your server
Browse to bigdump.php and click import
MANUAL
mysql -u database_user_name -p -D database_name < complete_file_path_with_file_name_and_extension
@anugrahbsoe
anugrahbsoe / setting raspberry pi
Created February 13, 2016 16:32
story case : ingin menjalankan sebuah portal informasi webbase secara autoload di raspberry menggunakan browser
story case : ingin menjalankan sebuah portal informasi webbase secara autoload di raspberry
menggunakan browser
1.setting browser autoload
--sudo gedit /etc/xdg/lxsession/LXDE-pi
tambahkan script berikut di akhir
chromium --kiosk http://google.com
2.setting resolusi monitor 640x480
--sudo gedit /boot/config.txt