showmyip/__init__.py
# showmyip/__init__.py
from pyray import *
import requests
def main():
init_window(200, 200, "Whats My IP?")
while not window_should_close():
#!/bin/bash | |
# sourcemod is based on metamod | |
tempdir="/opt/csgo-addons" | |
csgodir="/home/steam/csgo-server/csgo" | |
mkdir $tempdir | |
cd $tempdir |
showmyip/__init__.py
# showmyip/__init__.py
from pyray import *
import requests
def main():
init_window(200, 200, "Whats My IP?")
while not window_should_close():
# Append into ~/.ssh/config | |
Host gitlab.com | |
User git | |
Hostname gitlab.com | |
PreferredAuthentications publickey | |
IdentityFile ~/.ssh/id_rsa | |
ProxyCommand /bin/nc -x 127.0.0.1:9050 %h %p |
#!/bin/bash | |
# Usage: | |
# bash ./mass-useradd.sh 20 | |
cnt="$1" | |
prefix="user" | |
for n in `seq $cnt`;do | |
user="$prefix$n"; | |
pass=$(openssl rand -base64 12); | |
#pass=$(shuf -i 1000000000-9999999999 -n 1); |
export default (ctx) => { | |
if (process.env.NODE_ENV !== 'production') return | |
const i = '<CLIENT_KEY>' | |
const w = window | |
const n = 'yektanet' | |
w.yektanetAnalyticsObject = n | |
w[n] = w[n] || function () { w[n].q.push(arguments) } | |
w[n].q = w[n].q || [] | |
const a = new Date() | |
const r = '' + a.getFullYear() + '0' + a.getMonth() + '0' + a.getDate() + '0' + a.getHours() |
conky.config = { | |
update_interval = 1, | |
cpu_avg_samples = 2, | |
net_avg_samples = 2, | |
out_to_console = false, | |
override_utf8_locale = true, | |
double_buffer = true, | |
no_buffers = true, | |
text_buffer_size = 32768, |
// basic usage | |
import Vue from 'vue' | |
import VueRouter from 'vue-router' | |
import VueNavbackDetector from './vue-navback-detector.js' | |
const routes = [] | |
const router = new VueRouter({ routes }) | |
Vue.use(VueNavbackDetector, { router }) | |
new Vue({ router }).$mount('#app') |
# Setup: | |
# nano ~/.conf/systemd/user/chrome.service | |
# systemctl --user daemon-reload | |
# systemctl --user start chrome | |
[Unit] | |
Description=Google Chrome | |
Wants=display-manager.service | |
After=display-manager.service |
#!/bin/bash | |
sudo apt install -y build-essential autotools-dev automake libtool libreadline-dev | |
git clone --depth=1 https://github.com/persiancal/jcal.git | |
cd jcal/sources | |
bash ./autogen.sh | |
./configure --prefix=/usr | |
make | |
sudo make install |
#!/bin/bash | |
# os: ubuntu 20.04 | |
# deadbeef: 1.8.8 | |
# | |
# run as normal user | |
wget https://www.deb-multimedia.org/pool/main/d/deadbeef-dmo/deadbeef-plugins-dev_1.8.8-dmo2_all.deb | |
sudo apt install -y deadbeef-plugins-dev_1.8.8-dmo2_all.deb | |
sudo apt install -y build-essentials libgtk-3-dev libxml++2.6-dev |