User Tools

Site Tools


start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
start [2023/02/21 18:13] – [Introduction] adminstart [2023/08/12 13:07] (current) – [Date.js] admin
Line 9: Line 9:
 ====== Touchpad ====== ====== Touchpad ======
 Use  Use 
-<code>+<Code>
 synclient TouchpadOff=1 synclient TouchpadOff=1
-</code>+</Code>
 To turn the bloody touchpad off on laptop. To turn the bloody touchpad off on laptop.
  
 If that doesn't work, here's a script that works on my Dell Inspirion 11 3000 Series running Linux Mint Mate 20. If that doesn't work, here's a script that works on my Dell Inspirion 11 3000 Series running Linux Mint Mate 20.
  
-<code>+<Code>
 #!/bin/bash #!/bin/bash
 x=`xinput list | grep Synaptics|awk '{ $1=""; $2=""; $3="";$4="";$6="";$7="";$8=""; print}' | awk -F'=' '{$1="";print}' | xargs` x=`xinput list | grep Synaptics|awk '{ $1=""; $2=""; $3="";$4="";$6="";$7="";$8=""; print}' | awk -F'=' '{$1="";print}' | xargs`
  
 xinput set-prop ${x} 164 0 # '"Device Enabled"'  xinput set-prop ${x} 164 0 # '"Device Enabled"' 
-</code>+</Code>
  
 xinput list will give you a list of devices you can control.  In my case the Synaptics device is the one I wanted to disable.  The command that I originally used was "xinput set-prop 12 "Device Enabled" 0" but I couldn't figure out how to script that so I used the xinput "list-props 12" to discover the equivalent numeric value. xinput list will give you a list of devices you can control.  In my case the Synaptics device is the one I wanted to disable.  The command that I originally used was "xinput set-prop 12 "Device Enabled" 0" but I couldn't figure out how to script that so I used the xinput "list-props 12" to discover the equivalent numeric value.
Line 29: Line 29:
 Before using chroot from a live CD to fix a system, use: Before using chroot from a live CD to fix a system, use:
 <code> <code>
- mount -o bind /proc /mnt//proc/+ mount -o bind /proc /mnt/proc/
  mount -o bind /dev /mnt/dev/  mount -o bind /dev /mnt/dev/
  mount -o bind /sys /mnt/sys  mount -o bind /sys /mnt/sys
Line 107: Line 107:
     <script src="js/date.js"></script>     <script src="js/date.js"></script>
 </code> </code>
 +Date.js can be found at: https://github.com/datejs/Datejs
 +====== Sample ======
 +I used this prompt in bard:
 +generate the mysql 8 table using the following schema: id int 11 autoindex;name varchar 64;dat datetime current_time_stamp;
 +
 +And it generated the following:
 +<code>
 +CREATE TABLE `my_table` (
 +  `id` INT(11) NOT NULL AUTO_INCREMENT,
 +  `name` VARCHAR(64) NOT NULL,
 +  `dat` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
 +  PRIMARY KEY (`id`)
 +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
 +Use code with caution. Learn more
 +This table has three columns:
 +</code>
 +  * id: An integer column that is the primary key of the table. This column is automatically incremented by MySQL.
 +  * name: A string column that stores the name of the record. This column has a maximum length of 64 characters.
 +  * dat: A datetime column that stores the date and time when the record was created. This column is automatically set to the current timestamp when a new record is inserted.
 +
 +I hope this helps! Let me know if you have any other questions.
 +
 +
  
start.1676999600.txt.gz · Last modified: 2023/02/21 18:13 by admin