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
| using System.Data; | |
| using Microsoft.Data.Sqlite; | |
| namespace Servel.NET.Extensions; | |
| public static class SqliteConnectionExtensions | |
| { | |
| public static SqliteCommand CreateCommand(this SqliteConnection connection, string sql) | |
| { | |
| var command = connection.CreateCommand(); |
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
| find . -type d -name 'old' -exec rm -r {} + |
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
| rsync -avHS --prune-empty-dirs --include "*/" --exclude 'cache/' --exclude 'old/' --include="*.txt" --exclude="*" 'aleph.gutenberg.org::gutenberg gutenberg |
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
| # ARCH will be auto-detected as the host if not specified | |
| #ARCH=i486 | |
| #ARCH=x86_64 | |
| #ARCH=powerpc | |
| #ARCH=arm | |
| #ARCH=microblaze | |
| #ARCH=mips | |
| #ARCH=mipsel | |
| CC_BASE_PREFIX=/opt/cross |
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
| paths = ["001.jpg", "002.jpg", "003.jpg", "004.jpg", "005.jpg", "006.jpg", "007.jpg", "008.jpg", "009.jpg", "010.jpg", "011_wide.jpg", "012.jpg", "013.jpg", "014.jpg", "015.jpg", "016.jpg", "017.jpg", "018.jpg", "019.jpg", "020.jpg", "021.jpg", "022.jpg", "023.jpg", "024.jpg", "025.jpg", "026.jpg", "027.jpg", "028.jpg", "029.jpg", "030.jpg", "031.jpg", "032.jpg", "033.jpg", "034.jpg", "035.jpg", "036.jpg", "037.jpg", "038.jpg", "039.jpg", "040.jpg", "041.jpg", "042.jpg", "043.jpg", "044.jpg", "045.jpg", "046.jpg", "047.jpg", "048.jpg", "049.jpg", "050.jpg", "051.jpg", "052.jpg", "053.jpg", "054.jpg", "055.jpg", "056.jpg", "057.jpg", "058.jpg", "059.jpg", "060.jpg", "061.jpg", "062.jpg", "063.jpg", "064.jpg", "065.jpg", "066.jpg", "067.jpg", "068.jpg", "069.jpg", "070.jpg", "071.jpg", "072.jpg", "073.jpg", "074.jpg", "075.jpg", "076.jpg", "077.jpg", "078.jpg", "079.jpg", "080.jpg", "081.jpg", "082.jpg", "083.jpg", "084.jpg", "085.jpg", "086.jpg", "087.jpg", "088.jpg", "089.jpg", "090.jpg", "091.jpg", "092.jpg" |
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
| #Speedup for everyone: | |
| sudo apt-get remove --purge --auto-remove gnome-user-share gnome-online-accounts gwibber zeitgeist zeitgeist-core zeitgeist-datahub zeitgeist-extension-fts unity-lens-files gnome-screensaver | |
| #Open tracker-preferences, and remove your home directory and subdirectories from the inclusions list | |
| #Click Apply | |
| #Click the button in tracker preferences that removes all your indexes | |
| #If you don't use evolution: | |
| sudo apt-get remove --purge --auto-remove evolution evolution-data-server | |
| #Systemd only: | |
| sudo apt-get remove --purge --auto-remove rsyslog | |
| sudo systemctl mask systemd-udev-settle.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
| --- | |
| - hosts: localhost | |
| connection: local | |
| gather_facts: False | |
| tasks: | |
| - name: Provision a blank Ubuntu 14.04 instance | |
| ec2: | |
| region="us-east-1" | |
| key_name=buildkite_ansible |
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
| #include <sys/types.h> | |
| #include <sys/stat.h> | |
| #include <stdlib.h> | |
| #include <stddef.h> | |
| #include <stdio.h> | |
| #include <fcntl.h> | |
| #include <errno.h> | |
| #include <error.h> | |
| #include <unistd.h> | |
| #include <string.h> |
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
| //gcc -std=c11 -o find_replace find_replace.c | |
| #include <sys/types.h> | |
| #include <sys/stat.h> | |
| #include <stdlib.h> | |
| #include <stddef.h> | |
| #include <stdio.h> | |
| #include <fcntl.h> | |
| #include <errno.h> | |
| #include <error.h> | |
| #include <unistd.h> |
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
| Kernel IP routing table | |
| Destination Gateway Genmask Flags Metric Ref Use Iface | |
| 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth1 | |
| 172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0 | |
| 192.168.1.0 0.0.0.0 255.255.255.0 U 1 0 0 eth1 |
NewerOlder