First:
sudo nano /etc/systemd/logind.conf
Find;
#HandlePowerKey=poweroff
And Replace Like This;
package main | |
import ( | |
"fmt" | |
"log" | |
"reflect" | |
) | |
type T struct { | |
Abc string `böhöhöyt:"kenya" required:"true"` // supports non ascii |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"net/url" | |
"os" | |
"strings" |
import requests | |
import json | |
twitter_post_url = "https://twitter.com/i/api/1.1/statuses/update.json" | |
myTwitterHeaders = { | |
"User-Agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0", | |
"Content-Type": "application/x-www-form-urlencoded", | |
"x-twitter-auth-type": "OAuth2Session", | |
"x-twitter-client-language": "tr", |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"net/url" | |
) |
export DATA=$(cat myGoFile.go) | |
export GOOS=linux | |
export GOARCH=amd64 | |
curl --data "data=$DATA&goos=$GOOS&goarch=$GOARCH" https://BetikSonu.org/gocompiler/api/go | |
#curl --data "data=$DATA&goos=$GOOS&goarch=$GOARCH" https://BetikSonu.org/gocompiler/api/go | jq |
import requests | |
req = requests.get("https://betiksonu.org/gocompiler/api/go",data={"data":open("myGoFile.go").read(),"goos":"linux","goarch":"amd64"}).json() | |
if req["ok"] == "true": | |
print("Here , your download url = ",req["url"]) | |
else: | |
print("Compile Error : ",req["why"]) | |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"net/url" | |
"os" |