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
| """ | |
| Uncompress EXTREME_XPAND_PROC99VOL1 and EXTREME_XPAND_PROC99VOL2. | |
| Run this script. | |
| The folders 'PROC99VOL1' 'PROC99VOL2' will be created. | |
| Enter the addon and add those new folders as libary paths. | |
| """ |
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
| # Systemd unit to enable xboxdrv driver for Xbox 360 controller | |
| # Usage: | |
| # save to /lib/systemd/system/xboxdrv.service | |
| # to start: sudo service xboxdrv start | |
| # to enable on boot: sudo systemctl enable xboxdrv | |
| [Unit] | |
| Description=Xbox controller driver daemon | |
| [Service] |
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
| In Rust, let result = process(consulta); call tantivy: | |
| #[no_mangle] | |
| pub extern "C" fn filterThis(s: *const c_char) -> *mut c_char { | |
| let c_str = unsafe { | |
| assert!(!s.is_null()); | |
| CStr::from_ptr(s) | |
| }; | |
| let query_str = c_str.to_str().unwrap(); |
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
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
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
| #!/usr/bin/env python3 | |
| import requests | |
| import json | |
| BATCHURL = "https://graph.facebook.com/v2.10/?include_headers=false" | |
| token = '<token>' | |
| postsFields = "&fields=" + \ | |
| "from,message,caption,created_time,description," + \ |