Ciro Santilli (三西猴) OurBigBook.com sponsor me: cirosantilli.com/sponsor, opinions my own 2020冠状病毒审查 ,2020郝海东 ,2018新疆改造中心,1989六四事件,1999法轮功 ,2019 996.ICU, 2018包子露宪,2015 709大抓捕,2015巴拿马文件 邓家贵,2017低端人口,2008西藏骚乱<script>alert(1)</script> cirosantilli
🇹🇼
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
| obj-m += chardev.o | |
| all: | |
| make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules | |
| clean: | |
| make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean |
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
| sudo apt-get update | |
| sudo apt-get upgrade | |
| # 1) Download from source, the zip from the site has problems on linux | |
| # https://github.com/cocos2d/cocos2d-x/pull/15958#issuecomment-228919359 | |
| git clone https://github.com/cocos2d/cocos2d-x.git | |
| cd cocos2d-x | |
| # 2016-06-27 branch master is broken, change to commit 04d3550 | |
| git checkout 04d3550 |
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 free and unencumbered software released into the public domain. | |
| // | |
| // Anyone is free to copy, modify, publish, use, compile, sell, or | |
| // distribute this software, either in source code form or as a compiled | |
| // binary, for any purpose, commercial or non-commercial, and by any | |
| // means. | |
| // | |
| // In jurisdictions that recognize copyright laws, the author or authors | |
| // of this software dedicate any and all copyright interest in the | |
| // software to the public domain. We make this dedication for the benefit |
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
| 000(023Rb|001Rb) | |
| 001(017La|002Rb) | |
| 002(021La|003Rb) | |
| 003(021La|004La) | |
| 004(009Rb|005Lb) | |
| 005(004Ra|005La) | |
| 006(008La|007La) | |
| 007(009Rb|007La) | |
| 008(009Ra|008La) | |
| 009(010Ra|026Ra) |
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
| {0: 'tench, Tinca tinca', | |
| 1: 'goldfish, Carassius auratus', | |
| 2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias', | |
| 3: 'tiger shark, Galeocerdo cuvieri', | |
| 4: 'hammerhead, hammerhead shark', | |
| 5: 'electric ray, crampfish, numbfish, torpedo', | |
| 6: 'stingray', | |
| 7: 'cock', | |
| 8: 'hen', | |
| 9: 'ostrich, Struthio camelus', |
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
| # These examples assume you have a container currently running. | |
| # 1 Pipe from a file | |
| sudo docker exec --interactive CONTAINER_NAME /bin/bash < the_beginning.sh | tee the_beginning_output.txt` | |
| #2a Pipe by piping | |
| echo "echo This is how we pipe to docker exec" | sudo docker exec --interactive CONTAINER_NAME /bin/bash - |
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
| from django.conf import settings | |
| from whitenoise.django import DjangoWhiteNoise | |
| class DjangoCompressWhiteNoise(DjangoWhiteNoise): | |
| def __call__(self, environ, start_response): | |
| # Handle files generated on the fly by django-compressor | |
| url = environ['PATH_INFO'] | |
| if url.startswith(self.static_prefix) and url not in self.files: | |
| if self.is_compressed_file(url): |
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 <stdlib.h> | |
| #include <string.h> | |
| #include <dlfcn.h> | |
| int main(int argc, char** argv) | |
| { | |
| void *handle; | |
| void (*func_print_name)(const char*); |
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
| #!/bin/bash | |
| # Configs overwritable via environment variables | |
| VSYSTEM=${VSYSTEM:=qemu} # Either 'qemu' or 'kvm' | |
| FLAVOUR=${FLAVOUR:=debian} # Either 'debian' or 'ubuntu' | |
| INCLUDES=${INCLUDES:="less,vim,sudo,openssh-server,acpid"} | |
| MIRROR=${MIRROR:="http://ftp.hu.debian.org/debian"} | |
| #MIRROR=${MIRROR:="http://localhost:3142/debian"} | |
| #MIRROR=${MIRROR:="http://hu.archive.ubuntu.com/ubuntu/"} | |
| #MIRROR=${MIRROR:="http://localhost:3142/ubuntu"} |
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
| ; Addressing modes | |
| ; ================ | |
| ; Here we write a program to add up the numbers in a table. | |
| ; We do it in four different ways to illustrate different methods of addressing | |
| ; in ARM Assembly. | |
| ; To compile/run, open Komodo with the command: | |
| ; start_komodo 15111 | |
| ; Then open, compile and run this file as normal. |