sudo apt install git-all
https://docs.github.com/en/developers/overview/managing-deploy-keys#deploy-keys
sudo apt install git-all
https://docs.github.com/en/developers/overview/managing-deploy-keys#deploy-keys
| // ==UserScript== | |
| // @name Pixelpeeper | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match *://*/* | |
| // @grant GM_xmlhttpRequest | |
| // @grant GM_openInTab | |
| // ==/UserScript== |
| // ==UserScript== | |
| // @name TorrentLeech-notify | |
| // @namespace https://www.torrentleech.org/ | |
| // @version 0.1 | |
| // @description Notify when new torrents appears on TorrentLeech. Check every 30s. | |
| // @author Leeroy Brun | |
| // @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js | |
| // @match https://www.torrentleech.org/torrents/browse* | |
| // @grant GM_getValue | |
| // @grant GM_setValue |
| http://stackoverflow.com/questions/1338728/delete-commits-from-a-branch-in-git | |
| Careful: git reset --hard WILL DELETE YOUR WORKING DIRECTORY CHANGES. Be sure to stash any local changes you want to keep before running this command. | |
| git reset --hard HEAD~1 | |
| or | |
| git reset --hard <sha1-commit-id> |
| --[[ | |
| %% autostart | |
| %% properties | |
| %% globals | |
| --]] | |
| NB_DEVICES = 300 | |
| function turnAllOff() | |
| fibaro:debug('Turn all devices off.') |
| // From : http://stackoverflow.com/a/1635143/1160800 | |
| // constructor function | |
| function MyClass () { | |
| var privateVariable; // private member only available within the constructor fn | |
| this.privilegedMethod = function () { // it can access private members | |
| //.. | |
| }; | |
| } |
| // ------------------------------------------------------ | |
| // Set focus on an element | |
| // Source : http://stackoverflow.com/a/14837021/1160800 | |
| // ------------------------------------------------------ | |
| app.directive('focusMe', function($timeout, $parse) { | |
| return { | |
| //scope: true, // optionally create a child scope | |
| link: function(scope, element, attrs) { | |
| var model = $parse(attrs.focusMe); | |
| scope.$watch(model, function(value) { |
| // Disable HTTPS warnings/errors | |
| @implementation NSURLRequest(NSURLRequestWithIgnoredSSL) | |
| +(BOOL)allowsAnyHTTPSCertificateForHost:(NSString *)host | |
| { | |
| return YES; | |
| } | |
| @end |
| /* Disable selection on iOS devices */ | |
| * { | |
| -webkit-touch-callout: none; | |
| -webkit-user-select: none; /* Disable selection/copy in UIWebView */ | |
| } | |
| /* Smooth scrolling */ | |
| .container { | |
| overflow: scroll; | |
| -webkit-overflow-scrolling: touch; |
| function replaceAll(string, search, replace) { | |
| if(Array.isArray(search) === false) { | |
| search = [search]; | |
| } | |
| search.forEach(function(txt) { | |
| string = string.split(txt).join(replace); | |
| }); | |
| return string; |