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
| import requests | |
| import re | |
| import sys | |
| import json | |
| def obtain_ids(user): | |
| response = requests.get('https://www.instagram.com/' + user) | |
| appid = re.search('appId":"(\d*)', response.text)[1] | |
| serverid = re.search('server_revision":(\d*)', response.text)[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
| using System; | |
| using System.IO; | |
| using System.Net; | |
| using System.Text; | |
| using System.IO.Compression; | |
| using System.Collections.Generic; | |
| using System.Configuration.Install; | |
| using System.Runtime.InteropServices; |
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 zsh | |
| # | |
| # Works best with blinking text; the last heart will blink | |
| # when you have less than 25% of your battery life remaining. | |
| BATTERY="$(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep --color=never -E "percentage" | sed 's/[^0-9]*//g')" | |
| if [[ $BATTERY -lt 25 ]]; then | |
| echo "\e[5;31m♥\e[0;31m♡♡\e[0m" | |
| elif [[ $BATTERY -lt 50 ]]; then |