Software Management
Ubuntu/Linux Tools
APT (Ubuntu's Advanced Packaging Tool)
# installing a package
sudo apt install zsh
#!/usr/bin/env sh | |
sudo apt-get install -y \ | |
git \ | |
g++ \ | |
libgtk-3-dev \ | |
gtk-doc-tools \ | |
gnutls-bin \ | |
valac \ | |
intltool \ |
{"lastUpload":"2020-11-10T23:43:02.343Z","extensionVersion":"v3.4.3"} |
# installing a package
sudo apt install zsh
ssh-keygen -t rsa -b 4096 -C "hoang.huy.tran@gmail.com"
diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nobrowse -nomount ram://XXXXX`
where XXXXX
is the size of the RAM disk in terms of memory blocks.
Notes:
about:config
browser.download.animateNotifications
to False
security.dialog_enable_delay
to 0
network.prefetch-next
to False
(Only on slow internet connections)browser.newtabpage.activity-stream.feeds.telemetry
to false
browser.newtabpage.activity-stream.telemetry
to false
browser.ping-centre.telemetry
to false
toolkit.telemetry.archive.enabled
to false
toolkit.telemetry.bhrPing.enabled
to false
@RestController | |
class HelloWorld { | |
@RequestMapping("/") | |
public String hello(){ | |
return "Hello World!"; | |
} | |
} |
package io.github.htr3n.springjdbcsimple.entity; | |
public class Customer { | |
private Integer id; | |
private String name; | |
private String email; | |
public Integer getId() { | |
return id; | |
} |
/* | |
https://stackoverflow.com/a/37832318/339302 | |
*/ | |
.rainbow2 { | |
background-image: -webkit-linear-gradient(left, #E0F8F7, #585858, #fff); /* For Chrome and Safari */ | |
background-image: -moz-linear-gradient(left, #E0F8F7, #585858, #fff); /* For old Fx (3.6 to 15) */ | |
background-image: -ms-linear-gradient(left, #E0F8F7, #585858, #fff); /* For pre-releases of IE 10*/ | |
background-image: -o-linear-gradient(left, #E0F8F7, #585858, #fff); /* For old Opera (11.1 to 12.0) */ | |
background-image: linear-gradient(to right, #E0F8F7, #585858, #fff); /* Standard syntax; must be last */ | |
color:transparent; |
import os | |
for dirname, dirnames, filenames in os.walk('.'): | |
# print path to all subdirectories first. | |
for subdirname in dirnames: | |
print(os.path.join(dirname, subdirname)) | |
# print path to all filenames. | |
for filename in filenames: | |
print(os.path.join(dirname, filename)) |