This file contains 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
apt-get update # update repositories first | |
# then do either | |
apt-get dist-upgrade | |
aptitude safe-upgrade # about equiv. to above, safer though | |
# alternative, doesn't install or uninstall any packages | |
apt-get upgrade | |
# reference: http://askubuntu.com/questions/194651/why-use-apt-get-upgrade-instead-of-apt-get-dist-upgrade |
This file contains 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
uname -m |
This file contains 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
apt-get update # if this is the first boot on e.g. OpenVZ containers | |
apt-get install language-pack-en | |
update-locale LANG=en_US.UTF-8 | |
shutdown -rf 0 # reboot to ensure new locale is applied | |
# when lang is "(undefinded)"; also preferred anyway | |
export LANGUAGE=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 | |
locale-gen en_US.UTF-8 |
This file contains 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
for n in {1..100}; do | |
dd if=/dev/urandom of=$( cat /dev/urandom | tr -cd 'a-f0-9' | head -c 6 ) bs=1 count=$(( RANDOM + 1024 )) | |
done |
This file contains 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
<?php | |
header('Content-type: text/plain'); | |
function checkdomain($domain) { | |
if($domain == '.com' OR $domain == '.de') return false; | |
$api_req = file_get_contents('http://freedomainapi.com/?key=YOURAPIKEY&domain=' . $domain); | |
$api_req = json_decode($api_req, true); | |
return $api_req['available'] == 'true'; | |
} |
This file contains 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
// Place your key bindings in this file to override the defaultsauto[] | |
[ | |
{ | |
"key": "ctrl+d", | |
"command": "-editor.action.addSelectionToNextFindMatch", | |
"when": "editorFocus" | |
}, | |
{ | |
"key": "ctrl+up", | |
"command": "-scrollLineUp", |
This file contains 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 fetch from 'cross-fetch'; | |
(async () => { | |
// This request is exactly replicated from what the Play Store website does. | |
const res = await fetch( | |
'https://play.google.com/_/PlayStoreUi/data/batchexecute?rpcids=vyAe2&source-path=%2Fstore%2Fapps&f.sid=-7855711026347449501&bl=boq_playuiserver_20220612.08_p0&hl=en&authuser&soc-app=121&soc-platform=1&soc-device=1&_reqid=74074&rt=c', | |
{ | |
credentials: 'include', | |
headers: { | |
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0', |
This file contains 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 fetch from 'cross-fetch'; | |
(async () => { | |
const res = await fetch('https://play.google.com/_/PlayStoreUi/data/batchexecute', { | |
headers: { | |
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8', | |
}, | |
body: `f.req=${JSON.stringify([ | |
[ | |
[ |
This file has been truncated, but you can view the full file.
This file contains 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
[ | |
[ | |
"wrb.fr", | |
"vyAe2", | |
[ | |
[ | |
null, | |
[ | |
[ |
This file contains 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 fetch from 'cross-fetch'; | |
(async () => { | |
const language = 'en'; | |
const country = 'de'; | |
const length = 2; | |
const chart_name = 'topselling_free'; | |
const category_id = 'APPLICATION'; | |
const res = await fetch(`https://play.google.com/_/PlayStoreUi/data/batchexecute?hl=${language}&gl=${country}`, { |