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 | |
| from collections import namedtuple | |
| from re import compile as regex | |
| import sys | |
| Part = namedtuple('Part', 'name, size, offset') | |
| class Flashdump(object): |
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 sys | |
| import os | |
| from codecs import decode | |
| from re import compile as regex | |
| from enum import Enum | |
| DEBUG = True if os.getenv("DEBUG") else False |
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 python | |
| import sys | |
| import os | |
| import urllib as ul | |
| def main(dir): | |
| places = "{:s}/.config/gtk-3.0/bookmarks".format(os.getenv("HOME")) | |
| with open(places, "a") as f: |
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 python2 | |
| # https://unix.stackexchange.com/a/268286/247080 | |
| import re | |
| import sys | |
| import fontconfig | |
| if len(sys.argv) < 1: | |
| print('''Usage: ''' + sys.argv[0] + '''CHARS [REGEX] | |
| Print the names of available fonts containing the code point(s) CHARS. |
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 python | |
| """Edit a file in the host nvim instance.""" | |
| import os | |
| import sys | |
| from neovim import attach | |
| args = sys.argv[1:] | |
| if not args: | |
| print "Usage: {} <filename> ...".format(sys.argv[0]) |
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 <iostream> | |
| // http://www.gotw.ca/publications/mill18.htm | |
| // Virtual Question #2: What About Base Class Destructors? | |
| using namespace std; | |
| namespace good { | |
| class Base { | |
| public: |
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 python | |
| from __future__ import print_function | |
| import sys | |
| import argparse | |
| import fileinput | |
| import base64 | |
| def main(): |
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
| make[1] world | |
| make[2] tools/compile | |
| make[3] -C tools/flock compile | |
| make[3] -C tools/sed compile | |
| make[3] -C tools/xz compile | |
| make[3] -C tools/tar compile | |
| make[3] -C tools/patch compile | |
| make[3] -C tools/m4 compile | |
| make[3] -C tools/autoconf compile | |
| make[3] -C tools/pkg-config compile |
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/perl | |
| # by entheon, do whatever the hell you want with this file | |
| print "\n"; | |
| print "**************************\n"; | |
| print "*XTERM 256Color Test Chart\n"; | |
| print "**************************\n"; | |
| print "* 16 = black\n"; | |
| print "* 255 = white\n"; |
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 <stdio.h> | |
| #include <sys/socket.h> | |
| #include <sys/un.h> | |
| #include <unistd.h> | |
| #include <stdlib.h> | |
| int create_abstract_socket(const char *name) { | |
| int sockfd = socket(AF_UNIX, SOCK_STREAM, 0); | |
| if (sockfd < 0) { | |
| return -1; |