Skip to content

Instantly share code, notes, and snippets.

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

Rahman Azhar rahmanazhar

🏠
Working from home
View GitHub Profile
@rahmanazhar
rahmanazhar / contemplative-llms.txt
Created January 8, 2025 07:29 — forked from Maharshi-Pandya/contemplative-llms.txt
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@rahmanazhar
rahmanazhar / reposync.txt
Created April 26, 2024 06:44
Repository sync
Mirror a Bitbucket repository to GitHub using a Bitbucket pipeline and GitHub deploy key.
1. On GitHub, create a new repository (import or from scratch).
2. On Bitbucket, Enable Pipelines under Repository settings > Pipelines > Settings.
3. On Bitbucket, Generate keys under Repository settings > Pipelines > SSH keys. Copy the public key to clipboard.
4. On the same page, under Known hosts enter github.com as the Host address and then click Fetch followed by Add host.
5. On GitHub, add the public key under Settings > Security > Deploy keys > Add deploy key. Tick the checkbox to Allow write access.
6. On Bitbucket, add the public key under Repository settings > Security > Access keys > Add key.
7. Inside the Bitbucket repo, create a bitbucket-pipelines.yml file containing the following:
@rahmanazhar
rahmanazhar / lamp.sh
Created February 19, 2024 11:50
Bash script to install Apache, MySQL and PHP as well as PHPMyAdmin and some tweaks. For Debian and Ubuntu. To run, copy the script to the server and run ``bash lamp.sh``
#!/bin/sh
#######################################
# Bash script to install an AMP stack and PHPMyAdmin plus tweaks. For Debian based systems.
# In case of any errors (e.g. MySQL) just re-run the script. Nothing will be re-installed except for the packages with errors.
#######################################
#COLORS
# Reset
@rahmanazhar
rahmanazhar / readme.md
Created February 15, 2021 07:09 — forked from falu/readme.md
GeoServer Installation On Ubuntu Server 18.04 LTS

GeoServer Installation On Ubuntu Server 18.04 LTS

Install Tomcat8:

sudo apt-get install default-jre tomcat8 tomcat8-admin

Add a new Tomcat user:

@rahmanazhar
rahmanazhar / readme.md
Created February 15, 2021 07:06 — forked from falu/readme.md
Install Geoserver on Ubuntu Server 16.04 LTS

GeoServer Installation On Ubuntu Server 16.04 LTS

Install Tomcat7:

sudo apt-get install tomcat7 tomcat7-admin

Add a new Tomcat user:

@rahmanazhar
rahmanazhar / readme.txt
Last active March 19, 2020 03:28
Change VestaCP IP
Instructions:
First, do
sudo -i
or login as ROOT on your server.
Second, do
touch /usr/local/vesta/bin/v-update-ip
to create the file.
Third, do
#simple NLP using NLTK
#by rahmanazhar
import nltk
from nltk.corpus import twitter_samples as ts
print('the sample files')
print(ts.fileids())
#index number in samples
index = 23
#!/bin/sh
sudo apt-get upgrade -y — force-yes
cd /tmp
curl -O http://vestacp.com/pub/vst-install.sh
bash vst-install.sh -f
@rahmanazhar
rahmanazhar / upgrade.sh
Last active August 7, 2018 21:56
Upgrade PHP version to 7.2 from 7.0
#!/bin/sh
sudo dpkg — get-selections | grep -v deinstall | grep php7.0 -y
sudo apt-get update -y
sudo apt-get install python-software-properties -y
LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php -y
sudo apt-get update -y
sudo apt-get install php7.2 -y
a2dismod php7.0
a2enmod php7.2