Create file at /lib/systemd/system/mygoservice.service
[Unit]
Description=mygoservice
ConditionPathExists=$GOPATH/src/mygoservice/mygoservice
After=network.target
[Service]
Type=simple
User=mygoservice
# Set variables | |
GITHUB_TOKEN="<YOUR_GITHUB_PERSONAL_TOKEN>" | |
OWNER="<YOUR_ORG_OR_USERNAME>" | |
REPO="<YOUR_REPO_NAME>" | |
# Initialize page number and per_page value | |
page=1 | |
per_page=100 # Maximum allowed per page |
<!-- https://maxl.us/hide-related --> | |
<!-- author: https://www.maxlaumeister.com/articles/hide-related-videos-in-youtube-embeds --> | |
<style> | |
.hytPlayerWrap { | |
display: inline-block; | |
position: relative; | |
} | |
.hytPlayerWrap.ended::after { | |
content:""; | |
position: absolute; |
/** | |
* | |
* Tired/irritated of hearing ads on sonyliv.com while watching cricket match? | |
* Follow below steps to mute when ads are running. | |
* 1. Start live cricket match | |
* 2. Open console ( press F12 in chrome ) and paste all the code below. | |
* | |
* @author : Hardik Sondagar | |
* | |
*/ |
/** | |
* Unlike/unfollow pages in facebook. | |
* Open https://www.facebook.com/pages/?category=liked and scroll down till all liked/followed pages loads. | |
* Once all pages loads, copy paste this code in console and wait till all pages unliked/unfollowed (Use Google Chrome). | |
*/ | |
var pages_followed = document.querySelectorAll('[aria-label="Following"]'); | |
var pages_liked = document.querySelectorAll('[aria-label="Liked"]'); | |
function sleep(ms) { |
import requests | |
def get_redirect_url(url): | |
try: | |
headers = { | |
"User-Agent": " ".join([ | |
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6)", | |
"AppleWebKit/537.36 (KHTML, like Gecko)", | |
"Chrome/86.0.4240.75", | |
"Safari/537.36" | |
]) |
Create file at /lib/systemd/system/mygoservice.service
[Unit]
Description=mygoservice
ConditionPathExists=$GOPATH/src/mygoservice/mygoservice
After=network.target
[Service]
Type=simple
User=mygoservice
#!/bin/bash -l | |
# loop-dates.sh 2019-02-01 2019-03-01 | |
start_time=`date +"%Y-%m-%d" -d $1` | |
end_time=`date +"%Y-%m-%d" -d $2` | |
dt=$start_time | |
while [ "$dt" != "$end_time" ] ; | |
do | |
start=`date '+%Y-%m-%d %T' -d "$dt"`; | |
end=`date '+%Y-%m-%d %T' -d "$dt +1 day"`; |
# Recursive dictionary merge | |
# Copyright (C) 2016 Paul Durivage <[email protected]> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
--- | |
version: 1 | |
disable_existing_loggers: False | |
formatters: | |
simple: | |
format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s" | |
handlers: | |
console: | |
class: logging.StreamHandler |
/** | |
* | |
* Auto follow users on Instagram Web | |
* | |
* Tired of following users one by one. Follow below steps to automate it. | |
* 1. Go to some user's profile i.e. https://www.instagram.com/spacex and click on followers, popup with user list will appear. | |
* 2. Open console ( press F12 in chrome ) and paste all the code below. | |
* 3. Wait while all the users are being followed. | |
* | |
* @author : Hardik Sondagar <hardikmsondagar@gmail.com> |