find /path/to/files* -mtime +5 -exec rm {} ;
This file contains hidden or 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
| # install needed libraries | |
| sudo yum install texinfo libXpm-devel giflib-devel libtiff-devel libotf-devel | |
| # compile autoconf | |
| cd /tmp | |
| wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.bz2 | |
| tar xjvf autoconf-2.68.tar.bz2 | |
| cd autoconf-2.68/ | |
| ./configure && make && sudo make install |
This file contains hidden or 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
| //this is not a pure function because it has a 'hidden input' of the current date. | |
| function addDay(days) { | |
| var currentDate = new Date(); | |
| return currentDate.setDate(currentDate.getDate() + days); | |
| } | |
| //this is not a pure function because it has a 'hidden output' of the times called. | |
| var timesCalled = 0; | |
| function addDay(days, currentDate) { |
sudo dd if=/dev/sdb of=./sdb.raw VBoxManage convertdd sdb.raw sdb.vdi --format VDI
VBoxManage modifyhd --resize 30000 ~/Documents/VM/Windows10.vdi VBoxManage showhdinfo ~/path/to/vmdrive.vdi
Gparted right Click both sd2 and sd5 and chose "Deactivate". resize the extended (sda2) partition. resize the lvm (sda5) partition.
This file contains hidden or 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
| $('.venue:eq(15)').click() |
This file contains hidden or 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
| @compile if Mix.env == :test, do: :export_all |
This file contains hidden or 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
| curl -XPOST http://localhost:9515/session -d '{"desiredCapabilities":{"browserName":"chrome", "chromeOptions":{"args":["--headless"]}}}' |
\]\ \[varchar\].+\ (NULL|NOT NULL),
\] \[datetime\].+,
This file contains hidden or 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
| require 'digest/md5' | |
| Digest::MD5.hexdigest(File.read('Gemfile.lock')) |
- Chrome
- VSCode
- turn on settings sync
- fix repeat keys for vim vscodevim
- https://vimforvscode.com/enable-key-repeat-vim
- enable desktop spaces shortcut
- System Preferences -> Keyboard -> Shortcuts -> Mission Control
- Move left a space
ctrl+shift+h - Move right a space
ctrl+shift+l
- install cascadia code font