df -h -x tmpfs -x devtmpfs
| //https://www.npmjs.com/package/round-robin-js | |
| import { RandomRoundRobin } from 'round-robin-js'; | |
| async function sender(queue: string, message: any, env: Env) { | |
| try { | |
| const processors = { | |
| PROCESSOR1: env.ENVIRONMENT === 'dev' ? env.PROCESSOR1_DEV : env.PROCESSOR1, | |
| PROCESSOR2: env.ENVIRONMENT === 'dev' ? env.PROCESSOR2_DEV : env.PROCESSOR2, | |
| PROCESSOR3: env.ENVIRONMENT === 'dev' ? env.PROCESSOR3_DEV : env.PROCESSOR3, | |
| PROCESSOR4: env.ENVIRONMENT === 'dev' ? env.PROCESSOR4_DEV : env.PROCESSOR4, |
| var ads = document.querySelectorAll('ins'); | |
| ads.forEach(ad => { | |
| const observer = new MutationObserver( mutations => | |
| { | |
| // console.log(mutations); | |
| mutations.forEach( record => | |
| { | |
| if(record.type === 'attributes') | |
| { | |
| const attrname = record.attributeName; |
| import * as firebase from 'firebase/app'; | |
| import 'firebase/firestore'; | |
| var firebaseConfig = { | |
| // your firebase credentials | |
| }; | |
| // Initialize Firebase | |
| firebase.initializeApp(firebaseConfig); |
| function slugify(string){ | |
| const a = 'àáäâãåăæąçćčđďèéěėëêęğǵḧìíïîįłḿǹńňñòóöôœøṕŕřßşśšșťțùúüûǘůűūųẃẍÿýźžż·/_,:;' | |
| const b = 'aaaaaaaaacccddeeeeeeegghiiiiilmnnnnooooooprrsssssttuuuuuuuuuwxyyzzz------' | |
| const p = new RegExp(a.split('').join('|'), 'g') | |
| return string.toString().toLowerCase() | |
| .replace(/á|à|ả|ạ|ã|ă|ắ|ằ|ẳ|ẵ|ặ|â|ấ|ầ|ẩ|ẫ|ậ/gi, 'a') | |
| .replace(/é|è|ẻ|ẽ|ẹ|ê|ế|ề|ể|ễ|ệ/gi, 'e') | |
| .replace(/i|í|ì|ỉ|ĩ|ị/gi, 'i') | |
| .replace(/ó|ò|ỏ|õ|ọ|ô|ố|ồ|ổ|ỗ|ộ|ơ|ớ|ờ|ở|ỡ|ợ/gi, 'o') | |
| .replace(/ú|ù|ủ|ũ|ụ|ư|ứ|ừ|ử|ữ|ự/gi, 'u') |
| <?php | |
| $list = []; | |
| $err = ''; | |
| $path = filter_input( INPUT_GET, 'path'); | |
| if ( !$path ) | |
| { | |
| $err = 'Path is empty'; |
| $allowedOrigins = array( | |
| '(http(s)://)?(www\.)?my\-domain\.com' | |
| ); | |
| if (isset($_SERVER['HTTP_ORIGIN']) && $_SERVER['HTTP_ORIGIN'] != '') { | |
| foreach ($allowedOrigins as $allowedOrigin) { | |
| if (preg_match('#' . $allowedOrigin . '#', $_SERVER['HTTP_ORIGIN'])) { | |
| header('Access-Control-Allow-Origin: ' . $_SERVER['HTTP_ORIGIN']); | |
| header('Access-Control-Allow-Methods: GET, PUT, POST, DELETE, OPTIONS'); | |
| header('Access-Control-Max-Age: 1000'); |
| <?php | |
| function removeCommonWords($input){ | |
| // EEEEEEK Stop words | |
| $commonWords = array('a','able','about','above','abroad','according','accordingly','across','actually','adj','after','afterwards','again','against','ago','ahead','ain\'t','all','allow','allows','almost','alone','along','alongside','already','also','although','always','am','amid','amidst','among','amongst','an','and','another','any','anybody','anyhow','anyone','anything','anyway','anyways','anywhere','apart','appear','appreciate','appropriate','are','aren\'t','around','as','a\'s','aside','ask','asking','associated','at','available','away','awfully','b','back','backward','backwards','be','became','because','become','becomes','becoming','been','before','beforehand','begin','behind','being','believe','below','beside','besides','best','better','between','beyond','both','brief','but','by','c','came','can','cannot','cant','can\'t','caption','cause','causes','certain','certainly','changes','clearly','c\'mon','co','co.','com','come','comes','concerni |
| if ($request_uri = /) { | |
| set $test A; | |
| } | |
| if ($host ~* teambox.com) { | |
| set $test "${test}B"; | |
| } | |
| if ($http_cookie !~* "auth_token") { | |
| set $test "${test}C"; |
In your home directory make a new directory to put all of the source code into:
yum install autoconf automake cmake freetype-devel gcc gcc-c++ git libtool make mercurial nasm pkgconfig zlib-devel
mkdir ~/ffmpeg_sources
cd ~/ffmpeg_sources
git clone --depth 1 git://github.com/yasm/yasm.git
cd yasm
autoreconf -fiv
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin"
make