Skip to content

Instantly share code, notes, and snippets.

@techcoder20
techcoder20 / commands.md
Last active April 20, 2024 01:09
WinApps Installation Commands

Before Creating VM Debian:

sudo apt-get install -y freerdp2-x11 virt-manager
git clone https://github.com/Fmstrat/winapps.git

Arch:

# Installing Dependencies
@ggeorgaras
ggeorgaras / gist:56e37c830c0837aac7dace1765b45b97
Created April 8, 2016 07:12
Shared upload folder in wordpress multisite
/**
* Force all network uploads to reside in "wp-content/uploads", and by-pass
* "files" URL rewrite for site-specific directories.
*
* @link http://wordpress.stackexchange.com/q/147750/1685
*
* @param array $dirs
* @return array
*/
function wpse_147750_upload_dir( $dirs ) {
@udzura
udzura / SECKUN 2021 pub.md
Last active April 20, 2024 00:58
SECKUN 2021/ProSec-IT 2021 コンテナ演習資料(公開版)

SECKUN 2021/ProSec-IT 2021 コンテナ演習資料(公開版)

この資料について

九州大学のSECKUN 2021/ProSec-IT(enPiT-Pro) 2021の共通カリキュラムにおいて、近藤 @udzura が担当したコンテナ概要の授業にて使用した教材です。

今回、公益性を鑑み、授業固有の連絡事項などを削除した状態で公開します。

@andrewbenson
andrewbenson / tmutil.py
Last active April 20, 2024 00:52
MacOS Time Machine Utility for Python
def tmutil():
import sys
import subprocess
# Call 'tmutil status' command and output it to string
tmstatus = subprocess.check_output(['tmutil','status'])
tmstatus = tmstatus.splitlines()
payload = {}
Running = ""
@sr2ds
sr2ds / febraban_banks.json
Created July 23, 2018 19:17 — forked from talesluna-zz/febraban_banks.json
Lista de Bancos Associados FEBRABAN (json)
[
{
"_id": "59ada9772bc5be4a37aaa435",
"name": "Banco ABC Brasil S.A.",
"febraban": true,
"clearing": true,
"code": "246",
"alias": null
},
{
@bashbunni
bashbunni / .zshrc
Created October 27, 2022 21:41
CLI Pomodoro for Mac
# I'll be doing another one for Linux, but this one will give you
# a pop up notification and sound alert (using the built-in sounds for macOS)
# Requires https://github.com/caarlos0/timer to be installed
# Mac setup for pomo
alias work="timer 60m && terminal-notifier -message 'Pomodoro'\
-title 'Work Timer is up! Take a Break 😊'\
-appIcon '~/Pictures/pumpkin.png'\
-sound Crystal"
@rdenadai
rdenadai / python_expert_path.md
Last active April 20, 2024 00:43
My take into build a basic structure to dictate how to become a Python Expert ... from basic to specialist ?

Python Expert Path

Beginner

  • Basic syntax
    • Variables types:
      • bool, int, float, str, byte, complex, None
    • Conditionals:
      • if, else, elif, for, while, match
  • Functions: simple use, and known what first class citizen is (concept)
@revermax
revermax / .php
Created December 27, 2022 16:09 — forked from scriptdev/.php
PDFDesignNFEView - GERAR RELATÓRIO FPDF
<?php
# FONTE: https://framework.adianti.me/tutor/index.php?class=PDFDesignNFEView&method=onShow
class PDFDesignNFEView extends TPage
{
private $form;
private $pdf;
private $total_produtos;
private $total_icms;
@scyto
scyto / proxmox.md
Last active April 20, 2024 00:37
proxmox cluster proof of concept

ProxMox Cluster - Soup-to-Nutz

aka what i did to get from nothing to done.

note: these are designed to be primarily a re-install guide for myself (writing things down helps me memorize the knowledge), as such don't take any of this on blind faith - some areas are well tested and the docs are very robust, some items, less so). YMMV

Purpose of Proxmox cluster project

Required Outomces of cluster project