Skip to content

Instantly share code, notes, and snippets.

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

Umair Ashraf umrashrf

🏠
Working from home
View GitHub Profile
@chen206
chen206 / gist:4030441
Created November 7, 2012 09:45
Install Postgresql 9.2 on Ubuntu 12.04
#!/bin/bash
#
# Install Postgres 9.2 on a clean Ubuntu 12.04
"""
LC_ALL issue
comment out the AcceptEnv LANG LC_* line in the remote /etc/ssh/sshd_config file.
sudo apt-get install language-pack-en-base
sudo dpkg-reconfigure locales
comment out the SendEnv LANG LC_* line in the local /etc/ssh/ssh_config file.
@james-harper
james-harper / InstagramHelper.js
Last active February 28, 2024 05:11
Instagram.com - Unsend All Messages
// instagram.com utilities
//
// currently I only have unsend all messages in thread implemented.
// but may add more if I need them
// (this won't work in incognito due to localStorage, session, & cookie values being required)
//
// To use, navigate to the thread in a web browser (I only tested with Chrome)
// and copy and paste the code into a Developer tools console
// "threadId" will need to be updated with the appropriate value
class InstagramHelper {
@nbigot
nbigot / ec2_startup_script.sh
Created December 21, 2022 11:29
How to run tinyproxy server on an aws ec2 instance at startup
#!/bin/bash
sudo yum update -y
sudo yum install -y docker
sudo usermod -a -G docker ec2-user
id ec2-user
newgrp docker
sudo systemctl enable docker.service
sudo systemctl start docker.service
docker run -d --name=tinyproxy -p 8888:8888 --env BASIC_AUTH_USER=yourLOGIN --env BASIC_AUTH_PASSWORD=yourSECRETpassword --env TIMEOUT=60 monokal/tinyproxy:latest ANY