Skip to content

Instantly share code, notes, and snippets.

View JohnyProkie's full-sized avatar

Proky JohnyProkie

View GitHub Profile
What to do if:
- XFCE is destroyed:
xfwm4 --replace
If not sufficient try:
sudo rm .Xauthority
sudo rm .ICEauthority
sudo rm .xsession-errors*
sudo reboot
@JohnyProkie
JohnyProkie / tricks.js
Last active March 15, 2019 04:51
JS tricks
/* log arrays and objects as tables in console - works for firefox and chrome - kudos to MDN newsletter*/
// log array in console
var array = ['donut', 'meat', 'banana', 'coffee'];
console.table(array);
// log object same way
var obj = {'breakfast': 'coffee', 'snack': 'coffee', 'lunch': 'dunno', 'afternoon snack': 'coffee'};
console.table(obj);
// combine - can be chaotic
@JohnyProkie
JohnyProkie / bootable_usb.sh
Created March 15, 2019 04:35
Bootable USB disk from terminal
# source https://askubuntu.com/questions/372607/how-to-create-a-bootable-ubuntu-usb-flash-drive-from-terminal/579615#579615
# list mounted devices, use df, lsblk, fdisk -l or parted -l (try sudo for last two)
df
# unmount device - instead of /dev/sdb1 use whatever device you found in df
sudo umount /dev/sdb1
# start working with dd
sudo dd bs=4M if=path/to/cd.iso of=/dev/sdb1 conv=fdatasync
@JohnyProkie
JohnyProkie / animations.css
Created March 5, 2019 20:49
Few basic animations I use time to time
.bounce-enter-active {
animation: bounce-in .5s;
}
.bounce-leave-active {
animation: bounce-in .5s reverse;
}
@keyframes bounce-in {
0% {
transform: scale(0);
}
@JohnyProkie
JohnyProkie / underlink.scss
Last active December 13, 2020 15:49
Pretty underlink