Skip to content

Instantly share code, notes, and snippets.

View laazebislam's full-sized avatar
🏠
Working from home

laazeb mohamed islam eddine mustapha laazebislam

🏠
Working from home
View GitHub Profile
@laazebislam
laazebislam / update-golang.md
Created July 28, 2023 15:47 — forked from nikhita/update-golang.md
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by:

@laazebislam
laazebislam / rmDir.js
Last active September 8, 2022 08:14
Node Js Directory remove
var fs = require("fs");
var rmDir = function(dir, rmSelf) {
var files;
rmSelf = (rmSelf === undefined) ? true : rmSelf;
dir = dir + "/";
try { files = fs.readdirSync(dir); } catch (e) { console.log("!Oops, directory not exist."); return; }
if (files.length > 0) {
files.forEach(function(x, i) {
if (fs.statSync(dir + x).isDirectory()) {
rmDir(dir + x);
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('6 H;6 j;6 c;6 o;1g();y 1h(16){6 7=\'\';I=J(M/2);4(I==M-I){M=I*2+1}K=c-I;4(K<1)K=1;r=J(16/k)+1;4(r-1==16/k)r=r-1;N=K+M-1;4(N>r)N=r;7+="<5 f=\'1C\'>1D "+c+\' 1E \'+r+"</5>";6 17=J(c)-1;4(c>1){4(c==2){4(j=="x"){7+=\'<5 f="1F"><a g="\'+z+\'">\'+O+\'</a></5>\'}d{7+=\'<5 f="l"><a g="/s/u/\'+o+\'?&9-m=\'+k+\'">\'+O+\'</a></5>\'}}d{4(j=="x"){7+=\'<5 f="l"><a g="#" A="P(\'+17+\');B C">\'+O+\'</a></5>\'}d{7+=\'<5 f="l"><a g="#" A="Q(\'+17+\');B C">\'+O+\'</a></5>\'}}}1i(6 h=K;h<=N;h++){4(c==h){7+=\'<5 f="1G">\'+h+\'</5>\'}d 4(h==1){4(j=="x"){7+=\'<5 f="l"><a g="\'+z+\'">1</a></5>\'}d{7+=\'<5 f="l"><a g="/s/u/\'+o+\'?&9-m=\'+k+\'">1</a></5>\'}}d{4(j=="x"){7+=\'<5 f="l"><a g="#" A="P(\'+h+\');B C">\'+
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim,x=function(e,t){return new x.fn.init(e,t,r)},w=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=/\S+/g,C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,k=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,E=/^[\],:{}\s]*$/,S=/(?:^|:|,)(?:\s*\[)+/g,A=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,j=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,D=/^-ms-/,L=/-([\da-z])/gi,H=function(e,t){return t.toUpperCase()},q=function(e){(a.addEventListener||"load"===e.type||"complete"===a.readyState)&&(_(),x.ready())},_=function(){a.addEventListener?(a.removeEventListener("DOMContentLoaded",q,!1),e.removeEventListener("load",q,!1)):(a.detachEvent("onreadystatechange",q),e.detachEvent("onload",q))};x.fn=x.prototype={jquery:f,constructor:x,init:function(e,n,r){var i,o;if(!e)return this;if("string"==typeof e){if(i