docker run --name 'mtproto_proxy' --restart unless-stopped -p 1984:1984 -dti dotcypress/mtproxy -s '`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1`'
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 | |
| # tmux requires unrecognized OSC sequences to be wrapped with DCS tmux; | |
| # <sequence> ST, and for all ESCs in <sequence> to be replaced with ESC ESC. It | |
| # only accepts ESC backslash for ST. We use TERM instead of TMUX because TERM | |
| # gets passed through ssh. | |
| function print_osc() { | |
| if [[ $TERM == screen* ]] ; then | |
| printf "\033Ptmux;\033\033]" | |
| else |
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
| let getRandomInt = (min, max) => Math.floor(Math.random() * (Math.floor(max) - Math.ceil(min)) + Math.ceil(min)); | |
| let tinyCcUrl = (url, custom = '') => { | |
| //need to get it on page | |
| if (!localStorage.getItem('sig')) localStorage.setItem('sig', 'YmNhZGU3OTQ0YmMyNzE0ODBiNWFhZThhZGNjMmQ2ZDg2MjEwYWVlODJmYjQ0ODM3OWVmYzRkMDZiOWRhNTJmZDc3NThmMTcwZWUwNWE4MzhhNWJiOWZlNmRmNjAwMzcwZDJmZGMwZjQ4MDE1MDMzOWM4ZWEzMGI1OWFmYTU3MzU='); | |
| url = encodeURI(url); | |
| sig = encodeURI(localStorage.getItem('sig')); | |
| fetch("https://tiny.cc/tiny/url/create", { | |
| "headers": { |
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
| all:infect target | |
| infect: infect.c | |
| ${CC} -o $@ $< | |
| target: target.c | |
| ${CC} -o $@ $< | |
| .PHONY: | |
| 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
| const getUrlParams = search => { | |
| let params = {}; | |
| search | |
| .slice(search.indexOf('?') + 1) | |
| .split('&') | |
| .forEach(hash => { | |
| const [key, val] = hash.split('=') | |
| params[key] = val === void(0) | |
| ? true | |
| : decodeURIComponent(val); |
@daily sh -c "if [ $(df / --output='pcent' | grep -o [0-9][0-9]) -gt 90 ]; then echo '' > /root/logfile_storage/motion.log; fi
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
| const shuffle = v=>[...v].sort(_=>Math.random()-.5).join(''); | |
| document.write(shuffle("The quick brown fox jumps over the lazy dog")); |
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 bash | |
| sudo apt install -y nodejs | |
| sudo npm i -g npm@latest | |
| sudo npm i -g @angular/cli @nestjs/cli eslint nx npm-check-updates | |
| sudo ncu -g | |
| npx --yes create-nx-workspace@latest angular-nest-app --preset=angular-nest --appName=ui --style=scss --nx-cloud=false --cli=angular | |
| cd angular-nest-app |
I hereby claim:
- I am santaklouse on github.
- I am santaklouse (https://keybase.io/santaklouse) on keybase.
- I have a public key ASDhtMFOMATy8uhYzw2UIPuajMcZ-JbI-660JYFLSRl8Xgo
To claim this, I am signing this object: